Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

589 B
Raw Blame
import * as fsx from "@distilled.cloud/aws/fsx";
import * as Layer from "effect/Layer";
import { makeFSxFileSystemHttpBinding } from "./BindingHttp.ts";
import { CreateBackup } from "./CreateBackup.ts";

export const CreateBackupHttp = Layer.effect(
  CreateBackup,
  makeFSxFileSystemHttpBinding({
    tag: "AWS.FSx.CreateBackup",
    operation: fsx.createBackup,
    actions: ["fsx:CreateBackup", "fsx:TagResource"],
    // CreateBackup also authorizes on the new backup's own ARN, which is
    // unknowable at deploy time.
    extraResourceArns: ["arn:aws:fsx:*:*:backup/*"],
  }),
);