@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 40 lines 1.35 KB
Raw
1 import type * as iotdata from "@distilled.cloud/aws/iot-data-plane";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface ListSubscriptionsRequest extends iotdata.ListSubscriptionsRequest {}
6
7 /**
8 * Runtime binding for the IoT data-plane `ListSubscriptions` operation (IAM
9 * action `iot:ListSubscriptions`).
10 *
11 * Binding to a client id filter grants `iot:ListSubscriptions` on matching
12 * MQTT client ARNs (or all clients when the filter is omitted) and returns
13 * a callable that lists the topic filters a connected client is subscribed
14 * to. Provide the implementation with
15 * `Effect.provide(AWS.IoT.ListSubscriptionsHttp)`.
16 * ### MQTT Connections
17 * **Example:** Inspect a Device's Subscriptions
18 * ```typescript
19 * const listSubscriptions = yield* AWS.IoT.ListSubscriptions("sensor-*");
20 *
21 * const { subscriptions } = yield* listSubscriptions({
22 * clientId: "sensor-1",
23 * });
24 * ```
25 *
26 * @binding
27 */
28 export interface ListSubscriptions extends Binding.Service<
29 ListSubscriptions,
30 "AWS.IoT.ListSubscriptions",
31 (
32 clientIdFilter?: string,
33 ) => Effect.Effect<
34 (
35 request: ListSubscriptionsRequest,
36 ) => Effect.Effect<iotdata.ListSubscriptionsResponse, iotdata.ListSubscriptionsError>
37 >
38 > {}
39
40 export const ListSubscriptions = Binding.Service<ListSubscriptions>("AWS.IoT.ListSubscriptions");