account_settings
Creates, updates, deletes, gets or lists an account_settings resource.
Overview
| Name | account_settings |
| Type | Resource |
| Id | aws.ecr.account_settings |
Fields
The following fields are returned by SELECT queries:
- get_account_setting
| Name | Datatype | Description |
|---|---|---|
name | string | Retrieves the name of the account setting. |
value | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_account_setting | select | region | Retrieves the account setting value for the specified setting name. | |
put_account_setting | replace | region, name, value | Allows 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_account_setting
Retrieves the account setting value for the specified setting name.
SELECT
name,
value
FROM aws.ecr.account_settings
WHERE region = '{{ region }}' -- required
;
REPLACE examples
- put_account_setting
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;