aws.kms.list_retirable_grants
Example SQL Queries
SELECT * FROMaws.kms.list_retirable_grantsWHERE"retiring_principal" = 'VALUE';Description
Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.
You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.
For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.
Cross-account use: You must specify a principal in your Amazon Web Services account. This operation returns a list of grants where the retiring principal specified in the ListRetirableGrants request is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web Services accounts, but you do not need kms:ListRetirableGrants permission (or any other additional permission) in any Amazon Web Services account other than your own.
Required permissions: kms:ListRetirableGrants (IAM policy) in your Amazon Web Services account.
KMS authorizes ListRetirableGrants requests by evaluating the caller account's kms:ListRetirableGrants permissions. The authorized resource in ListRetirableGrants calls is the retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their access to any KMS keys or grants that might be returned by the ListRetirableGrants call.
Related operations:
Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
Table Definition
| Column Name | Column Data Type |
|---|---|
| retiring_principal Required Input Column The principal that can retire the grant. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| constraints A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows. | STRUCT( |
Show child fields
| |
| creation_date The date and time when the grant was created. | TIMESTAMP_S |
| grant_id The unique identifier for the grant. | VARCHAR |
| grantee_principal The identity that gets the permissions in the grant. The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals. | VARCHAR |
| issuing_account The Amazon Web Services account under which the grant was issued. | VARCHAR |
| key_id The unique identifier for the KMS key to which the grant applies. | VARCHAR |
| name The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null. | VARCHAR |
| operations The list of operations permitted by the grant. | VARCHAR[] |
Show child fields
| |