Skip to main content

account_data_retentions

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

Overview

Nameaccount_data_retentions
TypeResource
Idaws.bedrock.account_data_retentions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
modestringThe data retention mode configured for the account. (default, none, provider_data_share, inherit)
updated_atstring (date-time)The time at which the data retention mode was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_account_data_retentionselectregionReturns the account-wide data retention mode for Amazon Bedrock.
put_account_data_retentionreplaceregion, modeSets 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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

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;