batchGetCrawlers method
Returns a list of resource metadata for a given list of crawler names.
After calling the ListCrawlers
operation, you can call this
operation to access the data to which you have been granted permissions.
This operation supports all IAM permissions, including permission
conditions that uses tags.
May throw InvalidInputException. May throw OperationTimeoutException.
Parameter crawlerNames
:
A list of crawler names, which might be the names returned from the
ListCrawlers
operation.
Implementation
Future<BatchGetCrawlersResponse> batchGetCrawlers({
required List<String> crawlerNames,
}) async {
ArgumentError.checkNotNull(crawlerNames, 'crawlerNames');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.BatchGetCrawlers'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CrawlerNames': crawlerNames,
},
);
return BatchGetCrawlersResponse.fromJson(jsonResponse.body);
}