Skip to content

GetRightsizingRecommendation

Source: src/AWS/CostExplorer/GetRightsizingRecommendation.ts

Runtime binding for ce:GetRightsizingRecommendation.

Get recommendations for idle and underutilized EC2 instances — terminate or downsize suggestions with estimated savings. Provide the implementation with Effect.provide(AWS.CostExplorer.GetRightsizingRecommendationHttp).

// init — account-level binding takes no resource
const getRightsizingRecommendation = yield* AWS.CostExplorer.GetRightsizingRecommendation();
// runtime
const result = yield* getRightsizingRecommendation({
Service: "AmazonEC2",
});
const recommendations = result.RightsizingRecommendations;