BillingandCostManagementDataExports / Client / list_tags_for_resource

list_tags_for_resource#

BillingandCostManagementDataExports.Client.list_tags_for_resource(**kwargs)#

List tags associated with an existing data export.

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 objects that are returned for the request.

  • NextToken (string) – The token to retrieve the next set of results.

  • ResourceArn (string) –

    [REQUIRED]

    The unique identifier for the resource.

Return type:

dict

Returns:

Response Syntax

{
    'NextToken': 'string',
    'ResourceTags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • NextToken (string) –

      The token to retrieve the next set of results.

    • ResourceTags (list) –

      An optional list of tags to associate with the specified export. Each tag consists of a key and a value, and each key must be unique for 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

  • BillingandCostManagementDataExports.Client.exceptions.InternalServerException

  • BillingandCostManagementDataExports.Client.exceptions.ResourceNotFoundException

  • BillingandCostManagementDataExports.Client.exceptions.ThrottlingException

  • BillingandCostManagementDataExports.Client.exceptions.ValidationException