@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 15 lines 516 Bytes
Raw
1 import * as fsx from "@distilled.cloud/aws/fsx";
2 import * as Layer from "effect/Layer";
3 import { makeFSxAccountHttpBinding } from "./BindingHttp.ts";
4 import { CopyBackup } from "./CopyBackup.ts";
5
6 export const CopyBackupHttp = Layer.effect(
7 CopyBackup,
8 makeFSxAccountHttpBinding({
9 tag: "AWS.FSx.CopyBackup",
10 // CopyBackup tags the new backup it creates, so it needs TagResource
11 // alongside the copy itself.
12 operation: fsx.copyBackup,
13 actions: ["fsx:CopyBackup", "fsx:TagResource"],
14 }),
15 );