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:GetKxUser` — reads one kdb user of the bound environment — user ARN and mapped IAM role.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.GetKxUserHttp)`.
10 * ### Managing kdb Users
11 * **Example:** Read a User
12 * ```typescript
13 * const getUser = yield* AWS.FinSpace.GetKxUser(kdb);
14 *
15 * const { userArn, iamRole } = yield* getUser({ userName: "analyst" });
16 * ```
17 *
18 * @binding
19 */
20export interface GetKxUser extends Binding.Service<
21 GetKxUser,
22 "AWS.FinSpace.GetKxUser",
23 <K extends KxEnvironment>(
24 environment: K,
25 ) => Effect.Effect<
26 (
27 request: Omit<SVC.GetKxUserRequest, "environmentId">,
28 ) => Effect.Effect<SVC.GetKxUserResponse, SVC.GetKxUserError>
29 >
30> {}
31export const GetKxUser = Binding.Service<GetKxUser>("AWS.FinSpace.GetKxUser");