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:DescribeMalwareScans`.
8 *
9 * Lists EC2 malware scan results for the detector with optional filter and sort criteria.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.DescribeMalwareScansHttp)`.
13 * ### Malware Protection
14 * **Example:** List Malware Scan Results
15 * ```typescript
16 * // init
17 * const describeMalwareScans = yield* AWS.GuardDuty.DescribeMalwareScans(detector);
18 *
19 * // runtime
20 * const { Scans } = yield* describeMalwareScans();
21 * ```
22 *
23 * @binding
24 */
25export interface DescribeMalwareScans extends Binding.Service<
26 DescribeMalwareScans,
27 "AWS.GuardDuty.DescribeMalwareScans",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.DescribeMalwareScansRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.DescribeMalwareScansResponse,
35 guardduty.DescribeMalwareScansError
36 >
37 >
38> {}
39export const DescribeMalwareScans = Binding.Service<DescribeMalwareScans>(
40 "AWS.GuardDuty.DescribeMalwareScans",
41);