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

main
ts 41 lines 1.19 KB
Raw
1 import type * as qbusiness from "@distilled.cloud/aws/qbusiness";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Index } from "./SearchIndex.ts";
5
6 /**
7 * `GetGroup` request with `applicationId` + `indexId` injected from the bound index.
8 */
9 export interface GetGroupRequest extends Omit<
10 qbusiness.GetGroupRequest,
11 "applicationId" | "indexId"
12 > {}
13
14 /**
15 * Runtime binding for the `GetGroup` operation (IAM action
16 * `qbusiness:GetGroup`), scoped to one {@link Index}.
17 *
18 * Reads a mapped group's processing status.
19 * Provide the implementation with
20 * `Effect.provide(AWS.QBusiness.GetGroupHttp)`.
21 *
22 * ### Principal Mapping
23 * **Example:** Read a Group's Status
24 * ```typescript
25 * const getGroup = yield* AWS.QBusiness.GetGroup(index);
26 *
27 * const { status } = yield* getGroup({ groupName: "engineering" });
28 * ```
29 *
30 * @binding
31 */
32 export interface GetGroup extends Binding.Service<
33 GetGroup,
34 "AWS.QBusiness.GetGroup",
35 (
36 index: Index,
37 ) => Effect.Effect<
38 (request: GetGroupRequest) => Effect.Effect<qbusiness.GetGroupResponse, qbusiness.GetGroupError>
39 >
40 > {}
41 export const GetGroup = Binding.Service<GetGroup>("AWS.QBusiness.GetGroup");