| 1 | import type * as dataexchange from "@distilled.cloud/aws/dataexchange"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `dataexchange:CancelJob`. |
| 7 | * |
| 8 | * Cancels a job that has not yet been started (`WAITING` state). |
| 9 | * Provide the implementation with |
| 10 | * `Effect.provide(AWS.DataExchange.CancelJobHttp)`. |
| 11 | * ### Import & Export Jobs |
| 12 | * **Example:** Cancel A Waiting Job |
| 13 | * ```typescript |
| 14 | * const cancelJob = yield* AWS.DataExchange.CancelJob(); |
| 15 | * |
| 16 | * // runtime |
| 17 | * yield* cancelJob({ JobId: job.Id! }); |
| 18 | * ``` |
| 19 | * |
| 20 | * @binding |
| 21 | */ |
| 22 | export interface CancelJob extends Binding.Service< |
| 23 | CancelJob, |
| 24 | "AWS.DataExchange.CancelJob", |
| 25 | () => Effect.Effect< |
| 26 | ( |
| 27 | request: dataexchange.CancelJobRequest, |
| 28 | ) => Effect.Effect< |
| 29 | dataexchange.CancelJobResponse, |
| 30 | dataexchange.CancelJobError |
| 31 | > |
| 32 | > |
| 33 | > {} |
| 34 | export const CancelJob = Binding.Service<CancelJob>( |
| 35 | "AWS.DataExchange.CancelJob", |
| 36 | ); |