cancelSimulationJobBatch method

Future<void> cancelSimulationJobBatch({
  1. required String batch,
})

Cancels a simulation job batch. When you cancel a simulation job batch, you are also cancelling all of the active simulation jobs created as part of the batch.

May throw ResourceNotFoundException. May throw InvalidParameterException. May throw InternalServerException. May throw ThrottlingException.

Parameter batch : The id of the batch to cancel.

Implementation

Future<void> cancelSimulationJobBatch({
  required String batch,
}) async {
  ArgumentError.checkNotNull(batch, 'batch');
  _s.validateStringLength(
    'batch',
    batch,
    1,
    1224,
    isRequired: true,
  );
  final $payload = <String, dynamic>{
    'batch': batch,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/cancelSimulationJobBatch',
    exceptionFnMap: _exceptionFns,
  );
}