getStoredQuery method
Returns the details of a specific stored query.
May throw ValidationException. May throw ResourceNotFoundException.
Parameter queryName
:
The name of the query.
Implementation
Future<GetStoredQueryResponse> getStoredQuery({
required String queryName,
}) async {
ArgumentError.checkNotNull(queryName, 'queryName');
_s.validateStringLength(
'queryName',
queryName,
1,
64,
isRequired: true,
);
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);
}