| 1 | import type * as comprehend from "@distilled.cloud/aws/comprehend"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `comprehend:StopKeyPhrasesDetectionJob` — request termination |
| 7 | * of an in-progress asynchronous key-phrase 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 KeyPhrasesDetection Job |
| 16 | * ```typescript |
| 17 | * // init |
| 18 | * const stopKeyPhrasesDetectionJob = yield* AWS.Comprehend.StopKeyPhrasesDetectionJob(); |
| 19 | * |
| 20 | * // runtime |
| 21 | * const result = yield* stopKeyPhrasesDetectionJob({ JobId: jobId }); |
| 22 | * // result.JobStatus === "STOP_REQUESTED" |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface StopKeyPhrasesDetectionJob extends Binding.Service< |
| 28 | StopKeyPhrasesDetectionJob, |
| 29 | "AWS.Comprehend.StopKeyPhrasesDetectionJob", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request: comprehend.StopKeyPhrasesDetectionJobRequest, |
| 33 | ) => Effect.Effect< |
| 34 | comprehend.StopKeyPhrasesDetectionJobResponse, |
| 35 | comprehend.StopKeyPhrasesDetectionJobError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | export const StopKeyPhrasesDetectionJob = |
| 40 | Binding.Service<StopKeyPhrasesDetectionJob>( |
| 41 | "AWS.Comprehend.StopKeyPhrasesDetectionJob", |
| 42 | ); |