:doc:`CodeCommit <../../codecommit>` / Client / untag_resource

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



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

  

  Removes tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see `CodeCommit Resources and Operations <https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats>`__ in the *CodeCommit User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UntagResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource to which you want to remove tags.

    

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

    The tag key for each tag that you want to remove from the resource.

    

  
    - *(string) --* 

    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`CodeCommit.Client.exceptions.RepositoryDoesNotExistException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidRepositoryNameException`

  
  *   :py:class:`CodeCommit.Client.exceptions.ResourceArnRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidResourceArnException`

  
  *   :py:class:`CodeCommit.Client.exceptions.TagKeysListRequiredException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidTagKeysListException`

  
  *   :py:class:`CodeCommit.Client.exceptions.TooManyTagsException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidSystemTagUsageException`

  
  *   :py:class:`CodeCommit.Client.exceptions.TagPolicyException`

  