| 1 | import type * as guardduty from "@distilled.cloud/aws/guardduty"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `guardduty:GetMalwareScan`. |
| 7 | * |
| 8 | * Reads the status and result of an on-demand malware scan by scan id. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.GuardDuty.GetMalwareScanHttp)`. |
| 12 | * ### Malware Protection |
| 13 | * **Example:** Poll a Malware Scan |
| 14 | * ```typescript |
| 15 | * // init |
| 16 | * // init — account-level binding, no resource argument |
| 17 | * const getMalwareScan = yield* AWS.GuardDuty.GetMalwareScan(); |
| 18 | * |
| 19 | * // runtime |
| 20 | * const { ScanStatus } = yield* getMalwareScan({ ScanId: scanId }); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface GetMalwareScan extends Binding.Service< |
| 26 | GetMalwareScan, |
| 27 | "AWS.GuardDuty.GetMalwareScan", |
| 28 | () => Effect.Effect< |
| 29 | ( |
| 30 | request?: guardduty.GetMalwareScanRequest, |
| 31 | ) => Effect.Effect< |
| 32 | guardduty.GetMalwareScanResponse, |
| 33 | guardduty.GetMalwareScanError |
| 34 | > |
| 35 | > |
| 36 | > {} |
| 37 | export const GetMalwareScan = Binding.Service<GetMalwareScan>( |
| 38 | "AWS.GuardDuty.GetMalwareScan", |
| 39 | ); |