PartnerCentralBenefits / Client / list_tags_for_resource

list_tags_for_resource

PartnerCentralBenefits.Client.list_tags_for_resource(**kwargs)

Retrieves all 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) –

      A list of key-value pairs representing the tags associated with the resource.

      • (dict) –

        Represents a key-value pair used for categorizing and organizing AWS resources.

        • Key (string) –

          The tag key, which acts as a category or label for the tag.

        • Value (string) –

          The tag value, which provides additional information or context for the tag key.

Exceptions

  • PartnerCentralBenefits.Client.exceptions.AccessDeniedException

  • PartnerCentralBenefits.Client.exceptions.ValidationException

  • PartnerCentralBenefits.Client.exceptions.InternalServerException

  • PartnerCentralBenefits.Client.exceptions.ThrottlingException

  • PartnerCentralBenefits.Client.exceptions.ResourceNotFoundException