getCrawler method

Future<GetCrawlerResponse> getCrawler({
  1. required String name,
})

Retrieves metadata for a specified crawler.

May throw EntityNotFoundException. May throw OperationTimeoutException.

Parameter name : The name of the crawler to retrieve metadata for.

Implementation

Future<GetCrawlerResponse> getCrawler({
  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.GetCrawler'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Name': name,
    },
  );

  return GetCrawlerResponse.fromJson(jsonResponse.body);
}