batchGetQueryExecution method
Returns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. Requires you to have access to the workgroup in which the queries ran. To get a list of query execution IDs, use ListQueryExecutionsInput$WorkGroup. Query executions differ from named (saved) queries. Use BatchGetNamedQueryInput to get details about named queries.
May throw InternalServerException. May throw InvalidRequestException.
Parameter queryExecutionIds
:
An array of query execution IDs.
Implementation
Future<BatchGetQueryExecutionOutput> batchGetQueryExecution({
required List<String> queryExecutionIds,
}) async {
ArgumentError.checkNotNull(queryExecutionIds, 'queryExecutionIds');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.BatchGetQueryExecution'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'QueryExecutionIds': queryExecutionIds,
},
);
return BatchGetQueryExecutionOutput.fromJson(jsonResponse.body);
}