batchGetWorkflows method
Returns a list of resource metadata for a given list of workflow names.
After calling the ListWorkflows
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 names
:
A list of workflow names, which may be the names returned from the
ListWorkflows
operation.
Parameter includeGraph
:
Specifies whether to include a graph when returning the workflow resource
metadata.
Implementation
Future<BatchGetWorkflowsResponse> batchGetWorkflows({
required List<String> names,
bool? includeGraph,
}) async {
ArgumentError.checkNotNull(names, 'names');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.BatchGetWorkflows'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Names': names,
if (includeGraph != null) 'IncludeGraph': includeGraph,
},
);
return BatchGetWorkflowsResponse.fromJson(jsonResponse.body);
}