Skip to content

GetCoverageStatistics

Source: src/AWS/GuardDuty/GetCoverageStatistics.ts

Runtime binding for guardduty:GetCoverageStatistics.

Aggregates runtime-monitoring coverage counts (healthy vs unhealthy) for the detector’s monitored resources. The detector id is injected from the bound Detector. Provide the implementation with Effect.provide(AWS.GuardDuty.GetCoverageStatisticsHttp).

// init
const getCoverageStatistics = yield* AWS.GuardDuty.GetCoverageStatistics(detector);
// runtime
const { CoverageStatistics } = yield* getCoverageStatistics({
StatisticsType: ["COUNT_BY_RESOURCE_TYPE"],
});