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 `ListGroups` operation (IAM action
8 * `identitystore:ListGroups`), scoped to one {@link Instance}.
9 *
10 * Lists the groups in the bound instance's identity store, one page per call (`NextToken` paginates); pass `Filters` to narrow by attribute. The instance's
11 * `IdentityStoreId` is injected from the binding. Provide the implementation with
12 * `Effect.provide(AWS.IdentityCenter.ListGroupsHttp)`.
13 * ### Looking Up Groups
14 * **Example:** Enumerate Groups
15 * ```typescript
16 * // init — bind the operation to the Identity Center instance
17 * const listGroups = yield* AWS.IdentityCenter.ListGroups(instance);
18 *
19 * // runtime
20 * const { Groups } = yield* listGroups({ MaxResults: 50 });
21 * console.log(Groups?.map((group) => group.DisplayName));
22 * ```
23 *
24 * @binding
25 */
26export interface ListGroups extends Binding.Service<
27 ListGroups,
28 "AWS.IdentityCenter.ListGroups",
29 (
30 instance: Instance,
31 ) => Effect.Effect<
32 (
33 request?: Omit<identitystore.ListGroupsRequest, "IdentityStoreId">,
34 ) => Effect.Effect<
35 identitystore.ListGroupsResponse,
36 identitystore.ListGroupsError
37 >
38 >
39> {}
40export const ListGroups = Binding.Service<ListGroups>(
41 "AWS.IdentityCenter.ListGroups",
42);