Skip to content

GetCostComparisonDrivers

Source: src/AWS/CostExplorer/GetCostComparisonDrivers.ts

Runtime binding for ce:GetCostComparisonDrivers.

Retrieve the top cost drivers explaining the change between two billing periods — which services, accounts, or usage types moved the bill. Provide the implementation with Effect.provide(AWS.CostExplorer.GetCostComparisonDriversHttp).

// init — account-level binding takes no resource
const getCostComparisonDrivers = yield* AWS.CostExplorer.GetCostComparisonDrivers();
// runtime
const result = yield* getCostComparisonDrivers({
BaselineTimePeriod: { Start: "2026-05-01", End: "2026-06-01" },
ComparisonTimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
MetricForComparison: "UnblendedCost",
});