@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 37 lines 1.16 KB
Raw
1 import * as im from "@distilled.cloud/aws/internetmonitor";
2 import * as Binding from "alchemy/Binding";
3 import * as Effect from "effect/Effect";
4 import type { Monitor } from "./Monitor.ts";
5
6 export interface StopQueryRequest extends Omit<im.StopQueryInput, "MonitorName"> {}
7
8 /**
9 * Runtime binding for `internetmonitor:StopQuery` — cancel an in-progress
10 * query on the bound {@link Monitor}; the monitor name is injected
11 * automatically.
12 *
13 * Provide `InternetMonitor.StopQueryHttp` on the hosting Lambda Function to
14 * satisfy the requirement.
15 * ### Querying Measurements
16 * **Example:** Cancel a Running Query
17 * ```typescript
18 * // init — grants internetmonitor:StopQuery on the monitor
19 * const stopQuery = yield* AWS.InternetMonitor.StopQuery(monitor);
20 *
21 * // runtime
22 * yield* stopQuery({ QueryId: queryId });
23 * ```
24 *
25 * @binding
26 */
27 export interface StopQuery extends Binding.Service<
28 StopQuery,
29 "AWS.InternetMonitor.StopQuery",
30 (
31 monitor: Monitor,
32 ) => Effect.Effect<
33 (request: StopQueryRequest) => Effect.Effect<im.StopQueryOutput, im.StopQueryError>
34 >
35 > {}
36
37 export const StopQuery = Binding.Service<StopQuery>("AWS.InternetMonitor.StopQuery");