account_settings
Creates, updates, deletes, gets or lists an account_settings resource.
Overview
| Name | account_settings |
| Type | Resource |
| Id | aws.appconfig.account_settings |
Fields
The following fields are returned by SELECT queries:
- get_account_settings
| Name | Datatype | Description |
|---|---|---|
enabled | boolean | A parameter that indicates if deletion protection is enabled or not. |
protection_period_in_minutes | integer | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_account_settings | select | region | Returns information about the status of the DeletionProtection parameter. | |
update_account_settings | update | region | Updates 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_account_settings
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
- update_account_settings
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;