AWS::KMS::Key Tag - AWS CloudFormation

AWS::KMS::Key Tag

A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

Important

Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

For information about the rules that apply to tag keys and tag values, see User-Defined Tag Restrictions in the AWS Billing and Cost Management User Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Key" : String, "Value" : String }

YAML

Key: String Value: String

Properties

Key

The key name of the tag. You can specify a value that's 1 to 128 Unicode characters in length and can't be prefixed with aws:. digits, whitespace, _, ., :, /, =, +, @, -, and ".

For more information, see Tag.

Required: Yes

Type: String

Minimum: 1

Maximum: 128

Update requires: No interruption

Value

The value for the tag. You can specify a value that's 1 to 256 characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

For more information, see Tag.

Required: Yes

Type: String

Minimum: 0

Maximum: 256

Update requires: No interruption