startTrigger method

Future<StartTriggerResponse> startTrigger({
  1. required String name,
})

Starts an existing trigger. See Triggering Jobs for information about how different types of trigger are started.

May throw InvalidInputException. May throw InternalServiceException. May throw EntityNotFoundException. May throw OperationTimeoutException. May throw ResourceNumberLimitExceededException. May throw ConcurrentRunsExceededException.

Parameter name : The name of the trigger to start.

Implementation

Future<StartTriggerResponse> startTrigger({
  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.StartTrigger'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Name': name,
    },
  );

  return StartTriggerResponse.fromJson(jsonResponse.body);
}