PartnerCentralChannelAPI / Client / list_tags_for_resource

list_tags_for_resource

PartnerCentralChannelAPI.Client.list_tags_for_resource(**kwargs)

Lists tags associated with a specific resource.

See also: AWS API Documentation

Request Syntax

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

resourceArn (string) –

[REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • tags (list) –

      Key-value pairs associated with the resource.

      • (dict) –

        A key-value pair that can be associated with a resource.

        • key (string) –

          The key of the tag.

        • value (string) –

          The value of the tag.

Exceptions

  • PartnerCentralChannelAPI.Client.exceptions.ResourceNotFoundException

  • PartnerCentralChannelAPI.Client.exceptions.InternalServerException

  • PartnerCentralChannelAPI.Client.exceptions.ValidationException

  • PartnerCentralChannelAPI.Client.exceptions.ThrottlingException

  • PartnerCentralChannelAPI.Client.exceptions.AccessDeniedException