1import type * as qbusiness from "@distilled.cloud/aws/qbusiness";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Index } from "./SearchIndex.ts";
5
6/**
7 * `DeleteGroup` request with `applicationId` + `indexId` injected from the bound index.
8 */
9export interface DeleteGroupRequest extends Omit<
10 qbusiness.DeleteGroupRequest,
11 "applicationId" | "indexId"
12> {}
13
14/**
15 * Runtime binding for the `DeleteGroup` operation (IAM action
16 * `qbusiness:DeleteGroup`), scoped to one {@link Index}.
17 *
18 * Deletes a mapped group so its members lose group-scoped document
19 * access on the next query.
20 * Provide the implementation with
21 * `Effect.provide(AWS.QBusiness.DeleteGroupHttp)`.
22 *
23 * ### Principal Mapping
24 * **Example:** Delete a Group Mapping
25 * ```typescript
26 * const deleteGroup = yield* AWS.QBusiness.DeleteGroup(index);
27 *
28 * yield* deleteGroup({ groupName: "engineering" });
29 * ```
30 *
31 * @binding
32 */
33export interface DeleteGroup extends Binding.Service<
34 DeleteGroup,
35 "AWS.QBusiness.DeleteGroup",
36 (
37 index: Index,
38 ) => Effect.Effect<
39 (
40 request: DeleteGroupRequest,
41 ) => Effect.Effect<
42 qbusiness.DeleteGroupResponse,
43 qbusiness.DeleteGroupError
44 >
45 >
46> {}
47export const DeleteGroup = Binding.Service<DeleteGroup>(
48 "AWS.QBusiness.DeleteGroup",
49);