Skip to content

GetCostEstimation

Source: src/AWS/DevOpsGuru/GetCostEstimation.ts

Runtime binding for devops-guru:GetCostEstimation.

Returns the result of the most recent cost estimation started with StartCostEstimation — the estimated monthly cost of DevOps Guru analyzing the candidate resource collection. Provide the implementation with Effect.provide(AWS.DevOpsGuru.GetCostEstimationHttp).

// init — account-level binding, no resource argument
const getCostEstimation = yield* AWS.DevOpsGuru.GetCostEstimation();
// runtime
const estimate = yield* getCostEstimation();
yield* Effect.log(`estimated: ${estimate.TotalCost} (${estimate.Status})`);