stopCalculationExecution method
Future<StopCalculationExecutionResponse>
stopCalculationExecution({
- required String calculationExecutionId,
Requests the cancellation of a calculation. A
StopCalculationExecution call on a calculation that is
already in a terminal state (for example, STOPPED,
FAILED, or COMPLETED) succeeds but has no
effect.
May throw InternalServerException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
Parameter calculationExecutionId :
The calculation execution UUID.
Implementation
Future<StopCalculationExecutionResponse> stopCalculationExecution({
required String calculationExecutionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.StopCalculationExecution'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CalculationExecutionId': calculationExecutionId,
},
);
return StopCalculationExecutionResponse.fromJson(jsonResponse.body);
}