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

main
ts 37 lines 1.21 KB
Raw
1 import type * as amplify from "@distilled.cloud/aws/amplify";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { App } from "./App.ts";
5
6 export interface DeleteJobRequest extends Omit<amplify.DeleteJobRequest, "appId"> {}
7
8 /**
9 * Runtime binding for `amplify:DeleteJob`.
10 *
11 * Bind an {@link App} in the function's init phase to get a callable that
12 * deletes a build job from a branch's history — e.g. a maintenance function
13 * pruning old build records. Provide the implementation with
14 * `Effect.provide(AWS.Amplify.DeleteJobHttp)`.
15 * ### Controlling Jobs
16 * **Example:** Prune an Old Build Record
17 * ```typescript
18 * // init — bind the operation to the app
19 * const deleteJob = yield* AWS.Amplify.DeleteJob(app);
20 *
21 * // runtime — remove the job from the branch's history
22 * yield* deleteJob({ branchName: "main", jobId: "42" });
23 * ```
24 *
25 * @binding
26 */
27 export interface DeleteJob extends Binding.Service<
28 DeleteJob,
29 "AWS.Amplify.DeleteJob",
30 (
31 app: App,
32 ) => Effect.Effect<
33 (request: DeleteJobRequest) => Effect.Effect<amplify.DeleteJobResult, amplify.DeleteJobError>
34 >
35 > {}
36
37 export const DeleteJob = Binding.Service<DeleteJob>("AWS.Amplify.DeleteJob");