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

main
ts 43 lines 1.67 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 `ListGroupMembershipsForMember` operation (IAM action
8 * `identitystore:ListGroupMembershipsForMember`), scoped to one {@link Instance}.
9 *
10 * Lists every group a user belongs to in the bound instance's identity store, one page per call (`NextToken` paginates). The instance's
11 * `IdentityStoreId` is injected from the binding. Provide the implementation with
12 * `Effect.provide(AWS.IdentityCenter.ListGroupMembershipsForMemberHttp)`.
13 * ### Querying Group Memberships
14 * **Example:** Enumerate a User's Groups
15 * ```typescript
16 * // init — bind the operation to the Identity Center instance
17 * const listGroupMembershipsForMember = yield* AWS.IdentityCenter.ListGroupMembershipsForMember(instance);
18 *
19 * // runtime
20 * const { GroupMemberships } = yield* listGroupMembershipsForMember({
21 * MemberId: { UserId: userId },
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface ListGroupMembershipsForMember extends Binding.Service<
28 ListGroupMembershipsForMember,
29 "AWS.IdentityCenter.ListGroupMembershipsForMember",
30 (
31 instance: Instance,
32 ) => Effect.Effect<
33 (
34 request: Omit<identitystore.ListGroupMembershipsForMemberRequest, "IdentityStoreId">,
35 ) => Effect.Effect<
36 identitystore.ListGroupMembershipsForMemberResponse,
37 identitystore.ListGroupMembershipsForMemberError
38 >
39 >
40 > {}
41 export const ListGroupMembershipsForMember = Binding.Service<ListGroupMembershipsForMember>(
42 "AWS.IdentityCenter.ListGroupMembershipsForMember",
43 );