:doc:`Synthetics <../../synthetics>` / Client / list_tags_for_resource

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



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

  

  Displays the tags associated with a canary or group.

  

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


  **Request Syntax**
  ::

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

    The ARN of the canary or group that you want to view tags for.

     

    The ARN format of a canary is ``arn:aws:synthetics:Region:account-id:canary:canary-name ``.

     

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

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **Tags** *(dict) --* 

        The list of tag keys and values associated with the resource that you specified.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`Synthetics.Client.exceptions.BadRequestException`

  
  *   :py:class:`Synthetics.Client.exceptions.NotFoundException`

  
  *   :py:class:`Synthetics.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`Synthetics.Client.exceptions.ConflictException`

  
  *   :py:class:`Synthetics.Client.exceptions.InternalFailureException`

  