Skip to content

get_tags

Operation

get_tags

get_tags(request: GetTagsInput | GetTagsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetTagsInputDict]) -> GetTagsOutput

Gets the Tags collection for a given resource.

Parameters:

Name Type Description Default
request GetTagsInput | GetTagsInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[GetTagsInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetTagsOutput

An instance of GetTagsOutput.

get_tags async

get_tags(request: GetTagsInput | GetTagsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetTagsInputDict]) -> GetTagsOutput

Gets the Tags collection for a given resource.

Parameters:

Name Type Description Default
request GetTagsInput | GetTagsInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[GetTagsInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetTagsOutput

An instance of GetTagsOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

GetTagsInputDict

Bases: TypedDict

Dictionary form of GetTagsInput.

Attributes

limit instance-attribute
limit: int | None

(Not currently supported) The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

position instance-attribute
position: str | None

(Not currently supported) The current pagination position in the paged result set.

resource_arn instance-attribute
resource_arn: Required[str]

The ARN of a resource that can be tagged.

GetTagsInput dataclass

Bases: _SerdeShape

Gets the Tags collection for a given resource.

Attributes

limit class-attribute instance-attribute
limit: int | None = ...

(Not currently supported) The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

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

(Not currently supported) The current pagination position in the paged result set.

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

The ARN of a resource that can be tagged.

Output

GetTagsOutput dataclass

Bases: _SerdeShape

The collection of tags. Each tag element is associated with a given resource.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

tags class-attribute instance-attribute
tags: dict[str, str] | None = ...

The collection of tags. Each tag element is associated with a given resource.