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:GetMalwareScanSettings`.
8 *
9 * Reads the detector's EC2 malware scan settings — scan resource criteria and EBS snapshot preservation.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.GetMalwareScanSettingsHttp)`.
13 * ### Malware Protection
14 * **Example:** Read Malware Scan Settings
15 * ```typescript
16 * // init
17 * const getMalwareScanSettings = yield* AWS.GuardDuty.GetMalwareScanSettings(detector);
18 *
19 * // runtime
20 * const { ScanResourceCriteria } = yield* getMalwareScanSettings();
21 * ```
22 *
23 * @binding
24 */
25export interface GetMalwareScanSettings extends Binding.Service<
26 GetMalwareScanSettings,
27 "AWS.GuardDuty.GetMalwareScanSettings",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.GetMalwareScanSettingsRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.GetMalwareScanSettingsResponse,
35 guardduty.GetMalwareScanSettingsError
36 >
37 >
38> {}
39export const GetMalwareScanSettings = Binding.Service<GetMalwareScanSettings>(
40 "AWS.GuardDuty.GetMalwareScanSettings",
41);