@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 34 lines 1.07 KB
Raw
1 import type * as SVC from "@distilled.cloud/aws/finspace";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import 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 */
23 export 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 > {}
34 export const CreateKxUser = Binding.Service<CreateKxUser>("AWS.FinSpace.CreateKxUser");