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).
Querying Cost and Usage
Section titled “Querying Cost and Usage”// init — account-level binding takes no resourceconst getCostComparisonDrivers = yield* AWS.CostExplorer.GetCostComparisonDrivers();
// runtimeconst result = yield* getCostComparisonDrivers({ BaselineTimePeriod: { Start: "2026-05-01", End: "2026-06-01" }, ComparisonTimePeriod: { Start: "2026-06-01", End: "2026-07-01" }, MetricForComparison: "UnblendedCost",});