Skip to main content

key_registrations

Creates, updates, deletes, gets or lists a key_registrations resource.

Overview

Namekey_registrations
TypeResource
Idaws.quicksight.key_registrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aws_account_idstringThe ID of the Amazon Web Services account that contains the customer managed key registration specified in the request. (pattern: <code>^[0-9]{12}$</code>)
key_registrationarrayA list of RegisteredCustomerManagedKey objects in a Quick Sight account.
q_data_keyobjectA list of QDataKey objects in a Quick Sight account.
request_idstringThe Amazon Web Services request ID for this operation. (pattern: <code>.\S.</code>)
statusintegerThe HTTP status of the request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_key_registrationselectaws_account_id, regiondefault-key-onlyDescribes all customer managed key registrations in a Quick Sight account.
update_key_registrationupdateaws_account_id, region, KeyRegistrationUpdates a customer managed key in a Quick Sight account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
aws_account_idstringThe ID of the Amazon Web Services account that contains the customer managed key registration that you want to update.
regionstringAWS region (default: us-east-1)
default-key-onlybooleanDetermines whether the request returns the default key only.

SELECT examples

Describes all customer managed key registrations in a Quick Sight account.

SELECT
aws_account_id,
key_registration,
q_data_key,
request_id,
status
FROM aws.quicksight.key_registrations
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND region = '{{ region }}' -- required
AND `default-key-only` = '{{ default-key-only }}'
;

UPDATE examples

Updates a customer managed key in a Quick Sight account.

UPDATE aws.quicksight.key_registrations
SET
KeyRegistration = '{{ KeyRegistration }}'
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND region = '{{ region }}' --required
AND KeyRegistration = '{{ KeyRegistration }}' --required
RETURNING
failed_key_registration,
request_id,
successful_key_registration;