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

main
ts 41 lines 1.48 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 `DeleteGroupMembership` operation (IAM action
8 * `identitystore:DeleteGroupMembership`), scoped to one {@link Instance}.
9 *
10 * Removes a group membership from the bound instance's identity store by `MembershipId`. The instance's
11 * `IdentityStoreId` is injected from the binding. Provide the implementation with
12 * `Effect.provide(AWS.IdentityCenter.DeleteGroupMembershipHttp)`.
13 * ### Managing Group Memberships
14 * **Example:** Remove a User From a Group
15 * ```typescript
16 * // init — bind the operation to the Identity Center instance
17 * const deleteGroupMembership = yield* AWS.IdentityCenter.DeleteGroupMembership(instance);
18 *
19 * // runtime
20 * yield* deleteGroupMembership({ MembershipId: membershipId });
21 * ```
22 *
23 * @binding
24 */
25 export interface DeleteGroupMembership extends Binding.Service<
26 DeleteGroupMembership,
27 "AWS.IdentityCenter.DeleteGroupMembership",
28 (
29 instance: Instance,
30 ) => Effect.Effect<
31 (
32 request: Omit<identitystore.DeleteGroupMembershipRequest, "IdentityStoreId">,
33 ) => Effect.Effect<
34 identitystore.DeleteGroupMembershipResponse,
35 identitystore.DeleteGroupMembershipError
36 >
37 >
38 > {}
39 export const DeleteGroupMembership = Binding.Service<DeleteGroupMembership>(
40 "AWS.IdentityCenter.DeleteGroupMembership",
41 );