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:GetMembers`.
8 *
9 * Reads member account details for the given account ids; unknown accounts come back as `UnprocessedAccounts`.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.GetMembersHttp)`.
13 * ### Member Administration
14 * **Example:** Read Member Details
15 * ```typescript
16 * // init
17 * const getMembers = yield* AWS.GuardDuty.GetMembers(detector);
18 *
19 * // runtime
20 * const { Members, UnprocessedAccounts } = yield* getMembers({
21 * AccountIds: ["111122223333"],
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface GetMembers extends Binding.Service<
28 GetMembers,
29 "AWS.GuardDuty.GetMembers",
30 (
31 detector: Detector,
32 ) => Effect.Effect<
33 (
34 request?: Omit<guardduty.GetMembersRequest, "DetectorId">,
35 ) => Effect.Effect<guardduty.GetMembersResponse, guardduty.GetMembersError>
36 >
37> {}
38export const GetMembers = Binding.Service<GetMembers>(
39 "AWS.GuardDuty.GetMembers",
40);