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