@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 16 lines 630 Bytes
Raw
1 import * as kafka from "@distilled.cloud/aws/kafka";
2 import * as Layer from "effect/Layer";
3 import { makeKafkaClusterHttpBinding } from "./BindingHttp.ts";
4 import { CreateTopic } from "./CreateTopic.ts";
5
6 export const CreateTopicHttp = Layer.effect(
7 CreateTopic,
8 makeKafkaClusterHttpBinding({
9 tag: "AWS.Kafka.CreateTopic",
10 operation: kafka.createTopic,
11 // The control-plane action authorizes against the topic ARN; the
12 // kafka-cluster analogs cover the underlying Kafka admin operation.
13 actions: ["kafka:CreateTopic", "kafka-cluster:Connect", "kafka-cluster:CreateTopic"],
14 topicScoped: true,
15 }),
16 );