GetUsageForecast
Source:
src/AWS/CostExplorer/GetUsageForecast.ts
Runtime binding for ce:GetUsageForecast.
Forecast usage quantity (e.g. hours, requests) over a future time
period for a filtered slice of your usage. Provide the implementation with
Effect.provide(AWS.CostExplorer.GetUsageForecastHttp).
Forecasting
Section titled “Forecasting”// init — account-level binding takes no resourceconst getUsageForecast = yield* AWS.CostExplorer.GetUsageForecast();
// runtimeconst result = yield* getUsageForecast({ TimePeriod: { Start: "2026-08-01", End: "2026-09-01" }, Metric: "USAGE_QUANTITY", Granularity: "MONTHLY", Filter: { Dimensions: { Key: "USAGE_TYPE_GROUP", Values: ["EC2: Running Hours"] } },});