Skip to content

GetCostCategories

Source: src/AWS/CostExplorer/GetCostCategories.ts

Runtime binding for ce:GetCostCategories.

Retrieve the cost category names (or the values of one category) present in your cost data — usable in query filter expressions. Provide the implementation with Effect.provide(AWS.CostExplorer.GetCostCategoriesHttp).

// init — account-level binding takes no resource
const getCostCategories = yield* AWS.CostExplorer.GetCostCategories();
// runtime
const result = yield* getCostCategories({
TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
});
const names = result.CostCategoryNames;