Skip to content

CloudTrail  >  Structures  >  Tag

Tag

Structure Class

Tag dataclass

A custom key-value pair associated with a resource such as a CloudTrail trail, event data store, dashboard, or channel.

Attributes

key instance-attribute
key: str

The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.

value class-attribute instance-attribute
value: str | None = None

The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.