stopCrawlerSchedule method

Future<void> stopCrawlerSchedule({
  1. required String crawlerName,
})

Sets the schedule state of the specified crawler to NOT_SCHEDULED, but does not stop the crawler if it is already running.

May throw EntityNotFoundException. May throw SchedulerNotRunningException. May throw SchedulerTransitioningException. May throw OperationTimeoutException.

Parameter crawlerName : Name of the crawler whose schedule state to set.

Implementation

Future<void> stopCrawlerSchedule({
  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.StopCrawlerSchedule'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'CrawlerName': crawlerName,
    },
  );
}