1import type * as translate from "@distilled.cloud/aws/translate";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `translate:StopTextTranslationJob` — stop an
7 * asynchronous batch translation job that is in progress. An `IN_PROGRESS`
8 * job is marked `STOP_REQUESTED` and later `STOPPED`; a job that completes
9 * first ends `COMPLETED`.
10 *
11 * ### Batch Translation Jobs
12 * **Example:** Stop a batch translation job
13 * ```typescript
14 * // init
15 * const stopJob = yield* AWS.Translate.StopTextTranslationJob();
16 *
17 * // runtime
18 * const result = yield* stopJob({ JobId: job.JobId! });
19 * // result.JobStatus === "STOP_REQUESTED"
20 * ```
21 *
22 * @binding
23 */
24export interface StopTextTranslationJob extends Binding.Service<
25 StopTextTranslationJob,
26 "AWS.Translate.StopTextTranslationJob",
27 () => Effect.Effect<
28 (
29 request: translate.StopTextTranslationJobRequest,
30 ) => Effect.Effect<
31 translate.StopTextTranslationJobResponse,
32 translate.StopTextTranslationJobError
33 >
34 >
35> {}
36export const StopTextTranslationJob = Binding.Service<StopTextTranslationJob>(
37 "AWS.Translate.StopTextTranslationJob",
38);