Billing / Client / list_tags_for_resource

list_tags_for_resource

Billing.Client.list_tags_for_resource(**kwargs)

Lists tags associated with the billing view 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.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • resourceTags (list) –

      A list of tag key value pairs that are associated with the resource.

      • (dict) –

        The tag structure that contains a tag key and value.

        • key (string) –

          The key that’s associated with the tag.

        • value (string) –

          The value that’s associated with the tag.

Exceptions

  • Billing.Client.exceptions.ThrottlingException

  • Billing.Client.exceptions.ResourceNotFoundException

  • Billing.Client.exceptions.AccessDeniedException

  • Billing.Client.exceptions.ValidationException

  • Billing.Client.exceptions.InternalServerException