@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 36 lines 1.2 KB
Raw
1 import type * as guardduty from "@distilled.cloud/aws/guardduty";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
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 */
27 export interface StartMalwareScan extends Binding.Service<
28 StartMalwareScan,
29 "AWS.GuardDuty.StartMalwareScan",
30 () => Effect.Effect<
31 (
32 request?: guardduty.StartMalwareScanRequest,
33 ) => Effect.Effect<guardduty.StartMalwareScanResponse, guardduty.StartMalwareScanError>
34 >
35 > {}
36 export const StartMalwareScan = Binding.Service<StartMalwareScan>("AWS.GuardDuty.StartMalwareScan");