cancelSimulationJob method

Future<void> cancelSimulationJob({
  1. required String job,
})

Cancels the specified simulation job.

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

Parameter job : The simulation job ARN to cancel.

Implementation

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