IoTTwinMaker / Client / list_tags_for_resource

list_tags_for_resource#

IoTTwinMaker.Client.list_tags_for_resource(**kwargs)#

Lists all tags associated with a resource.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    resourceARN='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • resourceARN (string) –

    [REQUIRED]

    The ARN of the resource.

  • maxResults (integer) –

    The maximum number of results to return at one time. The default is 25.

    Valid Range: Minimum value of 1. Maximum value of 250.

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

Return type:

dict

Returns:

Response Syntax

{
    'tags': {
        'string': 'string'
    },
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • tags (dict) –

      Metadata that you can use to manage a resource.

      • (string) –

        • (string) –

    • nextToken (string) –

      The string that specifies the next page of results.

Exceptions

  • IoTTwinMaker.Client.exceptions.AccessDeniedException

  • IoTTwinMaker.Client.exceptions.ResourceNotFoundException