Smaws_Client_KMS.GetKeyPolicy
Gets a key policy attached to the specified KMS key.
Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.
Required permissions: kms:GetKeyPolicy (key policy)
Related operations: PutKeyPolicy
Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
val request :
Smaws_Lib.Context.t ->
Types.get_key_policy_request ->
(Types.get_key_policy_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `DependencyTimeoutException of Types.dependency_timeout_exception
| `InvalidArnException of Types.invalid_arn_exception
| `KMSInternalException of Types.kms_internal_exception
| `KMSInvalidStateException of Types.kms_invalid_state_exception
| `NotFoundException of Types.not_found_exception ])
Stdlib.result