@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 16 lines 670 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 { CreateDataRepositoryTask } from "./CreateDataRepositoryTask.ts";
5
6 export const CreateDataRepositoryTaskHttp = Layer.effect(
7 CreateDataRepositoryTask,
8 makeFSxFileSystemHttpBinding({
9 tag: "AWS.FSx.CreateDataRepositoryTask",
10 operation: fsx.createDataRepositoryTask,
11 actions: ["fsx:CreateDataRepositoryTask", "fsx:TagResource"],
12 // The operation also authorizes on the new task's own ARN, which is
13 // unknowable at deploy time.
14 extraResourceArns: ["arn:aws:fsx:*:*:task/*"],
15 }),
16 );