BillingandCostManagementDataExports / Client / tag_resource

tag_resource#

BillingandCostManagementDataExports.Client.tag_resource(**kwargs)#

Adds tags for an existing data export definition.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceArn='string',
    ResourceTags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The unique identifier for the resource.

  • ResourceTags (list) –

    [REQUIRED]

    The tags to associate with the resource. 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) – [REQUIRED]

        The key that’s associated with the tag.

      • Value (string) – [REQUIRED]

        The value that’s associated with the tag.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • BillingandCostManagementDataExports.Client.exceptions.InternalServerException

  • BillingandCostManagementDataExports.Client.exceptions.ResourceNotFoundException

  • BillingandCostManagementDataExports.Client.exceptions.ThrottlingException

  • BillingandCostManagementDataExports.Client.exceptions.ValidationException