1import type * as guardduty from "@distilled.cloud/aws/guardduty";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Detector } from "./Detector.ts";
5
6/**
7 * Runtime binding for `guardduty:DisassociateMembers`.
8 *
9 * Disassociates member accounts from this administrator detector without deleting them.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.DisassociateMembersHttp)`.
13 * ### Member Administration
14 * **Example:** Disassociate Members
15 * ```typescript
16 * // init
17 * const disassociateMembers = yield* AWS.GuardDuty.DisassociateMembers(detector);
18 *
19 * // runtime
20 * yield* disassociateMembers({ AccountIds: ["111122223333"] });
21 * ```
22 *
23 * @binding
24 */
25export interface DisassociateMembers extends Binding.Service<
26 DisassociateMembers,
27 "AWS.GuardDuty.DisassociateMembers",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.DisassociateMembersRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.DisassociateMembersResponse,
35 guardduty.DisassociateMembersError
36 >
37 >
38> {}
39export const DisassociateMembers = Binding.Service<DisassociateMembers>(
40 "AWS.GuardDuty.DisassociateMembers",
41);