aws kms disable-key
Sets the state of a KMS key to disabled. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To temporarily disable a KMS key
The following disable-key example disables a customer managed KMS key. To re-enable the KMS key, use the enable-key command.
aws kms disable-key --key-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify--key-idIdentifies the KMS key to disable.This command produces no output.
For more information, see Enabling and Disabling Keys in the AWS Key Management Service Developer Guide.
Options
--key-idIdentifies the KMS key to disable.