Skip to main content

preferences

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

Overview

Namepreferences
TypeResource
Idaws.bcm_pricing_calculator.preferences

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
management_account_rate_type_selectionsarrayThe preferred rate types for the management account.
member_account_rate_type_selectionsarrayThe preferred rate types for member accounts.
standalone_account_rate_type_selectionsarrayThe preferred rate types for a standalone account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_preferencesselectregionRetrieves the current preferences for Pricing Calculator.
update_preferencesupdateregionUpdates the preferences for Pricing Calculator.

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 current preferences for Pricing Calculator.

SELECT
management_account_rate_type_selections,
member_account_rate_type_selections,
standalone_account_rate_type_selections
FROM aws.bcm_pricing_calculator.preferences
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the preferences for Pricing Calculator.

UPDATE aws.bcm_pricing_calculator.preferences
SET
managementAccountRateTypeSelections = '{{ managementAccountRateTypeSelections }}',
memberAccountRateTypeSelections = '{{ memberAccountRateTypeSelections }}',
standaloneAccountRateTypeSelections = '{{ standaloneAccountRateTypeSelections }}'
WHERE
region = '{{ region }}' --required
RETURNING
management_account_rate_type_selections,
member_account_rate_type_selections,
standalone_account_rate_type_selections;