:doc:`QBusiness <../../qbusiness>` / Client / list_tags_for_resource

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



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

  

  Gets a list of tags associated with a specified resource. Amazon Q Business applications and data sources can have tags associated with them.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/ListTagsForResource>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_resource(
        resourceARN='string'
    )
    
  :type resourceARN: string
  :param resourceARN: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Amazon Q Business application or data source to get a list of tags for.

    

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

    
    ::

      {
          'tags': [
              {
                  'key': 'string',
                  'value': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **tags** *(list) --* 

        A list of tags associated with the Amazon Q Business application or data source.

        
        

        - *(dict) --* 

          A list of key/value pairs that identify an index, FAQ, or data source. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.

          
          

          - **key** *(string) --* 

            The key for the tag. Keys are not case sensitive and must be unique for the Amazon Q Business application or data source.

            
          

          - **value** *(string) --* 

            The value associated with the tag. The value may be an empty string but it can't be null.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`QBusiness.Client.exceptions.InternalServerException`

  
  *   :py:class:`QBusiness.Client.exceptions.ResourceNotFoundException`

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

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

  
  *   :py:class:`QBusiness.Client.exceptions.AccessDeniedException`

  