Skip to content

GetAnomalies

Source: src/AWS/CostExplorer/GetAnomalies.ts

Runtime binding for ce:GetAnomalies.

Retrieve the cost anomalies a monitor detected during a date interval (available for up to 90 days). Provide the implementation with Effect.provide(AWS.CostExplorer.GetAnomaliesHttp).

// init — bind the operation to the monitor
const getAnomalies = yield* AWS.CostExplorer.GetAnomalies(monitor);
// runtime
const result = yield* getAnomalies({
DateInterval: { StartDate: "2026-06-01" },
});
const anomalies = result.Anomalies;