The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as docdbelastic from "@distilled.cloud/aws/docdb-elastic"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeDocDBElasticClusterHttpBinding, SNAPSHOT_ARN_WILDCARD } from "./BindingHttp.ts"; |
| 4 | import { CreateClusterSnapshot } from "./CreateClusterSnapshot.ts"; |
| 5 | |
| 6 | export const CreateClusterSnapshotHttp = Layer.effect( |
| 7 | CreateClusterSnapshot, |
| 8 | makeDocDBElasticClusterHttpBinding({ |
| 9 | tag: "AWS.DocDBElastic.CreateClusterSnapshot", |
| 10 | operation: docdbelastic.createClusterSnapshot, |
| 11 | actions: ["docdb-elastic:CreateClusterSnapshot", "docdb-elastic:TagResource"], |
| 12 | // The action authorizes against both the source cluster and the |
| 13 | // to-be-created snapshot (whose UUID-based ARN is server-generated). |
| 14 | extraResources: [SNAPSHOT_ARN_WILDCARD], |
| 15 | }), |
| 16 | ); |