MediaStore / Client / list_tags_for_resource

list_tags_for_resource#

MediaStore.Client.list_tags_for_resource(**kwargs)#

Returns a list of the tags assigned to the specified container.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    Resource='string'
)
Parameters:

Resource (string) –

[REQUIRED]

The Amazon Resource Name (ARN) for the container.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • Tags (list) –

      An array of key:value pairs that are assigned to the container.

      • (dict) –

        A collection of tags associated with a container. Each tag consists of a key:value pair, which can be anything you define. Typically, the tag key represents a category (such as “environment”) and the tag value represents a specific value within that category (such as “test,” “development,” or “production”). You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.

        • Key (string) –

          Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as “customer.” Tag keys are case-sensitive.

        • Value (string) –

          Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as “companyA” or “companyB.” Tag values are case-sensitive.

Exceptions