Skip to content
TypeScript
436 B
Raw Blame
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"],
  }),
);