:doc:`PaymentCryptographyControlPlane <../../payment-cryptography>` / Client / untag_resource

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



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

  

  Deletes a tag from an Amazon Web Services Payment Cryptography key.

   

  .. note::

    

    Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

    

   

  **Cross-account use:** This operation can't be used across different Amazon Web Services accounts.

   

  **Related operations:**

   

  
  * `ListTagsForResource <https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListTagsForResource.html>`__
   
  * `TagResource <https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_TagResource.html>`__
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/UntagResource>`_  


  **Request Syntax**
  ::

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

    The ``KeyARN`` of the key whose tags are being removed.

    

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

    One or more tag keys. Don't include the tag values.

     

    If the Amazon Web Services Payment Cryptography key doesn't have the specified tag key, Amazon Web Services Payment Cryptography doesn't throw an exception or return a response. To confirm that the operation succeeded, use the `ListTagsForResource <https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListTagsForResource.html>`__ operation.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ValidationException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ConflictException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ThrottlingException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.InternalServerException`

  