CmdID

CmdID / aws / aws kms

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

1 in the AWS CLI reference
--key-idIdentifies the KMS key to disable.