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

main
ts 41 lines 1.49 KB
Raw
1 import type * as comprehend from "@distilled.cloud/aws/comprehend";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `comprehend:StopTargetedSentimentDetectionJob` — request termination
7 * of an in-progress asynchronous targeted-sentiment detection job. The job moves to
8 * `STOP_REQUESTED` and then `STOPPED`; documents already processed are
9 * written to the output location.
10 *
11 * The binding takes no arguments and grants the action on `*` (job APIs
12 * have no resource-level IAM).
13 *
14 * ### Stopping Analysis Jobs
15 * **Example:** Stop a Running TargetedSentimentDetection Job
16 * ```typescript
17 * // init
18 * const stopTargetedSentimentDetectionJob = yield* AWS.Comprehend.StopTargetedSentimentDetectionJob();
19 *
20 * // runtime
21 * const result = yield* stopTargetedSentimentDetectionJob({ JobId: jobId });
22 * // result.JobStatus === "STOP_REQUESTED"
23 * ```
24 *
25 * @binding
26 */
27 export interface StopTargetedSentimentDetectionJob extends Binding.Service<
28 StopTargetedSentimentDetectionJob,
29 "AWS.Comprehend.StopTargetedSentimentDetectionJob",
30 () => Effect.Effect<
31 (
32 request: comprehend.StopTargetedSentimentDetectionJobRequest,
33 ) => Effect.Effect<
34 comprehend.StopTargetedSentimentDetectionJobResponse,
35 comprehend.StopTargetedSentimentDetectionJobError
36 >
37 >
38 > {}
39 export const StopTargetedSentimentDetectionJob = Binding.Service<StopTargetedSentimentDetectionJob>(
40 "AWS.Comprehend.StopTargetedSentimentDetectionJob",
41 );