Personalize / Client / list_tags_for_resource

list_tags_for_resource#

Personalize.Client.list_tags_for_resource(**kwargs)#

Get a list of tags attached to a resource.

See also: AWS API Documentation

Request Syntax

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

resourceArn (string) –

[REQUIRED]

The resource’s Amazon Resource Name (ARN).

Return type:

dict

Returns:

Response Syntax

{
    'tags': [
        {
            'tagKey': 'string',
            'tagValue': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • tags (list) –

      The resource’s tags.

      • (dict) –

        The optional metadata that you apply to resources to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. For more information see Tagging Amazon Personalize resources.

        • tagKey (string) –

          One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.

        • tagValue (string) –

          The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key).

Exceptions