Skip to content

StopTargetedSentimentDetectionJob

Source: src/AWS/Comprehend/StopTargetedSentimentDetectionJob.ts

Runtime binding for comprehend:StopTargetedSentimentDetectionJob — request termination of an in-progress asynchronous targeted-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 stopTargetedSentimentDetectionJob = yield* AWS.Comprehend.StopTargetedSentimentDetectionJob();
// runtime
const result = yield* stopTargetedSentimentDetectionJob({ JobId: jobId });
// result.JobStatus === "STOP_REQUESTED"