Skip to content

/AWS1/CL_CEX=>GETSAVINGSPLANSPURCHASEREC00()

About GetSavingsPlansPurchaseRecommendation

Retrieves the Savings Plans recommendations for your account. First use StartSavingsPlansPurchaseRecommendationGeneration to generate a new set of recommendations, and then use GetSavingsPlansPurchaseRecommendation to retrieve them.

Method Signature

IMPORTING

Required arguments:

IV_SAVINGSPLANSTYPE TYPE /AWS1/CEXSUPPEDSAVINGSPLANST00 /AWS1/CEXSUPPEDSAVINGSPLANST00

The Savings Plans recommendation type that's requested.

IV_TERMINYEARS TYPE /AWS1/CEXTERMINYEARS /AWS1/CEXTERMINYEARS

The savings plan recommendation term that's used to generate these recommendations.

IV_PAYMENTOPTION TYPE /AWS1/CEXPAYMENTOPTION /AWS1/CEXPAYMENTOPTION

The payment option that's used to generate these recommendations.

IV_LOOKBACKPERIODINDAYS TYPE /AWS1/CEXLOOKBACKPERIODINDAYS /AWS1/CEXLOOKBACKPERIODINDAYS

The lookback period that's used to generate the recommendation.

Optional arguments:

IV_ACCOUNTSCOPE TYPE /AWS1/CEXACCOUNTSCOPE /AWS1/CEXACCOUNTSCOPE

The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.

IV_NEXTPAGETOKEN TYPE /AWS1/CEXNEXTPAGETOKEN /AWS1/CEXNEXTPAGETOKEN

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

IV_PAGESIZE TYPE /AWS1/CEXNONNEGATIVEINTEGER /AWS1/CEXNONNEGATIVEINTEGER

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

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

You can filter your recommendations by Account ID with the LINKED_ACCOUNT dimension. To filter your recommendations by Account ID, specify Key as LINKED_ACCOUNT and Value as the comma-separated Acount ID(s) that you want to see Savings Plans purchase recommendations for.

For GetSavingsPlansPurchaseRecommendation, the Filter doesn't include CostCategories or Tags. It only includes Dimensions. With Dimensions, Key must be LINKED_ACCOUNT and Value can be a single Account ID or multiple comma-separated Account IDs that you want to see Savings Plans Purchase Recommendations for. AND and OR operators are not supported.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CEXGETSAVINGSPLANSP01 /AWS1/CL_CEXGETSAVINGSPLANSP01