Grant Args
Provides a resource-based access control mechanism for a KMS customer master key.
Note: All arguments including the grant token will be stored in the raw state as plain-text.
Import
Using pulumi import
, import KMS Grants using the Key ID and Grant ID separated by a colon (:
). For example:
$ pulumi import aws:kms/grant:Grant test 1234abcd-12ab-34cd-56ef-1234567890ab:abcde1237f76e4ba7987489ac329fbfba6ad343d6f7075dbd1ef191f0120514
Constructors
Properties
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.
A list of grant tokens to be used when creating the grant. See Grant Tokens for more information about grant tokens.
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.
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
.
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.
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.