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:UpdateKxUser` — re-points a kdb user of the bound environment at a different IAM role.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.UpdateKxUserHttp)`.
10 * ### Managing kdb Users
11 * **Example:** Rotate a User's Role
12 * ```typescript
13 * const updateUser = yield* AWS.FinSpace.UpdateKxUser(kdb);
14 *
15 * yield* updateUser({ userName: "analyst", iamRole: newRoleArn });
16 * ```
17 *
18 * @binding
19 */
20export interface UpdateKxUser extends Binding.Service<
21 UpdateKxUser,
22 "AWS.FinSpace.UpdateKxUser",
23 <K extends KxEnvironment>(
24 environment: K,
25 ) => Effect.Effect<
26 (
27 request: Omit<SVC.UpdateKxUserRequest, "environmentId">,
28 ) => Effect.Effect<SVC.UpdateKxUserResponse, SVC.UpdateKxUserError>
29 >
30> {}
31export const UpdateKxUser = Binding.Service<UpdateKxUser>(
32 "AWS.FinSpace.UpdateKxUser",
33);