sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ FSx/ CreateSnapshotHttp.ts

import * as fsx from "@distilled.cloud/aws/fsx";
import * as Layer from "effect/Layer";
import { makeFSxAccountHttpBinding } from "./BindingHttp.ts";
import { CreateSnapshot } from "./CreateSnapshot.ts";

export const CreateSnapshotHttp = Layer.effect(
  CreateSnapshot,
  makeFSxAccountHttpBinding({
    tag: "AWS.FSx.CreateSnapshot",
    operation: fsx.createSnapshot,
    actions: ["fsx:CreateSnapshot", "fsx:TagResource"],
  }),
);