:doc:`CloudWatchLogs <../../logs>` / Client / list_tags_for_resource

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



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

  

  Displays the tags associated with a CloudWatch Logs resource. Currently, log groups and destinations support tagging.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The ARN of the resource that you want to view tags for.

     

    The ARN format of a log group is ``arn:aws:logs:Region:account-id:log-group:log-group-name``

     

    The ARN format of a destination is ``arn:aws:logs:Region:account-id:destination:destination-name``

     

    For more information about ARN format, see `CloudWatch Logs resources and operations <https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html>`__.

    

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

    
    ::

      {
          'tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **tags** *(dict) --* 

        The list of tags associated with the requested resource.>

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`CloudWatchLogs.Client.exceptions.InvalidParameterException`

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

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ServiceUnavailableException`

  