get_savings_plans_purchase_recommendation
¶
get_savings_plans_purchase_recommendation(
savings_plans_type: SupportedSavingsPlansType,
term_in_years: TermInYears,
payment_option: PaymentOption,
lookback_period_in_days: LookbackPeriodInDays,
*,
config_overrides: Optional[CostExplorerClientConfig] = None,
account_scope: Optional[AccountScope] = None,
next_page_token: Optional[NextPageToken] = None,
page_size: Optional[RecommendationsPageSize] = None,
filter: Optional[Expression] = None,
) -> GetSavingsPlansPurchaseRecommendationResponse
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.
Parameters:
-
savings_plans_type(SupportedSavingsPlansType) –The Savings Plans recommendation type that's requested.
-
term_in_years(TermInYears) –The savings plan recommendation term that's used to generate these recommendations.
-
payment_option(PaymentOption) –The payment option that's used to generate these recommendations.
-
account_scope(Optional[AccountScope], default:None) –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 isLINKED, recommendations are calculated for individual member accounts only. -
next_page_token(Optional[NextPageToken], default:None) –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.
-
page_size(Optional[RecommendationsPageSize], default:None) –The number of recommendations that you want returned in a single response object.
-
lookback_period_in_days(LookbackPeriodInDays) –The lookback period that's used to generate the recommendation.
-
filter(Optional[Expression], default:None) –You can filter your recommendations by Account ID with the
LINKED_ACCOUNTdimension. To filter your recommendations by Account ID, specifyKeyasLINKED_ACCOUNTandValueas the comma-separated Acount ID(s) that you want to see Savings Plans purchase recommendations for.For GetSavingsPlansPurchaseRecommendation, the
Filterdoesn't includeCostCategoriesorTags. It only includesDimensions. WithDimensions,Keymust beLINKED_ACCOUNTandValuecan be a single Account ID or multiple comma-separated Account IDs that you want to see Savings Plans Purchase Recommendations for.ANDandORoperators are not supported.
Raises:
-
InvalidNextTokenException–The pagination token is invalid. Try again without a pagination token.
-
LimitExceededException–You made too many calls in a short period of time. Try again later.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cost_explorer/_services/cost_explorer.py
2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 | |