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

**************
untag_resource
**************



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

  

  Removes tags from the specified resource.

  

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


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the contact or escalation plan.

    

  
  :type TagKeys: list
  :param TagKeys: **[REQUIRED]** 

    The key of the tag that you want to remove.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **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 untag-resource example removes the group1 tag from the specified contact.
  ::

    response = client.untag_resource(
        ResourceARN='arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam',
        TagKeys=[
            'group1',
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  