@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 32 lines 983 Bytes
Raw
1 import type * as location from "@distilled.cloud/aws/location";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
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");