TimestreamWrite / Client / tag_resource

tag_resource#

TimestreamWrite.Client.tag_resource(**kwargs)#

Associates a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    Identifies the Timestream resource to which tags should be added. This value is an Amazon Resource Name (ARN).

  • Tags (list) –

    [REQUIRED]

    The tags to be assigned to the Timestream resource.

    • (dict) –

      A tag is a label that you assign to a Timestream database and/or table. Each tag consists of a key and an optional value, both of which you define. With tags, you can categorize databases and/or tables, for example, by purpose, owner, or environment.

      • Key (string) – [REQUIRED]

        The key of the tag. Tag keys are case sensitive.

      • Value (string) – [REQUIRED]

        The value of the tag. Tag values are case-sensitive and can be null.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions