Skip to main content

table_bucket_replications

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

Overview

Nametable_bucket_replications
TypeResource
Idaws.s3tables.table_bucket_replications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configurationobjectThe replication configuration for the table bucket, including the IAM role and replication rules.
version_tokenstringA version token that represents the current state of the replication configuration. Use this token when updating the configuration to ensure consistency.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_table_bucket_replicationselecttableBucketARN, regionRetrieves the replication configuration for a table bucket.This operation returns the IAM role, versionToken, and replication rules that define how tables in this bucket are replicated to other buckets. Permissions You must have the s3tables:GetTableBucketReplication permission to use this operation.
put_table_bucket_replicationreplacetableBucketARN, region, configurationversionTokenCreates or updates the replication configuration for a table bucket. This operation defines how tables in the source bucket are replicated to destination buckets. Replication helps ensure data availability and disaster recovery across regions or accounts. Permissions You must have the s3tables:PutTableBucketReplication permission to use this operation. The IAM role specified in the configuration must have permissions to read from the source bucket and write permissions to all destination buckets. You must also have the following permissions: s3tables:GetTable permission on the source table. s3tables:ListTables permission on the bucket containing the table. s3tables:CreateTable permission for the destination. s3tables:CreateNamespace permission for the destination. s3tables:GetTableMaintenanceConfig permission for the source bucket. s3tables:PutTableMaintenanceConfig permission for the destination bucket. You must have iam:PassRole permission with condition allowing roles to be passed to replication.s3tables.amazonaws.com.
delete_table_bucket_replicationdeletetableBucketARN, regionversionTokenDeletes the replication configuration for a table bucket. After deletion, new table updates will no longer be replicated to destination buckets, though existing replicated tables will remain in destination buckets. Permissions You must have the s3tables:DeleteTableBucketReplication 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)
tableBucketARNstringThe Amazon Resource Name (ARN) of the table bucket.
versionTokenstringA version token from a previous GetTableBucketReplication call. Use this token to ensure you're deleting the expected version of the configuration.

SELECT examples

Retrieves the replication configuration for a table bucket.This operation returns the IAM role, versionToken, and replication rules that define how tables in this bucket are replicated to other buckets. Permissions You must have the s3tables:GetTableBucketReplication permission to use this operation.

SELECT
configuration,
version_token
FROM aws.s3tables.table_bucket_replications
WHERE tableBucketARN = '{{ tableBucketARN }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Creates or updates the replication configuration for a table bucket. This operation defines how tables in the source bucket are replicated to destination buckets. Replication helps ensure data availability and disaster recovery across regions or accounts. Permissions You must have the s3tables:PutTableBucketReplication permission to use this operation. The IAM role specified in the configuration must have permissions to read from the source bucket and write permissions to all destination buckets. You must also have the following permissions: s3tables:GetTable permission on the source table. s3tables:ListTables permission on the bucket containing the table. s3tables:CreateTable permission for the destination. s3tables:CreateNamespace permission for the destination. s3tables:GetTableMaintenanceConfig permission for the source bucket. s3tables:PutTableMaintenanceConfig permission for the destination bucket. You must have iam:PassRole permission with condition allowing roles to be passed to replication.s3tables.amazonaws.com.

REPLACE aws.s3tables.table_bucket_replications
SET
configuration = '{{ configuration }}'
WHERE
tableBucketARN = '{{ tableBucketARN }}' --required
AND region = '{{ region }}' --required
AND configuration = '{{ configuration }}' --required
AND versionToken = '{{ versionToken}}'
RETURNING
status,
version_token;

DELETE examples

Deletes the replication configuration for a table bucket. After deletion, new table updates will no longer be replicated to destination buckets, though existing replicated tables will remain in destination buckets. Permissions You must have the s3tables:DeleteTableBucketReplication permission to use this operation.

DELETE FROM aws.s3tables.table_bucket_replications
WHERE tableBucketARN = '{{ tableBucketARN }}' --required
AND region = '{{ region }}' --required
AND versionToken = '{{ versionToken }}'
;