awswrangler.athena.stop_query_execution

awswrangler.athena.stop_query_execution(query_execution_id: str, boto3_session: Session | None = None) None

Stop a query execution.

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

Parameters:
  • query_execution_id (str) – Athena query execution ID.

  • boto3_session (boto3.Session(), optional) – Boto3 Session. The default boto3 session will be used if boto3_session receive None.

Returns:

None.

Return type:

None

Examples

>>> import awswrangler as wr
>>> wr.athena.stop_query_execution(query_execution_id='query-execution-id')