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'
},
]
)
[REQUIRED]
Identifies the Timestream resource to which tags should be added. This value is an Amazon Resource Name (ARN).
[REQUIRED]
The tags to be assigned to the Timestream resource.
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.
The key of the tag. Tag keys are case sensitive.
The value of the tag. Tag values are case-sensitive and can be null.
dict
Response Syntax
{}
Response Structure
Exceptions
TimestreamWrite.Client.exceptions.ResourceNotFoundException
TimestreamWrite.Client.exceptions.ServiceQuotaExceededException
TimestreamWrite.Client.exceptions.ThrottlingException
TimestreamWrite.Client.exceptions.ValidationException
TimestreamWrite.Client.exceptions.InvalidEndpointException