@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 38 lines 1.17 KB
Raw
1 import type * as translate from "@distilled.cloud/aws/translate";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
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 */
24 export 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 > {}
36 export const StopTextTranslationJob = Binding.Service<StopTextTranslationJob>(
37 "AWS.Translate.StopTextTranslationJob",
38 );