stopQueryExecution method
Stops a query execution. Requires you to have access to the workgroup in which the query ran.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
May throw InternalServerException. May throw InvalidRequestException.
Parameter queryExecutionId
:
The unique ID of the query execution to stop.
Implementation
Future<void> stopQueryExecution({
String? queryExecutionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.StopQueryExecution'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'QueryExecutionId': queryExecutionId ?? _s.generateIdempotencyToken(),
},
);
}