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

main
ts 41 lines 1.33 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 import type { Detector } from "./Detector.ts";
5
6 /**
7 * Runtime binding for `guardduty:GetMalwareScanSettings`.
8 *
9 * Reads the detector's EC2 malware scan settings — scan resource criteria and EBS snapshot preservation.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.GetMalwareScanSettingsHttp)`.
13 * ### Malware Protection
14 * **Example:** Read Malware Scan Settings
15 * ```typescript
16 * // init
17 * const getMalwareScanSettings = yield* AWS.GuardDuty.GetMalwareScanSettings(detector);
18 *
19 * // runtime
20 * const { ScanResourceCriteria } = yield* getMalwareScanSettings();
21 * ```
22 *
23 * @binding
24 */
25 export interface GetMalwareScanSettings extends Binding.Service<
26 GetMalwareScanSettings,
27 "AWS.GuardDuty.GetMalwareScanSettings",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.GetMalwareScanSettingsRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.GetMalwareScanSettingsResponse,
35 guardduty.GetMalwareScanSettingsError
36 >
37 >
38 > {}
39 export const GetMalwareScanSettings = Binding.Service<GetMalwareScanSettings>(
40 "AWS.GuardDuty.GetMalwareScanSettings",
41 );