Skip to content

UpdateMalwareScanSettings

Source: src/AWS/GuardDuty/UpdateMalwareScanSettings.ts

Runtime binding for guardduty:UpdateMalwareScanSettings.

Updates the detector’s EC2 malware scan settings (scan inclusion/exclusion tags, snapshot retention). The detector id is injected from the bound Detector. Provide the implementation with Effect.provide(AWS.GuardDuty.UpdateMalwareScanSettingsHttp).

// init
const updateMalwareScanSettings = yield* AWS.GuardDuty.UpdateMalwareScanSettings(detector);
// runtime
yield* updateMalwareScanSettings({
EbsSnapshotPreservation: "RETENTION_WITH_FINDING",
});