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

main
ts 38 lines 1.33 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 DeleteConnectionRequest extends iotdata.DeleteConnectionRequest {}
6
7 /**
8 * Runtime binding for the IoT data-plane `DeleteConnection` operation (IAM
9 * action `iot:DeleteConnection`).
10 *
11 * Binding to a client id filter grants `iot:DeleteConnection` on matching
12 * MQTT client ARNs (or all clients when the filter is omitted) and returns
13 * a callable that force-disconnects a connected client, optionally cleaning
14 * its session state. Provide the implementation with
15 * `Effect.provide(AWS.IoT.DeleteConnectionHttp)`.
16 * ### MQTT Connections
17 * **Example:** Kick a Device off the Broker
18 * ```typescript
19 * const deleteConnection = yield* AWS.IoT.DeleteConnection("sensor-*");
20 *
21 * yield* deleteConnection({ clientId: "sensor-1", cleanSession: true });
22 * ```
23 *
24 * @binding
25 */
26 export interface DeleteConnection extends Binding.Service<
27 DeleteConnection,
28 "AWS.IoT.DeleteConnection",
29 (
30 clientIdFilter?: string,
31 ) => Effect.Effect<
32 (
33 request: DeleteConnectionRequest,
34 ) => Effect.Effect<iotdata.DeleteConnectionResponse, iotdata.DeleteConnectionError>
35 >
36 > {}
37
38 export const DeleteConnection = Binding.Service<DeleteConnection>("AWS.IoT.DeleteConnection");