CmdID

CmdID / aws / aws kms

aws kms untag-resource

Deletes tags from a customer managed key. AWS CLI reference

1 example 2 options 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 delete a tag from a KMS key

The following untag-resource example deletes the tag with the "Purpose" key from a customer managed KMS key.

To specify the KMS key, use the key-id parameter. This example uses a key ID value, but you can use a key ID or key ARN in this command. Before running this command, replace the example key ID with a valid key ID from your AWS account.

aws kms untag-resource --key-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --tag-keys 'Purpose'Identify
--key-idIdentifies the KMS key from which you are removing tags.
--tag-keysOne or more tag keys.

This command produces no output. To view the tags on an AWS KMS KMS key, use the list-resource-tags command.

For more information about using tags in AWS KMS, see Tagging keys in the AWS Key Management Service Developer Guide.

Options

2 in the AWS CLI reference
--key-idIdentifies the KMS key from which you are removing tags.
--tag-keysOne or more tag keys.