@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 41 lines 1.38 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
5 export interface ListInternetEventsRequest extends im.ListInternetEventsInput {}
6
7 /**
8 * Runtime binding for `internetmonitor:ListInternetEvents` — list the global
9 * internet events (performance or availability issues at client locations)
10 * from the outages map Internet Monitor publishes for all AWS customers.
11 * Internet events are account-level; no monitor is required.
12 *
13 * Provide `InternetMonitor.ListInternetEventsHttp` on the hosting Lambda
14 * Function to satisfy the requirement.
15 * ### Reading Internet Events
16 * **Example:** List Active Internet Events
17 * ```typescript
18 * // init — grants internetmonitor:ListInternetEvents
19 * const listInternetEvents = yield* AWS.InternetMonitor.ListInternetEvents();
20 *
21 * // runtime
22 * const { InternetEvents } = yield* listInternetEvents({
23 * EventStatus: "ACTIVE",
24 * });
25 * ```
26 *
27 * @binding
28 */
29 export interface ListInternetEvents extends Binding.Service<
30 ListInternetEvents,
31 "AWS.InternetMonitor.ListInternetEvents",
32 () => Effect.Effect<
33 (
34 request?: ListInternetEventsRequest,
35 ) => Effect.Effect<im.ListInternetEventsOutput, im.ListInternetEventsError>
36 >
37 > {}
38
39 export const ListInternetEvents = Binding.Service<ListInternetEvents>(
40 "AWS.InternetMonitor.ListInternetEvents",
41 );