GetApproximateUsageRecords
Source:
src/AWS/CostExplorer/GetApproximateUsageRecords.ts
Runtime binding for ce:GetApproximateUsageRecords.
Retrieve estimated counts of hourly (or daily resource-level)
usage records per service — useful for sizing Data Exports and CUR
deliveries before enabling them. Provide the implementation with
Effect.provide(AWS.CostExplorer.GetApproximateUsageRecordsHttp).
Querying Cost and Usage
Section titled “Querying Cost and Usage”// init — account-level binding takes no resourceconst getApproximateUsageRecords = yield* AWS.CostExplorer.GetApproximateUsageRecords();
// runtimeconst result = yield* getApproximateUsageRecords({ Granularity: "HOURLY", ApproximationDimension: "SERVICE",});const total = result.TotalRecords;