1import * as redshift from "@distilled.cloud/aws/redshift";
2import * as Layer from "effect/Layer";
3import {
4 clusterSnapshotArnPattern,
5 makeRedshiftClusterHttpBinding,
6} from "./BindingHttp.ts";
7import { CreateClusterSnapshot } from "./CreateClusterSnapshot.ts";
8
9export const CreateClusterSnapshotHttp = Layer.effect(
10 CreateClusterSnapshot,
11 makeRedshiftClusterHttpBinding({
12 tag: "AWS.Redshift.CreateClusterSnapshot",
13 operation: redshift.createClusterSnapshot,
14 actions: ["redshift:CreateClusterSnapshot"],
15 extraResources: (clusterArn) => [clusterSnapshotArnPattern(clusterArn)],
16 }),
17);