account_data_retentions
Creates, updates, deletes, gets or lists an account_data_retentions resource.
Overview
| Name | account_data_retentions |
| Type | Resource |
| Id | aws.bedrock.account_data_retentions |
Fields
The following fields are returned by SELECT queries:
- get_account_data_retention
| Name | Datatype | Description |
|---|---|---|
mode | string | The data retention mode configured for the account. (default, none, provider_data_share, inherit) |
updated_at | string (date-time) | The time at which the data retention mode was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_account_data_retention | select | region | Returns the account-wide data retention mode for Amazon Bedrock. | |
put_account_data_retention | replace | region, mode | Sets the account-wide data retention mode for Amazon Bedrock. |
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_data_retention
Returns the account-wide data retention mode for Amazon Bedrock.
SELECT
mode,
updated_at
FROM aws.bedrock.account_data_retentions
WHERE region = '{{ region }}' -- required
;
REPLACE examples
- put_account_data_retention
Sets the account-wide data retention mode for Amazon Bedrock.
REPLACE aws.bedrock.account_data_retentions
SET
mode = '{{ mode }}'
WHERE
region = '{{ region }}' --required
AND mode = '{{ mode }}' --required
RETURNING
mode,
updated_at;