1import type * as SVC from "@distilled.cloud/aws/finspace";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import 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 */
20export 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> {}
31export const ListKxUsers = Binding.Service<ListKxUsers>(
32 "AWS.FinSpace.ListKxUsers",
33);