getCalculationExecutionStatus method

Future<GetCalculationExecutionStatusResponse> getCalculationExecutionStatus({
  1. required String calculationExecutionId,
})

Gets the status of a current calculation.

May throw InternalServerException. May throw InvalidRequestException. May throw ResourceNotFoundException.

Parameter calculationExecutionId : The calculation execution UUID.

Implementation

Future<GetCalculationExecutionStatusResponse> getCalculationExecutionStatus({
  required String calculationExecutionId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonAthena.GetCalculationExecutionStatus'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'CalculationExecutionId': calculationExecutionId,
    },
  );

  return GetCalculationExecutionStatusResponse.fromJson(jsonResponse.body);
}