Skip to main content

account_settings

Creates, updates, deletes, gets or lists an account_settings resource.

Overview

Nameaccount_settings
TypeResource
Idaws.appconfig.account_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
enabledbooleanA parameter that indicates if deletion protection is enabled or not.
protection_period_in_minutesintegerThe time interval during which AppConfig monitors for calls to GetLatestConfiguration or for a configuration profile or from an environment. AppConfig returns an error if a user calls or for the designated configuration profile or environment. To bypass the error and delete a configuration profile or an environment, specify BYPASS for the DeletionProtectionCheck parameter for either or .

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_account_settingsselectregionReturns information about the status of the DeletionProtection parameter.
update_account_settingsupdateregionUpdates the value of the DeletionProtection parameter.

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 information about the status of the DeletionProtection parameter.

SELECT
enabled,
protection_period_in_minutes
FROM aws.appconfig.account_settings
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the value of the DeletionProtection parameter.

UPDATE aws.appconfig.account_settings
SET
DeletionProtection = '{{ DeletionProtection }}',
VendedMetrics = '{{ VendedMetrics }}'
WHERE
region = '{{ region }}' --required
RETURNING
deletion_protection,
vended_metrics;