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

main
ts 15 lines 499 Bytes
Raw
1 import * as amplify from "@distilled.cloud/aws/amplify";
2 import * as Output from "alchemy/Output";
3 import * as Layer from "effect/Layer";
4 import { makeAmplifyHttpBinding } from "./BindingHttp.ts";
5 import { StartJob } from "./StartJob.ts";
6
7 export const StartJobHttp = Layer.effect(
8 StartJob,
9 makeAmplifyHttpBinding({
10 name: "StartJob",
11 operation: amplify.startJob,
12 actions: ["amplify:StartJob"],
13 resources: (app) => [Output.interpolate`${app.appArn}/branches/*/jobs/*`],
14 }),
15 );