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 ListSubscriptionsRequest extends Omit<
7 datazone.ListSubscriptionsInput,
8 "domainIdentifier"
9> {}
10
11/**
12 * Runtime binding for `datazone:ListSubscriptions`.
13 *
14 * Lists subscriptions in the bound domain, optionally by status. The domain id is injected from the binding.
15 * Provide the implementation with
16 * `Effect.provide(AWS.DataZone.ListSubscriptionsHttp)`.
17 * ### Subscription Workflows
18 * **Example:** List Approved Subscriptions
19 * ```typescript
20 * // init — bind the operation to the domain
21 * const listSubscriptions = yield* AWS.DataZone.ListSubscriptions(domain);
22 *
23 * // runtime
24 * const subs = yield* listSubscriptions({ status: "APPROVED" });
25 * ```
26 *
27 * @binding
28 */
29export interface ListSubscriptions extends Binding.Service<
30 ListSubscriptions,
31 "AWS.DataZone.ListSubscriptions",
32 (
33 domain: Domain,
34 ) => Effect.Effect<
35 (
36 request?: ListSubscriptionsRequest,
37 ) => Effect.Effect<
38 datazone.ListSubscriptionsOutput,
39 datazone.ListSubscriptionsError
40 >
41 >
42> {}
43export const ListSubscriptions = Binding.Service<ListSubscriptions>(
44 "AWS.DataZone.ListSubscriptions",
45);