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

main
ts 36 lines 1.29 KB
Raw
1 import type * as identitystore from "@distilled.cloud/aws/identitystore";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Instance } from "./Instance.ts";
5
6 /**
7 * Runtime binding for the `DeleteUser` operation (IAM action
8 * `identitystore:DeleteUser`), scoped to one {@link Instance}.
9 *
10 * Deletes a user from the bound instance's identity store — the deprovisioning half of a user-sync Lambda. The instance's
11 * `IdentityStoreId` is injected from the binding. Provide the implementation with
12 * `Effect.provide(AWS.IdentityCenter.DeleteUserHttp)`.
13 * ### Managing Users
14 * **Example:** Deprovision a User
15 * ```typescript
16 * // init — bind the operation to the Identity Center instance
17 * const deleteUser = yield* AWS.IdentityCenter.DeleteUser(instance);
18 *
19 * // runtime
20 * yield* deleteUser({ UserId: userId });
21 * ```
22 *
23 * @binding
24 */
25 export interface DeleteUser extends Binding.Service<
26 DeleteUser,
27 "AWS.IdentityCenter.DeleteUser",
28 (
29 instance: Instance,
30 ) => Effect.Effect<
31 (
32 request: Omit<identitystore.DeleteUserRequest, "IdentityStoreId">,
33 ) => Effect.Effect<identitystore.DeleteUserResponse, identitystore.DeleteUserError>
34 >
35 > {}
36 export const DeleteUser = Binding.Service<DeleteUser>("AWS.IdentityCenter.DeleteUser");