getCrawlers method
Retrieves metadata for all crawlers defined in the customer account.
May throw OperationTimeoutException.
Parameter maxResults
:
The number of crawlers to return on each call.
Parameter nextToken
:
A continuation token, if this is a continuation request.
Implementation
Future<GetCrawlersResponse> getCrawlers({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1000,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.GetCrawlers'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return GetCrawlersResponse.fromJson(jsonResponse.body);
}