Skip to content

/AWS1/CL_CEX=>GETRIGHTSIZINGRECOMMENDATION()

About GetRightsizingRecommendation

Creates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.

Recommendations are generated to either downsize or terminate instances, along with providing savings detail and metrics. For more information about calculation and function, see Optimizing Your Cost with Rightsizing Recommendations in the Billing and Cost Management User Guide.

Method Signature

IMPORTING

Required arguments:

IV_SERVICE TYPE /AWS1/CEXGENERICSTRING /AWS1/CEXGENERICSTRING

The specific service that you want recommendations for. The only valid value for GetRightsizingRecommendation is "AmazonEC2".

Optional arguments:

IO_FILTER TYPE REF TO /AWS1/CL_CEXEXPRESSION /AWS1/CL_CEXEXPRESSION

Filter

IO_CONFIGURATION TYPE REF TO /AWS1/CL_CEXRIGHTSIZINGRECOM00 /AWS1/CL_CEXRIGHTSIZINGRECOM00

You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.

IV_PAGESIZE TYPE /AWS1/CEXNONNEGATIVEINTEGER /AWS1/CEXNONNEGATIVEINTEGER

The number of recommendations that you want returned in a single response object.

IV_NEXTPAGETOKEN TYPE /AWS1/CEXNEXTPAGETOKEN /AWS1/CEXNEXTPAGETOKEN

The pagination token that indicates the next set of results that you want to retrieve.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CEXGETRIGHTSIZINGRE01 /AWS1/CL_CEXGETRIGHTSIZINGRE01