| 1 | import * as kafka from "@distilled.cloud/aws/kafka"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeKafkaClusterHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { DescribeTopicPartitions } from "./DescribeTopicPartitions.ts"; |
| 5 | |
| 6 | export const DescribeTopicPartitionsHttp = Layer.effect( |
| 7 | DescribeTopicPartitions, |
| 8 | makeKafkaClusterHttpBinding({ |
| 9 | tag: "AWS.Kafka.DescribeTopicPartitions", |
| 10 | operation: kafka.describeTopicPartitions, |
| 11 | actions: [ |
| 12 | "kafka:DescribeTopicPartitions", |
| 13 | "kafka-cluster:Connect", |
| 14 | "kafka-cluster:DescribeTopic", |
| 15 | ], |
| 16 | topicScoped: true, |
| 17 | }), |
| 18 | ); |