GrantConstraints
¶
Used by
-
AsyncKMSClient Operationscreate_grant -
KMSClient Operationscreate_grant
Source code in docs_src/capo_kms/types/grant_constraints.py
encryption_context_equals
instance-attribute
¶
encryption_context_equals: NotRequired[EncryptionContextType]
A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
encryption_context_subset
instance-attribute
¶
encryption_context_subset: NotRequired[EncryptionContextType]
A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
source_arn
instance-attribute
¶
source_arn: NotRequired[GrantConstraintSourceArnType]
The Amazon Resource Name (ARN) of an Amazon Web Services resource on behalf of which the request is made. This is effectively the same as having the aws:SourceArn global condition key in the grant. The SourceArn constraint ensures that the principal can use the KMS key only when the request is made on behalf of the specified resource.