1import type * as notifications from "@distilled.cloud/aws/notifications";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Request for {@link ListManagedNotificationEvents}.
7 */
8export 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 */
34export 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
47export const ListManagedNotificationEvents =
48 Binding.Service<ListManagedNotificationEvents>(
49 "AWS.Notifications.ListManagedNotificationEvents",
50 );