| 1 | import type * as SVC from "@distilled.cloud/aws/databrew"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Job } from "./Job.ts"; |
| 5 | |
| 6 | export interface StopJobRunRequest extends Omit< |
| 7 | SVC.StopJobRunRequest, |
| 8 | "Name" |
| 9 | > {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `databrew:StopJobRun` — cancels a run of the bound |
| 13 | * DataBrew job that is still starting or running. |
| 14 | * ### Stopping Job Runs |
| 15 | * **Example:** Stop a Job Run |
| 16 | * ```typescript |
| 17 | * const stopJobRun = yield* AWS.DataBrew.StopJobRun(job); |
| 18 | * |
| 19 | * yield* stopJobRun({ RunId: runId }); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface StopJobRun extends Binding.Service< |
| 25 | StopJobRun, |
| 26 | "AWS.DataBrew.StopJobRun", |
| 27 | <J extends Job>( |
| 28 | job: J, |
| 29 | ) => Effect.Effect< |
| 30 | ( |
| 31 | request: StopJobRunRequest, |
| 32 | ) => Effect.Effect<SVC.StopJobRunResponse, SVC.StopJobRunError> |
| 33 | > |
| 34 | > {} |
| 35 | export const StopJobRun = Binding.Service<StopJobRun>( |
| 36 | "AWS.DataBrew.StopJobRun", |
| 37 | ); |