:doc:`SSMContacts <../../ssm-contacts>` / Client / list_tags_for_resource

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



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

  

  Lists the tags of a contact, escalation plan, rotation, or on-call schedule.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-contacts-2021-05-03/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the contact, escalation plan, rotation, or on-call schedule.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The tags related to the contact or escalation plan.

        
        

        - *(dict) --* 

          A container of a key-value name pair.

          
          

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

            Name of the object key.

            
          

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

            Value of the tag.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`SSMContacts.Client.exceptions.AccessDeniedException`

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

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

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

  
  *   :py:class:`SSMContacts.Client.exceptions.InternalServerException`

  

  **Examples**

  The following list-tags-for-resource example lists the tags of the specified contact.
  ::

    response = client.list_tags_for_resource(
        ResourceARN='arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'Tags': [
            {
                'Key': 'group1',
                'Value': '1',
            },
        ],
        'ResponseMetadata': {
            '...': '...',
        },
    }

  