Skip to main content

tables

Creates, updates, deletes or gets a table resource or lists tables in a region

Overview

Nametables
TypeResource
DescriptionResource Type definition for AWS::S3Tables::Table
Idawscc.s3tables.tables

Fields

NameDatatypeDescription
without_metadatastringIndicates that you don't want to specify a schema for the table. This property is mutually exclusive to 'IcebergMetadata', and its only possible value is 'Yes'.
compactionobjectSettings governing the Compaction maintenance action. Contains details about the compaction settings for an Iceberg table.
namespacestringThe namespace that the table belongs to.
table_namestringThe name for the table.
table_bucket_arnstringThe Amazon Resource Name (ARN) of the specified table bucket.
version_tokenstringThe version token of the table
table_arnstringThe Amazon Resource Name (ARN) of the specified table.
open_table_formatstringFormat of the table.
iceberg_metadataobjectContains details about the metadata for an Iceberg table.
warehouse_locationstringThe warehouse location of the table.
snapshot_managementobjectContains details about the snapshot management settings for an Iceberg table. A snapshot is expired when it exceeds MinSnapshotsToKeep and MaxSnapshotAgeHours.
regionstringAWS region.

For more information, see AWS::S3Tables::Table.

Methods

NameAccessible byRequired Params
create_resourceINSERTTableBucketARN, Namespace, TableName, OpenTableFormat, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual table.

SELECT
region,
without_metadata,
compaction,
namespace,
table_name,
table_bucket_arn,
version_token,
table_arn,
open_table_format,
iceberg_metadata,
warehouse_location,
snapshot_management
FROM awscc.s3tables.tables
WHERE region = 'us-east-1' AND data__Identifier = '<TableARN>';

INSERT example

Use the following StackQL query and manifest file to create a new table resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.s3tables.tables (
Namespace,
TableName,
TableBucketARN,
OpenTableFormat,
region
)
SELECT
'{{ Namespace }}',
'{{ TableName }}',
'{{ TableBucketARN }}',
'{{ OpenTableFormat }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.s3tables.tables
WHERE data__Identifier = '<TableARN>'
AND region = 'us-east-1';

Permissions

To operate on the tables resource, the following permissions are required:

Read

s3tables:GetTable,
s3tables:GetTableMaintenanceConfiguration

Create

s3tables:CreateTable,
s3tables:PutTableData,
s3tables:GetTable,
s3tables:PutTableMaintenanceConfiguration

Update

s3tables:GetTable,
s3tables:RenameTable,
s3tables:PutTableMaintenanceConfiguration

List

s3tables:ListTables,
s3tables:ListTableBuckets,
s3tables:ListNamespaces

Delete

s3tables:GetTable,
s3tables:DeleteTable