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

main
ts 43 lines 1.4 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:UpdateMalwareScanSettings`.
8 *
9 * Updates the detector's EC2 malware scan settings (scan inclusion/exclusion tags, snapshot retention).
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.UpdateMalwareScanSettingsHttp)`.
13 * ### Malware Protection
14 * **Example:** Retain Snapshots with Findings
15 * ```typescript
16 * // init
17 * const updateMalwareScanSettings = yield* AWS.GuardDuty.UpdateMalwareScanSettings(detector);
18 *
19 * // runtime
20 * yield* updateMalwareScanSettings({
21 * EbsSnapshotPreservation: "RETENTION_WITH_FINDING",
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface UpdateMalwareScanSettings extends Binding.Service<
28 UpdateMalwareScanSettings,
29 "AWS.GuardDuty.UpdateMalwareScanSettings",
30 (
31 detector: Detector,
32 ) => Effect.Effect<
33 (
34 request?: Omit<guardduty.UpdateMalwareScanSettingsRequest, "DetectorId">,
35 ) => Effect.Effect<
36 guardduty.UpdateMalwareScanSettingsResponse,
37 guardduty.UpdateMalwareScanSettingsError
38 >
39 >
40 > {}
41 export const UpdateMalwareScanSettings = Binding.Service<UpdateMalwareScanSettings>(
42 "AWS.GuardDuty.UpdateMalwareScanSettings",
43 );