Using Console
Using CLI
<key-id>
with the ID of the KMS key that is scheduled for deletion.<key-id>
with the ID of the KMS key that is scheduled for deletion and <grant-id>
with the ID of the grant that you want to recover.Using Python
list_grants
API to get the list of all KMS keys that are scheduled for deletion:cancel_key_deletion
API to cancel the scheduled deletion: