IoTEvents / Client / list_tags_for_resource

list_tags_for_resource#

IoTEvents.Client.list_tags_for_resource(**kwargs)#

Lists the tags (metadata) you have assigned to the resource.

See also: AWS API Documentation

Request Syntax

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

resourceArn (string) –

[REQUIRED]

The ARN of the resource.

Return type:

dict

Returns:

Response Syntax

{
    'tags': [
        {
            'key': 'string',
            'value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • tags (list) –

      The list of tags assigned to the resource.

      • (dict) –

        Metadata that can be used to manage the resource.

        • key (string) –

          The tag’s key.

        • value (string) –

          The tag’s value.

Exceptions

  • IoTEvents.Client.exceptions.InvalidRequestException

  • IoTEvents.Client.exceptions.ResourceNotFoundException

  • IoTEvents.Client.exceptions.ResourceInUseException

  • IoTEvents.Client.exceptions.ThrottlingException

  • IoTEvents.Client.exceptions.InternalFailureException