GetUsageStatistics
Source:
src/AWS/GuardDuty/GetUsageStatistics.ts
Runtime binding for guardduty:GetUsageStatistics.
Reports GuardDuty usage (cost) statistics for the detector, grouped by data source, feature, or member account.
The detector id is injected from the bound Detector.
Provide the implementation with
Effect.provide(AWS.GuardDuty.GetUsageStatisticsHttp).
Usage & Coverage
Section titled “Usage & Coverage”// initconst getUsageStatistics = yield* AWS.GuardDuty.GetUsageStatistics(detector);
// runtimeconst { UsageStatistics } = yield* getUsageStatistics({ UsageStatisticType: "SUM_BY_DATA_SOURCE", UsageCriteria: { DataSources: ["FLOW_LOGS"] },});