| 1 | import type * as qbusiness from "@distilled.cloud/aws/qbusiness"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Application } from "./Application.ts"; |
| 5 | |
| 6 | /** |
| 7 | * `ListSubscriptions` request with `applicationId` injected from the bound application. |
| 8 | */ |
| 9 | export interface ListSubscriptionsRequest extends Omit< |
| 10 | qbusiness.ListSubscriptionsRequest, |
| 11 | "applicationId" |
| 12 | > {} |
| 13 | |
| 14 | /** |
| 15 | * Runtime binding for the `ListSubscriptions` operation (IAM action |
| 16 | * `qbusiness:ListSubscriptions`), scoped to one {@link Application}. |
| 17 | * |
| 18 | * Lists the application's user and group subscriptions. |
| 19 | * Provide the implementation with |
| 20 | * `Effect.provide(AWS.QBusiness.ListSubscriptionsHttp)`. |
| 21 | * |
| 22 | * ### Subscriptions |
| 23 | * **Example:** List Subscriptions |
| 24 | * ```typescript |
| 25 | * const listSubscriptions = yield* AWS.QBusiness.ListSubscriptions(app); |
| 26 | * |
| 27 | * const { subscriptions } = yield* listSubscriptions(); |
| 28 | * ``` |
| 29 | * |
| 30 | * @binding |
| 31 | */ |
| 32 | export interface ListSubscriptions extends Binding.Service< |
| 33 | ListSubscriptions, |
| 34 | "AWS.QBusiness.ListSubscriptions", |
| 35 | ( |
| 36 | application: Application, |
| 37 | ) => Effect.Effect< |
| 38 | ( |
| 39 | request?: ListSubscriptionsRequest, |
| 40 | ) => Effect.Effect< |
| 41 | qbusiness.ListSubscriptionsResponse, |
| 42 | qbusiness.ListSubscriptionsError |
| 43 | > |
| 44 | > |
| 45 | > {} |
| 46 | export const ListSubscriptions = Binding.Service<ListSubscriptions>( |
| 47 | "AWS.QBusiness.ListSubscriptions", |
| 48 | ); |