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:GetMemberDetectors`.
8 *
9 * Reads the data-source and feature configuration of member detectors.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.GetMemberDetectorsHttp)`.
13 * ### Member Administration
14 * **Example:** Read Member Detector Config
15 * ```typescript
16 * // init
17 * const getMemberDetectors = yield* AWS.GuardDuty.GetMemberDetectors(detector);
18 *
19 * // runtime
20 * const { MemberDataSourceConfigurations } = yield* getMemberDetectors({
21 * AccountIds: ["111122223333"],
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface GetMemberDetectors extends Binding.Service<
28 GetMemberDetectors,
29 "AWS.GuardDuty.GetMemberDetectors",
30 (
31 detector: Detector,
32 ) => Effect.Effect<
33 (
34 request?: Omit<guardduty.GetMemberDetectorsRequest, "DetectorId">,
35 ) => Effect.Effect<
36 guardduty.GetMemberDetectorsResponse,
37 guardduty.GetMemberDetectorsError
38 >
39 >
40> {}
41export const GetMemberDetectors = Binding.Service<GetMemberDetectors>(
42 "AWS.GuardDuty.GetMemberDetectors",
43);