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

main
ts 16 lines 589 Bytes
Raw
1 import * as fsx from "@distilled.cloud/aws/fsx";
2 import * as Layer from "effect/Layer";
3 import { makeFSxFileSystemHttpBinding } from "./BindingHttp.ts";
4 import { CreateBackup } from "./CreateBackup.ts";
5
6 export const CreateBackupHttp = Layer.effect(
7 CreateBackup,
8 makeFSxFileSystemHttpBinding({
9 tag: "AWS.FSx.CreateBackup",
10 operation: fsx.createBackup,
11 actions: ["fsx:CreateBackup", "fsx:TagResource"],
12 // CreateBackup also authorizes on the new backup's own ARN, which is
13 // unknowable at deploy time.
14 extraResourceArns: ["arn:aws:fsx:*:*:backup/*"],
15 }),
16 );