stopArchiveSearch method
Stops an in-progress archive search job.
May throw AccessDeniedException.
May throw ThrottlingException.
May throw ValidationException.
Parameter searchId :
The identifier of the search job to stop.
Implementation
Future<void> stopArchiveSearch({
required String searchId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'MailManagerSvc.StopArchiveSearch'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SearchId': searchId,
},
);
}