Skip to content

StopTextTranslationJob

Source: src/AWS/Translate/StopTextTranslationJob.ts

Runtime binding for translate:StopTextTranslationJob — stop an asynchronous batch translation job that is in progress. An IN_PROGRESS job is marked STOP_REQUESTED and later STOPPED; a job that completes first ends COMPLETED.

// init
const stopJob = yield* AWS.Translate.StopTextTranslationJob();
// runtime
const result = yield* stopJob({ JobId: job.JobId! });
// result.JobStatus === "STOP_REQUESTED"