stopQueryExecution method
Stops a query execution. Requires you to have access to the workgroup in which the query ran.
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(),
},
);
}