stopInferenceRecommendationsJob method

Future<void> stopInferenceRecommendationsJob({
  1. required String jobName,
})

Stops an Inference Recommender job.

May throw ResourceNotFound.

Parameter jobName : The name of the job you want to stop.

Implementation

Future<void> stopInferenceRecommendationsJob({
  required String jobName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.StopInferenceRecommendationsJob'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'JobName': jobName,
    },
  );
}