getCalculationExecutionCode method
Future<GetCalculationExecutionCodeResponse>
getCalculationExecutionCode({
- required String calculationExecutionId,
Retrieves the unencrypted code that was executed for the calculation.
May throw InternalServerException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
Parameter calculationExecutionId :
The calculation execution UUID.
Implementation
Future<GetCalculationExecutionCodeResponse> getCalculationExecutionCode({
required String calculationExecutionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.GetCalculationExecutionCode'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CalculationExecutionId': calculationExecutionId,
},
);
return GetCalculationExecutionCodeResponse.fromJson(jsonResponse.body);
}