TimestreamQuery / Client / tag_resource



Associate 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(
            'Key': 'string',
            'Value': 'string'
  • ResourceARN (string) –


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

  • Tags (list) –


    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. Tags enable you to 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:



Response Syntax


Response Structure

  • (dict) –


  • TimestreamQuery.Client.exceptions.ResourceNotFoundException

  • TimestreamQuery.Client.exceptions.ServiceQuotaExceededException

  • TimestreamQuery.Client.exceptions.ThrottlingException

  • TimestreamQuery.Client.exceptions.ValidationException

  • TimestreamQuery.Client.exceptions.InvalidEndpointException