1import type * as datazone from "@distilled.cloud/aws/datazone";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Domain } from "./Domain.ts";
5
6export interface ListNotificationsRequest extends Omit<
7 datazone.ListNotificationsInput,
8 "domainIdentifier"
9> {}
10
11/**
12 * Runtime binding for `datazone:ListNotifications`.
13 *
14 * Lists task or event notifications for the calling user in the bound domain. The domain id is injected from the binding.
15 * Provide the implementation with
16 * `Effect.provide(AWS.DataZone.ListNotificationsHttp)`.
17 * ### Portal, Profiles & Notifications
18 * **Example:** Read Pending Tasks
19 * ```typescript
20 * // init — bind the operation to the domain
21 * const listNotifications = yield* AWS.DataZone.ListNotifications(domain);
22 *
23 * // runtime
24 * const tasks = yield* listNotifications({ type: "TASK", taskStatus: "ACTIVE" });
25 * ```
26 *
27 * @binding
28 */
29export interface ListNotifications extends Binding.Service<
30 ListNotifications,
31 "AWS.DataZone.ListNotifications",
32 (
33 domain: Domain,
34 ) => Effect.Effect<
35 (
36 request: ListNotificationsRequest,
37 ) => Effect.Effect<
38 datazone.ListNotificationsOutput,
39 datazone.ListNotificationsError
40 >
41 >
42> {}
43export const ListNotifications = Binding.Service<ListNotifications>(
44 "AWS.DataZone.ListNotifications",
45);