Skip to main content

table_record_expiration_configurations

Creates, updates, deletes, gets or lists a table_record_expiration_configurations resource.

Overview

Nametable_record_expiration_configurations
TypeResource
Idaws.s3tables.table_record_expiration_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
settingsobjectThe expiration settings for records in the table.
statusstringThe status of the expiration settings for records in the table. (enabled, disabled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_table_record_expiration_configurationselecttableArn, regionRetrieves the expiration configuration settings for records in a table, and the status of the configuration. If the status of the configuration is enabled, records expire and are automatically removed from the table after the specified number of days. Permissions You must have the s3tables:GetTableRecordExpirationConfiguration permission to use this operation.
put_table_record_expiration_configurationreplacetableArn, region, valueCreates or updates the expiration configuration settings for records in a table, including the status of the configuration. If you enable record expiration for a table, records expire and are automatically removed from the table after the number of days that you specify. Permissions You must have the s3tables:PutTableRecordExpirationConfiguration permission to use this operation.

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)
tableArnstringThe Amazon Resource Name (ARN) of the table.

SELECT examples

Retrieves the expiration configuration settings for records in a table, and the status of the configuration. If the status of the configuration is enabled, records expire and are automatically removed from the table after the specified number of days. Permissions You must have the s3tables:GetTableRecordExpirationConfiguration permission to use this operation.

SELECT
settings,
status
FROM aws.s3tables.table_record_expiration_configurations
WHERE tableArn = '{{ tableArn }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Creates or updates the expiration configuration settings for records in a table, including the status of the configuration. If you enable record expiration for a table, records expire and are automatically removed from the table after the number of days that you specify. Permissions You must have the s3tables:PutTableRecordExpirationConfiguration permission to use this operation.

REPLACE aws.s3tables.table_record_expiration_configurations
SET
value = '{{ value }}'
WHERE
tableArn = '{{ tableArn }}' --required
AND region = '{{ region }}' --required
AND value = '{{ value }}' --required;