import type * as guardduty from "@distilled.cloud/aws/guardduty";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { Detector } from "./Detector.ts";
/**
* Runtime binding for `guardduty:DescribeMalwareScans`.
*
* Lists EC2 malware scan results for the detector with optional filter and sort criteria.
* The detector id is injected from the bound {@link Detector}.
* Provide the implementation with
* `Effect.provide(AWS.GuardDuty.DescribeMalwareScansHttp)`.
* ### Malware Protection
* **Example:** List Malware Scan Results
* ```typescript
* // init
* const describeMalwareScans = yield* AWS.GuardDuty.DescribeMalwareScans(detector);
*
* // runtime
* const { Scans } = yield* describeMalwareScans();
* ```
*
* @binding
*/
export interface DescribeMalwareScans extends Binding.Service<
DescribeMalwareScans,
"AWS.GuardDuty.DescribeMalwareScans",
(
detector: Detector,
) => Effect.Effect<
(
request?: Omit<guardduty.DescribeMalwareScansRequest, "DetectorId">,
) => Effect.Effect<guardduty.DescribeMalwareScansResponse, guardduty.DescribeMalwareScansError>
>
> {}
export const DescribeMalwareScans = Binding.Service<DescribeMalwareScans>(
"AWS.GuardDuty.DescribeMalwareScans",
);