| 1 | import * as redshift from "@distilled.cloud/aws/redshift"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { |
| 4 | clusterSnapshotArnPattern, |
| 5 | makeRedshiftClusterHttpBinding, |
| 6 | } from "./BindingHttp.ts"; |
| 7 | import { CreateClusterSnapshot } from "./CreateClusterSnapshot.ts"; |
| 8 | |
| 9 | export 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 | ); |