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

main
ts 37 lines 1.4 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 `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 */
26 export 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<identitystore.ListGroupsResponse, identitystore.ListGroupsError>
35 >
36 > {}
37 export const ListGroups = Binding.Service<ListGroups>("AWS.IdentityCenter.ListGroups");