1import type * as identitystore from "@distilled.cloud/aws/identitystore";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Instance } from "./Instance.ts";
5
6/**
7 * Runtime binding for the `ListGroupMemberships` operation (IAM action
8 * `identitystore:ListGroupMemberships`), scoped to one {@link Instance}.
9 *
10 * Lists the members of a group 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.ListGroupMembershipsHttp)`.
13 * ### Querying Group Memberships
14 * **Example:** Enumerate a Group's Members
15 * ```typescript
16 * // init — bind the operation to the Identity Center instance
17 * const listGroupMemberships = yield* AWS.IdentityCenter.ListGroupMemberships(instance);
18 *
19 * // runtime
20 * const { GroupMemberships } = yield* listGroupMemberships({
21 * GroupId: groupId,
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface ListGroupMemberships extends Binding.Service<
28 ListGroupMemberships,
29 "AWS.IdentityCenter.ListGroupMemberships",
30 (
31 instance: Instance,
32 ) => Effect.Effect<
33 (
34 request: Omit<
35 identitystore.ListGroupMembershipsRequest,
36 "IdentityStoreId"
37 >,
38 ) => Effect.Effect<
39 identitystore.ListGroupMembershipsResponse,
40 identitystore.ListGroupMembershipsError
41 >
42 >
43> {}
44export const ListGroupMemberships = Binding.Service<ListGroupMemberships>(
45 "AWS.IdentityCenter.ListGroupMemberships",
46);