deleteCrawler method

Future<void> deleteCrawler({
  1. required String name,
})

Removes a specified crawler from the AWS Glue Data Catalog, unless the crawler state is RUNNING.

May throw EntityNotFoundException. May throw CrawlerRunningException. May throw SchedulerTransitioningException. May throw OperationTimeoutException.

Parameter name : The name of the crawler to remove.

Implementation

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