:doc:`Athena <../../athena>` / Client / stop_query_execution

********************
stop_query_execution
********************



.. py:method:: Athena.Client.stop_query_execution(**kwargs)

  

  Stops a query execution. Requires you to have access to the workgroup in which the query ran.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StopQueryExecution>`_  


  **Request Syntax**
  ::

    response = client.stop_query_execution(
        QueryExecutionId='string'
    )
    
  :type QueryExecutionId: string
  :param QueryExecutionId: **[REQUIRED]** 

    The unique ID of the query execution to stop.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

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

  
  *   :py:class:`Athena.Client.exceptions.InvalidRequestException`

  