Skip to content

StopSentimentDetectionJob

Source: src/AWS/Comprehend/StopSentimentDetectionJob.ts

Runtime binding for comprehend:StopSentimentDetectionJob — request termination of an in-progress asynchronous sentiment detection job. The job moves to STOP_REQUESTED and then STOPPED; documents already processed are written to the output location.

The binding takes no arguments and grants the action on * (job APIs have no resource-level IAM).

// init
const stopSentimentDetectionJob = yield* AWS.Comprehend.StopSentimentDetectionJob();
// runtime
const result = yield* stopSentimentDetectionJob({ JobId: jobId });
// result.JobStatus === "STOP_REQUESTED"