IoTThingsGraph / Client / list_tags_for_resource

list_tags_for_resource#

IoTThingsGraph.Client.list_tags_for_resource(**kwargs)#

Lists all tags on an AWS IoT Things Graph resource.

Danger

This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    maxResults=123,
    resourceArn='string',
    nextToken='string'
)
Parameters:
  • maxResults (integer) – The maximum number of tags to return.

  • resourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource whose tags are to be returned.

  • nextToken (string) – The token that specifies the next page of results to return.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • tags (list) –

      List of tags returned by the ListTagsForResource operation.

      • (dict) –

        Metadata assigned to an AWS IoT Things Graph resource consisting of a key-value pair.

        • key (string) –

          The required name of the tag. The string value can be from 1 to 128 Unicode characters in length.

        • value (string) –

          The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length.

    • nextToken (string) –

      The token that specifies the next page of results to return.

Exceptions