Skip to content

KMS  >  Structures  >  Tag

Tag

Structure Class

Tag dataclass

Bases: _SerdeShape

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.

Warning

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 Amazon Web Services Billing and Cost Management User Guide.

Attributes

tag_key instance-attribute
tag_key: str

The key of the tag.

tag_value instance-attribute
tag_value: str

The value of the tag.