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:UpdateMalwareScanSettings`.
8 *
9 * Updates the detector's EC2 malware scan settings (scan inclusion/exclusion tags, snapshot retention).
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.UpdateMalwareScanSettingsHttp)`.
13 * ### Malware Protection
14 * **Example:** Retain Snapshots with Findings
15 * ```typescript
16 * // init
17 * const updateMalwareScanSettings = yield* AWS.GuardDuty.UpdateMalwareScanSettings(detector);
18 *
19 * // runtime
20 * yield* updateMalwareScanSettings({
21 * EbsSnapshotPreservation: "RETENTION_WITH_FINDING",
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface UpdateMalwareScanSettings extends Binding.Service<
28 UpdateMalwareScanSettings,
29 "AWS.GuardDuty.UpdateMalwareScanSettings",
30 (
31 detector: Detector,
32 ) => Effect.Effect<
33 (
34 request?: Omit<guardduty.UpdateMalwareScanSettingsRequest, "DetectorId">,
35 ) => Effect.Effect<
36 guardduty.UpdateMalwareScanSettingsResponse,
37 guardduty.UpdateMalwareScanSettingsError
38 >
39 >
40> {}
41export const UpdateMalwareScanSettings =
42 Binding.Service<UpdateMalwareScanSettings>(
43 "AWS.GuardDuty.UpdateMalwareScanSettings",
44 );