stop_query_execution

Athena.Client.stop_query_execution(**kwargs)

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

For code samples using the Amazon Web Services SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide .

See also: AWS API Documentation

Request Syntax

response = client.stop_query_execution(
    QueryExecutionId='string'
)
Parameters
QueryExecutionId (string) --

[REQUIRED]

The unique ID of the query execution to stop.

This field is autopopulated if not provided.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

  • Athena.Client.exceptions.InternalServerException
  • Athena.Client.exceptions.InvalidRequestException