Skip to content

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).

// init — account-level binding takes no resource
const getApproximateUsageRecords = yield* AWS.CostExplorer.GetApproximateUsageRecords();
// runtime
const result = yield* getApproximateUsageRecords({
Granularity: "HOURLY",
ApproximationDimension: "SERVICE",
});
const total = result.TotalRecords;