:doc:`CodeDeploy <../../codedeploy>` / Client / untag_resource

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



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

  

  Disassociates a resource from a list of tags. The resource is identified by the ``ResourceArn`` input parameter. The tags are identified by the list of keys in the ``TagKeys`` input parameter.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UntagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) that specifies from which resource to disassociate the tags with the keys in the ``TagKeys`` input parameter.

    

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

    A list of keys of ``Tag`` objects. The ``Tag`` objects identified by the keys are disassociated from the resource specified by the ``ResourceArn`` input parameter.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CodeDeploy.Client.exceptions.ResourceArnRequiredException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.ApplicationDoesNotExistException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.DeploymentGroupDoesNotExistException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.DeploymentConfigDoesNotExistException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.TagRequiredException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.InvalidTagsToAddException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.ArnNotSupportedException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.InvalidArnException`

  