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:CreateKxUser` — creates a kdb user in the bound environment, mapping an IAM role to a kdb identity.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.CreateKxUserHttp)`.
10 * ### Managing kdb Users
11 * **Example:** Create a User
12 * ```typescript
13 * const createUser = yield* AWS.FinSpace.CreateKxUser(kdb);
14 *
15 * const user = yield* createUser({
16 * userName: "analyst",
17 * iamRole: roleArn,
18 * });
19 * ```
20 *
21 * @binding
22 */
23export interface CreateKxUser extends Binding.Service<
24 CreateKxUser,
25 "AWS.FinSpace.CreateKxUser",
26 <K extends KxEnvironment>(
27 environment: K,
28 ) => Effect.Effect<
29 (
30 request: Omit<SVC.CreateKxUserRequest, "environmentId">,
31 ) => Effect.Effect<SVC.CreateKxUserResponse, SVC.CreateKxUserError>
32 >
33> {}
34export const CreateKxUser = Binding.Service<CreateKxUser>(
35 "AWS.FinSpace.CreateKxUser",
36);