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:UpdateMemberDetectors`.
8 *
9 * Updates the feature configuration of member detectors from the administrator account.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.UpdateMemberDetectorsHttp)`.
13 * ### Member Administration
14 * **Example:** Enable a Feature for Members
15 * ```typescript
16 * // init
17 * const updateMemberDetectors = yield* AWS.GuardDuty.UpdateMemberDetectors(detector);
18 *
19 * // runtime
20 * yield* updateMemberDetectors({
21 * AccountIds: ["111122223333"],
22 * Features: [{ Name: "S3_DATA_EVENTS", Status: "ENABLED" }],
23 * });
24 * ```
25 *
26 * @binding
27 */
28export interface UpdateMemberDetectors extends Binding.Service<
29 UpdateMemberDetectors,
30 "AWS.GuardDuty.UpdateMemberDetectors",
31 (
32 detector: Detector,
33 ) => Effect.Effect<
34 (
35 request?: Omit<guardduty.UpdateMemberDetectorsRequest, "DetectorId">,
36 ) => Effect.Effect<
37 guardduty.UpdateMemberDetectorsResponse,
38 guardduty.UpdateMemberDetectorsError
39 >
40 >
41> {}
42export const UpdateMemberDetectors = Binding.Service<UpdateMemberDetectors>(
43 "AWS.GuardDuty.UpdateMemberDetectors",
44);