import type * as guardduty from "@distilled.cloud/aws/guardduty"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; /** * Runtime binding for `guardduty:GetMalwareScan`. * * Reads the status and result of an on-demand malware scan by scan id. * Account-level operation — invoked with the caller's request as-is. * Provide the implementation with * `Effect.provide(AWS.GuardDuty.GetMalwareScanHttp)`. * ### Malware Protection * **Example:** Poll a Malware Scan * ```typescript * // init * // init — account-level binding, no resource argument * const getMalwareScan = yield* AWS.GuardDuty.GetMalwareScan(); * * // runtime * const { ScanStatus } = yield* getMalwareScan({ ScanId: scanId }); * ``` * * @binding */ export interface GetMalwareScan extends Binding.Service< GetMalwareScan, "AWS.GuardDuty.GetMalwareScan", () => Effect.Effect< ( request?: guardduty.GetMalwareScanRequest, ) => Effect.Effect< guardduty.GetMalwareScanResponse, guardduty.GetMalwareScanError > > > {} export const GetMalwareScan = Binding.Service( "AWS.GuardDuty.GetMalwareScan", );