batchGetTriggers method
Returns a list of resource metadata for a given list of trigger names.
After calling the ListTriggers
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 triggerNames
:
A list of trigger names, which may be the names returned from the
ListTriggers
operation.
Implementation
Future<BatchGetTriggersResponse> batchGetTriggers({
required List<String> triggerNames,
}) async {
ArgumentError.checkNotNull(triggerNames, 'triggerNames');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.BatchGetTriggers'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'TriggerNames': triggerNames,
},
);
return BatchGetTriggersResponse.fromJson(jsonResponse.body);
}