@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 39 lines 1.28 KB
Raw
1 import type * as emr from "@distilled.cloud/aws/emr-serverless";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Application } from "./Application.ts";
5
6 /**
7 * Request accepted by the {@link CancelJobRun} runtime callable. The
8 * `applicationId` is injected from the bound {@link Application}.
9 */
10 export type CancelJobRunInput = Omit<emr.CancelJobRunRequest, "applicationId">;
11
12 /**
13 * Runtime binding for `emr-serverless:CancelJobRun`.
14 *
15 * Cancels a running or queued job run on the bound {@link Application} — the
16 * kill switch for a runaway or superseded job. Provide the implementation
17 * with `Effect.provide(AWS.EMRServerless.CancelJobRunHttp)`.
18 * ### Running Jobs
19 * **Example:** Cancel A Job Run
20 * ```typescript
21 * // init
22 * const cancelJobRun = yield* AWS.EMRServerless.CancelJobRun(app);
23 *
24 * // runtime
25 * yield* cancelJobRun({ jobRunId });
26 * ```
27 *
28 * @binding
29 */
30 export interface CancelJobRun extends Binding.Service<
31 CancelJobRun,
32 "AWS.EMRServerless.CancelJobRun",
33 (
34 application: Application,
35 ) => Effect.Effect<
36 (request: CancelJobRunInput) => Effect.Effect<emr.CancelJobRunResponse, emr.CancelJobRunError>
37 >
38 > {}
39 export const CancelJobRun = Binding.Service<CancelJobRun>("AWS.EMRServerless.CancelJobRun");