| 1 | import type * as SVC from "@distilled.cloud/aws/finspace"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { KxEnvironment } from "./KxEnvironment.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `finspace:ListKxUsers` — lists the kdb users of the bound environment. |
| 8 | * Provide the implementation with |
| 9 | * `Effect.provide(AWS.FinSpace.ListKxUsersHttp)`. |
| 10 | * ### Managing kdb Users |
| 11 | * **Example:** List Users |
| 12 | * ```typescript |
| 13 | * const listUsers = yield* AWS.FinSpace.ListKxUsers(kdb); |
| 14 | * |
| 15 | * const { users } = yield* listUsers(); |
| 16 | * ``` |
| 17 | * |
| 18 | * @binding |
| 19 | */ |
| 20 | export interface ListKxUsers extends Binding.Service< |
| 21 | ListKxUsers, |
| 22 | "AWS.FinSpace.ListKxUsers", |
| 23 | <K extends KxEnvironment>( |
| 24 | environment: K, |
| 25 | ) => Effect.Effect< |
| 26 | ( |
| 27 | request?: Omit<SVC.ListKxUsersRequest, "environmentId">, |
| 28 | ) => Effect.Effect<SVC.ListKxUsersResponse, SVC.ListKxUsersError> |
| 29 | > |
| 30 | > {} |
| 31 | export const ListKxUsers = Binding.Service<ListKxUsers>( |
| 32 | "AWS.FinSpace.ListKxUsers", |
| 33 | ); |