startCrawlerSchedule method
Changes the schedule state of the specified crawler to
SCHEDULED, unless the crawler is already running or the
schedule state is already SCHEDULED.
May throw EntityNotFoundException. May throw SchedulerRunningException. May throw SchedulerTransitioningException. May throw NoScheduleException. May throw OperationTimeoutException.
Parameter crawlerName :
Name of the crawler to schedule.
Implementation
Future<void> startCrawlerSchedule({
required String crawlerName,
}) async {
ArgumentError.checkNotNull(crawlerName, 'crawlerName');
_s.validateStringLength(
'crawlerName',
crawlerName,
1,
255,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.StartCrawlerSchedule'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CrawlerName': crawlerName,
},
);
}