| 1 | import type * as SVC from "@distilled.cloud/aws/finspace"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { KxEnvironment } from "./KxEnvironment.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `finspace:DeleteKxUser` — deletes a kdb user of the bound environment. |
| 8 | * Provide the implementation with |
| 9 | * `Effect.provide(AWS.FinSpace.DeleteKxUserHttp)`. |
| 10 | * ### Managing kdb Users |
| 11 | * **Example:** Delete a User |
| 12 | * ```typescript |
| 13 | * const deleteUser = yield* AWS.FinSpace.DeleteKxUser(kdb); |
| 14 | * |
| 15 | * yield* deleteUser({ userName: "analyst" }); |
| 16 | * ``` |
| 17 | * |
| 18 | * @binding |
| 19 | */ |
| 20 | export interface DeleteKxUser extends Binding.Service< |
| 21 | DeleteKxUser, |
| 22 | "AWS.FinSpace.DeleteKxUser", |
| 23 | <K extends KxEnvironment>( |
| 24 | environment: K, |
| 25 | ) => Effect.Effect< |
| 26 | ( |
| 27 | request: Omit<SVC.DeleteKxUserRequest, "environmentId">, |
| 28 | ) => Effect.Effect<SVC.DeleteKxUserResponse, SVC.DeleteKxUserError> |
| 29 | > |
| 30 | > {} |
| 31 | export const DeleteKxUser = Binding.Service<DeleteKxUser>( |
| 32 | "AWS.FinSpace.DeleteKxUser", |
| 33 | ); |