| 1 | import type * as location from "@distilled.cloud/aws/location"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Cancels a running Location batch metadata job. |
| 7 | * |
| 8 | * Runtime binding for the `CancelJob` operation (IAM action |
| 9 | * `geo:CancelJob`), account-scoped — batch jobs are created at runtime so the |
| 10 | * grant is on `*`. Provide the implementation with |
| 11 | * `Effect.provide(AWS.Location.CancelJobHttp)`. |
| 12 | * |
| 13 | * ### Managing Batch Jobs |
| 14 | * **Example:** Cancel a Batch Job |
| 15 | * ```typescript |
| 16 | * const cancelJob = yield* Location.CancelJob(); |
| 17 | * |
| 18 | * yield* cancelJob({ JobId: jobId }); |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface CancelJob extends Binding.Service< |
| 24 | CancelJob, |
| 25 | "AWS.Location.CancelJob", |
| 26 | () => Effect.Effect< |
| 27 | ( |
| 28 | request: location.CancelJobRequest, |
| 29 | ) => Effect.Effect<location.CancelJobResponse, location.CancelJobError> |
| 30 | > |
| 31 | > {} |
| 32 | export const CancelJob = Binding.Service<CancelJob>("AWS.Location.CancelJob"); |