Smaws_Client_KMS.CancelKeyDeletion
Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is Disabled
. To enable the KMS key, use EnableKey
.
For more information about scheduling and canceling deletion of a KMS key, see Deleting KMS keys in the Key Management Service Developer Guide.
The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.
Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.
Required permissions: kms:CancelKeyDeletion (key policy)
Related operations: ScheduleKeyDeletion
Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
val request :
Smaws_Lib.Context.t ->
Types.cancel_key_deletion_request ->
(Types.cancel_key_deletion_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