StopLabelingJobCommand

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.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { SageMakerClient, StopLabelingJobCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import
// const { SageMakerClient, StopLabelingJobCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import
const client = new SageMakerClient(config);
const input = { // StopLabelingJobRequest
  LabelingJobName: "STRING_VALUE", // required
};
const command = new StopLabelingJobCommand(input);
const response = await client.send(command);
// {};

StopLabelingJobCommand Input

See StopLabelingJobCommandInput for more details

Parameter
Type
Description
LabelingJobName
Required
string | undefined

The name of the labeling job to stop.

StopLabelingJobCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
ResourceNotFound
client

Resource being access is not found.

SageMakerServiceException
Base exception class for all service exceptions from SageMaker service.