Proton / Client / list_tags_for_resource

list_tags_for_resource#

Proton.Client.list_tags_for_resource(**kwargs)#

List tags for a resource. For more information, see Proton resources and tagging in the Proton User Guide.

See also: AWS API Documentation

Request Syntax

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

  • nextToken (string) – A token that indicates the location of the next resource tag in the array of resource tags, after the list of resource tags that was previously requested.

  • resourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource for the listed tags.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • nextToken (string) –

      A token that indicates the location of the next resource tag in the array of resource tags, after the current requested list of resource tags.

    • tags (list) –

      A list of resource tags with detail data.

      • (dict) –

        A description of a resource tag.

        • key (string) –

          The key of the resource tag.

        • value (string) –

          The value of the resource tag.

Exceptions

  • Proton.Client.exceptions.ValidationException

  • Proton.Client.exceptions.AccessDeniedException

  • Proton.Client.exceptions.ThrottlingException

  • Proton.Client.exceptions.ResourceNotFoundException

  • Proton.Client.exceptions.InternalServerException