Skip to main content

savings_plans_purchase_recommendations

Creates, updates, deletes, gets or lists a savings_plans_purchase_recommendations resource.

Overview

Namesavings_plans_purchase_recommendations
TypeResource
Idaws.ce.savings_plans_purchase_recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
metadataobjectInformation that regards this specific recommendation set.
next_page_tokenstringThe token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size. (pattern: <code>[\S\s]*</code>)
savings_plans_purchase_recommendationobjectContains your request parameters, Savings Plan Recommendations Summary, and Details.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_savings_plans_purchase_recommendationselectregionRetrieves the Savings Plans recommendations for your account. First use StartSavingsPlansPurchaseRecommendationGeneration to generate a new set of recommendations, and then use GetSavingsPlansPurchaseRecommendation to retrieve them.
start_savings_plans_purchase_recommendation_generationexecregionRequests a Savings Plans recommendation generation. This enables you to calculate a fresh set of Savings Plans recommendations that takes your latest usage data and current Savings Plans inventory into account. You can refresh Savings Plans recommendations up to three times daily for a consolidated billing family. StartSavingsPlansPurchaseRecommendationGeneration has no request syntax because no input parameters are needed to support this operation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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.

SELECT
metadata,
next_page_token,
savings_plans_purchase_recommendation
FROM aws.ce.savings_plans_purchase_recommendations
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Requests a Savings Plans recommendation generation. This enables you to calculate a fresh set of Savings Plans recommendations that takes your latest usage data and current Savings Plans inventory into account. You can refresh Savings Plans recommendations up to three times daily for a consolidated billing family. StartSavingsPlansPurchaseRecommendationGeneration has no request syntax because no input parameters are needed to support this operation.

EXEC aws.ce.savings_plans_purchase_recommendations.start_savings_plans_purchase_recommendation_generation
@region='{{ region }}' --required
;