batchGetJobs method
Returns a list of resource metadata for a given list of job names. After
calling the ListJobs
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 InternalServiceException. May throw OperationTimeoutException. May throw InvalidInputException.
Parameter jobNames
:
A list of job names, which might be the names returned from the
ListJobs
operation.
Implementation
Future<BatchGetJobsResponse> batchGetJobs({
required List<String> jobNames,
}) async {
ArgumentError.checkNotNull(jobNames, 'jobNames');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.BatchGetJobs'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobNames': jobNames,
},
);
return BatchGetJobsResponse.fromJson(jsonResponse.body);
}