getStoredQuery method
Returns the details of a specific stored query.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter queryName :
The name of the query.
Implementation
Future<GetStoredQueryResponse> getStoredQuery({
required String queryName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.GetStoredQuery'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'QueryName': queryName,
},
);
return GetStoredQueryResponse.fromJson(jsonResponse.body);
}