stopLabelingJob method
Stops a running labeling job. A job that is stopped cannot be restarted. Any results obtained before the job is stopped are placed in the Amazon S3 output bucket.
May throw ResourceNotFound.
Parameter labelingJobName
:
The name of the labeling job to stop.
Implementation
Future<void> stopLabelingJob({
required String labelingJobName,
}) async {
ArgumentError.checkNotNull(labelingJobName, 'labelingJobName');
_s.validateStringLength(
'labelingJobName',
labelingJobName,
1,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.StopLabelingJob'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'LabelingJobName': labelingJobName,
},
);
}