sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Kafka/ UpdateTopicHttp.ts

import * as kafka from "@distilled.cloud/aws/kafka";
import * as Layer from "effect/Layer";
import { makeKafkaClusterHttpBinding } from "./BindingHttp.ts";
import { UpdateTopic } from "./UpdateTopic.ts";

export const UpdateTopicHttp = Layer.effect(
  UpdateTopic,
  makeKafkaClusterHttpBinding({
    tag: "AWS.Kafka.UpdateTopic",
    operation: kafka.updateTopic,
    actions: [
      "kafka:UpdateTopic",
      "kafka-cluster:Connect",
      "kafka-cluster:AlterTopic",
      "kafka-cluster:AlterTopicDynamicConfiguration",
    ],
    topicScoped: true,
  }),
);