Skip to main content

account_settings

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

Overview

Nameaccount_settings
TypeResource
Idaws.resource_groups.account_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
group_lifecycle_events_desired_statusstringThe desired target status of the group lifecycle events feature. If (ACTIVE, INACTIVE)
group_lifecycle_events_statusstringThe current status of the group lifecycle events feature. (ACTIVE, INACTIVE, IN_PROGRESS, ERROR)
group_lifecycle_events_status_messagestringThe text of any error message occurs during an attempt to turn group lifecycle events on or off.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_account_settingsselectregionRetrieves the current status of optional features in Resource Groups.
update_account_settingsupdateregionTurns on or turns off optional features in Resource Groups. The preceding example shows that the request to turn on group lifecycle events is IN_PROGRESS. You can call the GetAccountSettings operation to check for completion by looking for GroupLifecycleEventsStatus to change to ACTIVE.

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 status of optional features in Resource Groups.

SELECT
group_lifecycle_events_desired_status,
group_lifecycle_events_status,
group_lifecycle_events_status_message
FROM aws.resource_groups.account_settings
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Turns on or turns off optional features in Resource Groups. The preceding example shows that the request to turn on group lifecycle events is IN_PROGRESS. You can call the GetAccountSettings operation to check for completion by looking for GroupLifecycleEventsStatus to change to ACTIVE.

UPDATE aws.resource_groups.account_settings
SET
GroupLifecycleEventsDesiredStatus = '{{ GroupLifecycleEventsDesiredStatus }}'
WHERE
region = '{{ region }}' --required
RETURNING
account_settings;