Module Smaws_Client_KMS.ListKeyPolicies

Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeyPolicies (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

val request : Smaws_Lib.Context.t -> Types.list_key_policies_request -> (Types.list_key_policies_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