Skip to content

StopEventsDetectionJob

Source: src/AWS/Comprehend/StopEventsDetectionJob.ts

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