deleteTrigger method
Deletes a specified trigger. If the trigger is not found, no exception is thrown.
May throw InvalidInputException. May throw InternalServiceException. May throw OperationTimeoutException. May throw ConcurrentModificationException.
Parameter name
:
The name of the trigger to delete.
Implementation
Future<DeleteTriggerResponse> deleteTrigger({
required String name,
}) async {
ArgumentError.checkNotNull(name, 'name');
_s.validateStringLength(
'name',
name,
1,
255,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.DeleteTrigger'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
return DeleteTriggerResponse.fromJson(jsonResponse.body);
}