:doc:`Lambda <../../lambda>` / Client / untag_resource

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



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

  

  Removes `tags <https://docs.aws.amazon.com/lambda/latest/dg/tagging.html>`__ from a function, event source mapping, or code signing configuration.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource>`_  


  **Request Syntax**
  ::

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

    The resource's Amazon Resource Name (ARN).

    

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

    A list of tag keys to remove from the resource.

    

  
    - *(string) --* 

    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Lambda.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Lambda.Client.exceptions.ResourceConflictException`

  
  *   :py:class:`Lambda.Client.exceptions.ServiceException`

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

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

  

  **Examples**

  The following example removes the tag with the key name DEPARTMENT tag from the my-function Lambda function.
  ::

    response = client.untag_resource(
        Resource='arn:aws:lambda:us-west-2:123456789012:function:my-function',
        TagKeys=[
            'DEPARTMENT',
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

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

  