@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 33 lines 1.07 KB
Raw
1 import type * as kafka from "@distilled.cloud/aws/kafka";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { ServerlessCluster } from "./ServerlessCluster.ts";
5
6 /**
7 * Runtime binding for the `DeleteTopic` operation (IAM action
8 * `kafka:DeleteTopic`), scoped to one {@link ServerlessCluster}.
9 *
10 * Deletes a Kafka topic on the bound cluster through the MSK control plane.
11 * Provide the implementation with `Effect.provide(AWS.Kafka.DeleteTopicHttp)`.
12 * ### Managing Topics
13 * **Example:** Delete a Topic
14 * ```typescript
15 * const deleteTopic = yield* Kafka.DeleteTopic(cluster);
16 *
17 * yield* deleteTopic({ TopicName: "orders" });
18 * ```
19 *
20 * @binding
21 */
22 export interface DeleteTopic extends Binding.Service<
23 DeleteTopic,
24 "AWS.Kafka.DeleteTopic",
25 (
26 cluster: ServerlessCluster,
27 ) => Effect.Effect<
28 (
29 request: Omit<kafka.DeleteTopicRequest, "ClusterArn">,
30 ) => Effect.Effect<kafka.DeleteTopicResponse, kafka.DeleteTopicError>
31 >
32 > {}
33 export const DeleteTopic = Binding.Service<DeleteTopic>("AWS.Kafka.DeleteTopic");