Skip to content

GetSavingsPlansPurchaseRecommendation

Source: src/AWS/CostExplorer/GetSavingsPlansPurchaseRecommendation.ts

Runtime binding for ce:GetSavingsPlansPurchaseRecommendation.

Retrieve Savings Plans purchase recommendations. Generate a fresh set first with StartSavingsPlansPurchaseRecommendationGeneration. Provide the implementation with Effect.provide(AWS.CostExplorer.GetSavingsPlansPurchaseRecommendationHttp).

// init — account-level binding takes no resource
const getSavingsPlansPurchaseRecommendation = yield* AWS.CostExplorer.GetSavingsPlansPurchaseRecommendation();
// runtime
const result = yield* getSavingsPlansPurchaseRecommendation({
SavingsPlansType: "COMPUTE_SP",
TermInYears: "ONE_YEAR",
PaymentOption: "NO_UPFRONT",
LookbackPeriodInDays: "THIRTY_DAYS",
});