Skip to content

TagSpecification

Structure Class

TagSpecification dataclass

Bases: _SerdeShape

The tags to apply to a resource when the resource is being created. When you specify a tag, you must specify the resource type to tag, otherwise the request will fail.

Note

The Valid Values lists all the resource types that can be tagged. However, the action you're using might not support tagging all of these resource types. If you try to tag a resource type that is unsupported for the action you're using, you'll get an error.

Attributes

resource_type class-attribute instance-attribute
resource_type: str | None = ...

The type of resource to tag on creation.

tags class-attribute instance-attribute
tags: list[Tag] | None = ...

The tags to apply to the resource.