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

main
ts 16 lines 641 Bytes
Raw
1 import * as controltower from "@distilled.cloud/aws/controltower";
2 import * as Layer from "effect/Layer";
3 import { makeControlTowerHttpBinding } from "./BindingHttp.ts";
4 import type { LandingZone } from "./LandingZone.ts";
5 import { ResetLandingZone } from "./ResetLandingZone.ts";
6
7 export const ResetLandingZoneHttp = Layer.effect(
8 ResetLandingZone,
9 makeControlTowerHttpBinding({
10 capability: "ResetLandingZone",
11 iamActions: ["controltower:ResetLandingZone"],
12 requestKey: "landingZoneIdentifier",
13 identifier: (landingZone: LandingZone) => landingZone.landingZoneArn,
14 operation: controltower.resetLandingZone,
15 }),
16 );