:doc:`RAM <../../ram>` / Client / untag_resource

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



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

  

  Removes the specified tag key and value pairs from the specified resource share or managed permission.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource>`_  


  **Request Syntax**
  ::

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

    Specifies the `Amazon Resource Name (ARN) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ of the resource share that you want to remove tags from. The tags are removed from the resource share, not the resources in the resource share. You must specify either ``resourceShareArn``, or ``resourceArn``, but not both.

    

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

    Specifies a list of one or more tag keys that you want to remove.

    

  
    - *(string) --* 

    

  :type resourceArn: string
  :param resourceArn: 

    Specifies the `Amazon Resource Name (ARN) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ of the managed permission that you want to remove tags from. You must specify either ``resourceArn``, or ``resourceShareArn``, but not both.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`RAM.Client.exceptions.UnknownResourceException`

  
  *   :py:class:`RAM.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`RAM.Client.exceptions.MalformedArnException`

  
  *   :py:class:`RAM.Client.exceptions.ServerInternalException`

  
  *   :py:class:`RAM.Client.exceptions.ServiceUnavailableException`

  