:doc:`OpenSearchServiceServerless <../../opensearchserverless>` / Client / untag_resource

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



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

  

  Removes a tag or set of tags from an OpenSearch Serverless resource. For more information, see `Tagging Amazon OpenSearch Serverless collections <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/tag-collection.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/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 remove tags from. The resource must be active (not in the ``DELETING`` state), and must be owned by the account ID included in the request.

    

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

    The tag or set of tags to remove from the resource. All tag keys in the request must be unique.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.InternalServerException`

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

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

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

  