deleteStoredQuery method
Deletes the stored query for an AWS account in an AWS Region.
May throw ValidationException. May throw ResourceNotFoundException.
Parameter queryName
:
The name of the query that you want to delete.
Implementation
Future<void> deleteStoredQuery({
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.DeleteStoredQuery'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'QueryName': queryName,
},
);
}