:doc:`CostExplorer <../../ce>` / Client / list_tags_for_resource

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



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

  

  Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see `ResourceTag <https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_ResourceTag.html>`__.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ResourceTags** *(list) --* 

        A list of tag key value pairs that are associated with the resource.

        
        

        - *(dict) --* 

          The tag structure that contains a tag key and value.

           

          .. note::

            

            Tagging is supported only for the following Cost Explorer resource types: `AnomalyMonitor <https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html>`__, `AnomalySubscription <https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalySubscription.html>`__, `CostCategory <https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategory.html>`__.

            

          
          

          - **Key** *(string) --* 

            The key that's associated with the tag.

            
          

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

            The value that's associated with the tag.

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

  
  *   :py:class:`CostExplorer.Client.exceptions.LimitExceededException`

  