1import * as memorydb from "@distilled.cloud/aws/memorydb";
2import * as Layer from "effect/Layer";
3import { makeMemoryDBAccountHttpBinding } from "./BindingHttp.ts";
4import { BatchUpdateCluster } from "./BatchUpdateCluster.ts";
5
6export 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);