The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as redshift from "@distilled.cloud/aws/redshift"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { clusterSnapshotArnPattern, makeRedshiftClusterHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { CreateClusterSnapshot } from "./CreateClusterSnapshot.ts"; |
| 5 | |
| 6 | export const CreateClusterSnapshotHttp = Layer.effect( |
| 7 | CreateClusterSnapshot, |
| 8 | makeRedshiftClusterHttpBinding({ |
| 9 | tag: "AWS.Redshift.CreateClusterSnapshot", |
| 10 | operation: redshift.createClusterSnapshot, |
| 11 | actions: ["redshift:CreateClusterSnapshot"], |
| 12 | extraResources: (clusterArn) => [clusterSnapshotArnPattern(clusterArn)], |
| 13 | }), |
| 14 | ); |