| 1 | import * as memorydb from "@distilled.cloud/aws/memorydb"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeMemoryDBAccountHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { BatchUpdateCluster } from "./BatchUpdateCluster.ts"; |
| 5 | |
| 6 | export const BatchUpdateClusterHttp = Layer.effect( |
| 7 | BatchUpdateCluster, |
| 8 | makeMemoryDBAccountHttpBinding({ |
| 9 | tag: "AWS.MemoryDB.BatchUpdateCluster", |
| 10 | operation: memorydb.batchUpdateCluster, |
| 11 | // Clusters are addressed by a runtime name list — grant on the cluster |
| 12 | // ARN wildcard. |
| 13 | actions: ["memorydb:BatchUpdateCluster"], |
| 14 | resources: ["arn:aws:memorydb:*:*:cluster/*"], |
| 15 | }), |
| 16 | ); |