CostandUsageReportService / Client / tag_resource

tag_resource#

CostandUsageReportService.Client.tag_resource(**kwargs)#

Associates a set of tags with a report definition.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The report name of the report definition that tags are to be associated with.

  • Tags (list) –

    [REQUIRED]

    The tags to be assigned to the report definition resource.

    • (dict) –

      Describes a tag. A tag is a key-value pair. You can add up to 50 tags to a report definition.

      • Key (string) – [REQUIRED]

        The key of the tag. Tag keys are case sensitive. Each report definition can only have up to one tag with the same key. If you try to add an existing tag with the same key, the existing tag value will be updated to the new value.

      • Value (string) – [REQUIRED]

        The value of the tag. Tag values are case-sensitive. This can be an empty string.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • CostandUsageReportService.Client.exceptions.ResourceNotFoundException

  • CostandUsageReportService.Client.exceptions.InternalErrorException

  • CostandUsageReportService.Client.exceptions.ValidationException