stopCrawler method
If the specified crawler is running, stops the crawl.
May throw EntityNotFoundException. May throw CrawlerNotRunningException. May throw CrawlerStoppingException. May throw OperationTimeoutException.
Parameter name
:
Name of the crawler to stop.
Implementation
Future<void> stopCrawler({
required String name,
}) async {
ArgumentError.checkNotNull(name, 'name');
_s.validateStringLength(
'name',
name,
1,
255,
isRequired: true,
);
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,
},
);
}