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

**********************
list_tags_for_resource
**********************



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

  

  List all tags on a Timestream query resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ListTagsForResource>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_resource(
        ResourceARN='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type ResourceARN: string
  :param ResourceARN: **[REQUIRED]** 

    The Timestream resource with tags to be listed. This value is an Amazon Resource Name (ARN).

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of tags to return.

    

  
  :type NextToken: string
  :param NextToken: 

    A pagination token to resume pagination.

    

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

    
    ::

      {
          'Tags': [
              {
                  'Key': 'string',
                  'Value': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Tags** *(list) --* 

        The tags currently associated with 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) --* 

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

            
          

          - **Value** *(string) --* 

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

            
      
    
      

      - **NextToken** *(string) --* 

        A pagination token to resume pagination with a subsequent call to ``ListTagsForResourceResponse``.

        
  
  **Exceptions**
  
  *   :py:class:`TimestreamQuery.Client.exceptions.ResourceNotFoundException`

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

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

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

  