Chatbot / Client / list_tags_for_resource

list_tags_for_resource#

Chatbot.Client.list_tags_for_resource(**kwargs)#

Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.

See also: AWS API Documentation

Request Syntax

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

ResourceARN (string) –

[REQUIRED]

The ARN you specified to list the tags of.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': [
        {
            'TagKey': 'string',
            'TagValue': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • Tags (list) –

      Key-value pairs that are assigned to a resource, usually for the purpose of grouping and searching for items. Tags are metadata that you define.

      • (dict) –

        A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

        Warning

        Do not include confidential or sensitive information in this field.

        For more information, see User-Defined Tag Restrictions in the AWS Billing and Cost Management User Guide.

        • TagKey (string) –

          The key of the tag.

        • TagValue (string) –

          The value of the tag.

Exceptions

  • Chatbot.Client.exceptions.ServiceUnavailableException

  • Chatbot.Client.exceptions.ResourceNotFoundException

  • Chatbot.Client.exceptions.InternalServiceError