| 1 | import type * as comprehendmedical from "@distilled.cloud/aws/comprehendmedical"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `comprehendmedical:StopEntitiesDetectionV2Job` — stop an in-progress asynchronous medical entity detection job. |
| 7 | * |
| 8 | * Comprehend Medical has no resource-level IAM, so the binding takes no |
| 9 | * arguments and grants `comprehendmedical:StopEntitiesDetectionV2Job` on `*`. Provide the |
| 10 | * implementation with `Effect.provide(AWS.ComprehendMedical.StopEntitiesDetectionV2JobHttp)`. |
| 11 | * |
| 12 | * ### Batch Entity Detection Jobs |
| 13 | * **Example:** Stop a Running Job |
| 14 | * ```typescript |
| 15 | * // init |
| 16 | * const stopEntitiesDetectionV2Job = yield* AWS.ComprehendMedical.StopEntitiesDetectionV2Job(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * yield* stopEntitiesDetectionV2Job({ JobId: jobId }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface StopEntitiesDetectionV2Job extends Binding.Service< |
| 25 | StopEntitiesDetectionV2Job, |
| 26 | "AWS.ComprehendMedical.StopEntitiesDetectionV2Job", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request: comprehendmedical.StopEntitiesDetectionV2JobRequest, |
| 30 | ) => Effect.Effect< |
| 31 | comprehendmedical.StopEntitiesDetectionV2JobResponse, |
| 32 | comprehendmedical.StopEntitiesDetectionV2JobError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const StopEntitiesDetectionV2Job = |
| 37 | Binding.Service<StopEntitiesDetectionV2Job>( |
| 38 | "AWS.ComprehendMedical.StopEntitiesDetectionV2Job", |
| 39 | ); |