Skip to content

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

// init — account-level binding takes no resource
const getUsageForecast = yield* AWS.CostExplorer.GetUsageForecast();
// runtime
const 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"] } },
});