:doc:`IAM <../../iam>` / Client / untag_policy

************
untag_policy
************



.. py:method:: IAM.Client.untag_policy(**kwargs)

  

  Removes the specified tags from the customer managed policy. For more information about tagging, see `Tagging IAM resources <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html>`__ in the *IAM User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UntagPolicy>`_  


  **Request Syntax**
  ::

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

    The ARN of the IAM customer managed policy from which you want to remove tags.

     

    This parameter allows (through its `regex pattern <http://wikipedia.org/wiki/regex>`__) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

    

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

    A list of key names as a simple array of strings. The tags with matching keys are removed from the specified policy.

    

  
    - *(string) --* 

    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`IAM.Client.exceptions.NoSuchEntityException`

  
  *   :py:class:`IAM.Client.exceptions.InvalidInputException`

  
  *   :py:class:`IAM.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`IAM.Client.exceptions.ServiceFailureException`

  