stopCrawler method
If the specified crawler is running, stops the crawl.
May throw CrawlerNotRunningException.
May throw CrawlerStoppingException.
May throw EntityNotFoundException.
May throw OperationTimeoutException.
Parameter name :
Name of the crawler to stop.
Implementation
Future<void> stopCrawler({
required String name,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.StopCrawler'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
}