stopAutoMLJob method

Future<void> stopAutoMLJob({
  1. required String autoMLJobName,
})

A method for forcing the termination of a running job.

May throw ResourceNotFound.

Parameter autoMLJobName : The name of the object you are requesting.

Implementation

Future<void> stopAutoMLJob({
  required String autoMLJobName,
}) async {
  ArgumentError.checkNotNull(autoMLJobName, 'autoMLJobName');
  _s.validateStringLength(
    'autoMLJobName',
    autoMLJobName,
    1,
    32,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.StopAutoMLJob'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AutoMLJobName': autoMLJobName,
    },
  );
}