1import type * as guardduty from "@distilled.cloud/aws/guardduty";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `guardduty:StartMalwareScan`.
7 *
8 * Starts an on-demand malware scan of an EC2 instance by ARN (GuardDuty Malware Protection for EC2).
9 * Account-level operation — invoked with the caller's request as-is.
10 * Provide the implementation with
11 * `Effect.provide(AWS.GuardDuty.StartMalwareScanHttp)`.
12 * ### Malware Protection
13 * **Example:** Scan an EC2 Instance
14 * ```typescript
15 * // init
16 * // init — account-level binding, no resource argument
17 * const startMalwareScan = yield* AWS.GuardDuty.StartMalwareScan();
18 *
19 * // runtime
20 * const { ScanId } = yield* startMalwareScan({
21 * ResourceArn: instanceArn,
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface StartMalwareScan extends Binding.Service<
28 StartMalwareScan,
29 "AWS.GuardDuty.StartMalwareScan",
30 () => Effect.Effect<
31 (
32 request?: guardduty.StartMalwareScanRequest,
33 ) => Effect.Effect<
34 guardduty.StartMalwareScanResponse,
35 guardduty.StartMalwareScanError
36 >
37 >
38> {}
39export const StartMalwareScan = Binding.Service<StartMalwareScan>(
40 "AWS.GuardDuty.StartMalwareScan",
41);