:doc:`NeptuneGraph <../../neptune-graph>` / Client / cancel_query

************
cancel_query
************



.. py:method:: NeptuneGraph.Client.cancel_query(**kwargs)

  

  Cancels a specified query.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/CancelQuery>`_  


  **Request Syntax**
  ::

    response = client.cancel_query(
        graphIdentifier='string',
        queryId='string'
    )
    
  :type graphIdentifier: string
  :param graphIdentifier: **[REQUIRED]** 

    The unique identifier of the Neptune Analytics graph.

    

  
  :type queryId: string
  :param queryId: **[REQUIRED]** 

    The unique identifier of the query to cancel.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`NeptuneGraph.Client.exceptions.ThrottlingException`

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

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

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

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

  