Skip to main content

account_settings

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

Overview

Nameaccount_settings
TypeResource
Idaws.ecr.account_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRetrieves the name of the account setting.
valuestringThe setting value for the setting name. Valid value for basic scan type: AWS_NATIVE. Valid values for registry policy scope: V2. Valid values for blob mounting: ENABLED or DISABLED.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_account_settingselectregionRetrieves the account setting value for the specified setting name.
put_account_settingreplaceregion, name, valueAllows you to change the basic scan type version or registry policy scope.

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 account setting value for the specified setting name.

SELECT
name,
value
FROM aws.ecr.account_settings
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Allows you to change the basic scan type version or registry policy scope.

REPLACE aws.ecr.account_settings
SET
name = '{{ name }}',
value = '{{ value }}'
WHERE
region = '{{ region }}' --required
AND name = '{{ name }}' --required
AND value = '{{ value }}' --required
RETURNING
name,
value;