getQueryExecution method
Returns information about a single execution of a query if you have access to the workgroup in which the query ran. Each time a query executes, information about the query execution is saved with a unique ID.
May throw InternalServerException. May throw InvalidRequestException.
Parameter queryExecutionId
:
The unique ID of the query execution.
Implementation
Future<GetQueryExecutionOutput> getQueryExecution({
required String queryExecutionId,
}) async {
ArgumentError.checkNotNull(queryExecutionId, 'queryExecutionId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.GetQueryExecution'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'QueryExecutionId': queryExecutionId,
},
);
return GetQueryExecutionOutput.fromJson(jsonResponse.body);
}