kms_cancel_key_deletion: Cancels the deletion of a customer master key (CMK)
Description
Cancels the deletion of a customer master key (CMK). When this operation
succeeds, the key state of the CMK is Disabled. To enable the CMK, use
EnableKey. You cannot perform this operation on a CMK in a different AWS
account.
Usage
kms_cancel_key_deletion(KeyId)
Arguments
KeyId
[required] The unique identifier for the customer master key (CMK) for which to
cancel deletion.
Specify the key ID or the Amazon Resource Name (ARN) of the CMK.
To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.
Request syntax
svc$cancel_key_deletion(
KeyId = "string"
)
Details
For more information about scheduling and canceling deletion of a CMK,
see Deleting Customer Master Keys
in the AWS Key Management Service Developer Guide.
# NOT RUN {# The following example cancels deletion of the specified CMK.svc$cancel_key_deletion(
KeyId = "1234abcd-12ab-34cd-56ef-1234567890ab")
# }# NOT RUN {# }