PartnerCentralSellingAPI / Client / list_tags_for_resource

list_tags_for_resource

PartnerCentralSellingAPI.Client.list_tags_for_resource(**kwargs)

Returns a list of tags for a 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 for which you want to retrieve tags.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • Tags (list) –

      A map of the key-value pairs for the tag or tags assigned to the specified resource.

      • (dict) –

        The key-value pair assigned to a specified resource.

        • Key (string) –

          The key in the tag.

        • Value (string) –

          The value in the tag.

Exceptions

  • PartnerCentralSellingAPI.Client.exceptions.ThrottlingException

  • PartnerCentralSellingAPI.Client.exceptions.AccessDeniedException

  • PartnerCentralSellingAPI.Client.exceptions.InternalServerException

  • PartnerCentralSellingAPI.Client.exceptions.ValidationException

  • PartnerCentralSellingAPI.Client.exceptions.ResourceNotFoundException