:doc:`TimestreamQuery <../../timestream-query>` / Client / tag_resource

************
tag_resource
************



.. py:method:: TimestreamQuery.Client.tag_resource(**kwargs)

  

  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 <https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/TagResource>`_  


  **Request Syntax**
  ::

    response = client.tag_resource(
        ResourceARN='string',
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type ResourceARN: string
  :param ResourceARN: **[REQUIRED]** 

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

    

  
  :type Tags: list
  :param Tags: **[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. 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.

        

      
    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`TimestreamQuery.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`TimestreamQuery.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`TimestreamQuery.Client.exceptions.ThrottlingException`

  
  *   :py:class:`TimestreamQuery.Client.exceptions.ValidationException`

  
  *   :py:class:`TimestreamQuery.Client.exceptions.InvalidEndpointException`

  