Skip to main content

preferences

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

Overview

Namepreferences
TypeResource
Idaws.cost_optimization_hub.preferences

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
member_account_discount_visibilitystringRetrieves the status of the "member account discount visibility" preference. (All, None)
preferred_commitmentobjectRetrieves the current preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.
savings_estimation_modestringRetrieves the status of the "savings estimation mode" preference. (BeforeDiscounts, AfterDiscounts)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_preferencesselectregionReturns a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented—estimated savings after discounts or estimated savings before discounts, for example.
update_preferencesupdateregionUpdates a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented.

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

Returns a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented—estimated savings after discounts or estimated savings before discounts, for example.

SELECT
member_account_discount_visibility,
preferred_commitment,
savings_estimation_mode
FROM aws.cost_optimization_hub.preferences
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates a set of preferences for an account in order to add account-specific preferences into the service. These preferences impact how the savings associated with recommendations are presented.

UPDATE aws.cost_optimization_hub.preferences
SET
savingsEstimationMode = '{{ savingsEstimationMode }}',
memberAccountDiscountVisibility = '{{ memberAccountDiscountVisibility }}',
preferredCommitment = '{{ preferredCommitment }}'
WHERE
region = '{{ region }}' --required
RETURNING
member_account_discount_visibility,
preferred_commitment,
savings_estimation_mode;