@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 49 lines 1.72 KB
Raw
1 import type * as notifications from "@distilled.cloud/aws/notifications";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link ListManagedNotificationEvents}.
7 */
8 export interface ListManagedNotificationEventsRequest
9 extends notifications.ListManagedNotificationEventsRequest {}
10
11 /**
12 * Runtime binding for `notifications:ListManagedNotificationEvents`.
13 *
14 * List the account's AWS-managed notification events (AWS Health security,
15 * operations, billing and issue notifications), optionally filtered by time
16 * range, source, or related account. Provide the implementation with
17 * `Effect.provide(AWS.Notifications.ListManagedNotificationEventsHttp)`.
18 * ### Reading AWS-Managed Notifications
19 * **Example:** List Recent Managed Notification Events
20 * ```typescript
21 * // init — account-level binding takes no resource
22 * const listManagedNotificationEvents =
23 * yield* AWS.Notifications.ListManagedNotificationEvents();
24 *
25 * // runtime
26 * const result = yield* listManagedNotificationEvents({
27 * startTime: new Date(Date.now() - 7 * 24 * 3600 * 1000),
28 * });
29 * const count = result.managedNotificationEvents.length;
30 * ```
31 *
32 * @binding
33 */
34 export interface ListManagedNotificationEvents extends Binding.Service<
35 ListManagedNotificationEvents,
36 "AWS.Notifications.ListManagedNotificationEvents",
37 () => Effect.Effect<
38 (
39 request?: ListManagedNotificationEventsRequest,
40 ) => Effect.Effect<
41 notifications.ListManagedNotificationEventsResponse,
42 notifications.ListManagedNotificationEventsError
43 >
44 >
45 > {}
46
47 export const ListManagedNotificationEvents = Binding.Service<ListManagedNotificationEvents>(
48 "AWS.Notifications.ListManagedNotificationEvents",
49 );