Grant

class Grant : KotlinCustomResource

Provides a resource-based access control mechanism for a KMS customer master key.

Import

KMS Grants can be imported using the Key ID and Grant ID separated by a colon (:), e.g.,

$ pulumi import aws:kms/grant:Grant test 1234abcd-12ab-34cd-56ef-1234567890ab:abcde1237f76e4ba7987489ac329fbfba6ad343d6f7075dbd1ef191f0120514

Properties

Link copied to clipboard

A structure that you can use to allow certain operations in the grant only when the desired encryption context is present. For more information about encryption context, see Encryption Context.

Link copied to clipboard

A list of grant tokens to be used when creating the grant. See Grant Tokens for more information about grant tokens.

Link copied to clipboard

The principal that is given permission to perform the operations that the grant permits in ARN format. Note that due to eventual consistency issues around IAM principals, the providers's state may not always be refreshed to reflect what is true in AWS.

Link copied to clipboard
val grantId: Output<String>

The unique identifier for the grant.

Link copied to clipboard
val grantToken: Output<String>

The grant token for the created grant. For more information, see Grant Tokens.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val keyId: Output<String>

The unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN.

Link copied to clipboard
val name: Output<String>

A friendly name for identifying the grant.

Link copied to clipboard
val operations: Output<List<String>>

A list of operations that the grant permits. The permitted values are: Decrypt, Encrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, ReEncryptFrom, ReEncryptTo, Sign, Verify, GetPublicKey, CreateGrant, RetireGrant, DescribeKey, GenerateDataKeyPair, or GenerateDataKeyPairWithoutPlaintext.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val retireOnDelete: Output<Boolean>?

If set to false (the default) the grants will be revoked upon deletion, and if set to true the grants will try to be retired upon deletion. Note that retiring grants requires special permissions, hence why we default to revoking grants. See RetireGrant for more information.

Link copied to clipboard

The principal that is given permission to retire the grant by using RetireGrant operation in ARN format. Note that due to eventual consistency issues around IAM principals, the providers's state may not always be refreshed to reflect what is true in AWS.

Link copied to clipboard
val urn: Output<String>