Experimental
@aws-cdk/aws-s3tables-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
TableProps Struct
Properties for creating a new S3 Table.
Example
// Build a table with partition spec (minimal configuration)
const partitionedTable = new Table(scope, 'PartitionedTable', {
tableName: 'partitioned_table',
namespace: namespace,
openTableFormat: OpenTableFormat.ICEBERG,
icebergMetadata: {
icebergSchema: {
schemaFieldList: [
{ name: 'event_date', type: 'date', required: true },
{ name: 'event_name', type: 'string' },
],
},
icebergPartitionSpec: {
fields: [
{
sourceId: 1,
transform: IcebergTransform.IDENTITY,
name: 'date_partition',
},
],
},
},
});
Properties
compactionCompactionPropertycompactionCompactionPropertycompactionCompactionPropertyCompactionCompactionPropertyCompactionCompactionProperty= Amazon S3 selects the best compa…#default
Default: Amazon S3 selects the best compaction strategy based on your table sort order.
icebergMetadataIcebergMetadataPropertyiceberg_metadataIcebergMetadataPropertyicebergMetadataIcebergMetadataPropertyIcebergMetadataIcebergMetadataPropertyIcebergMetadataIcebergMetadataProperty= table is created without any met…#default
Default: table is created without any metadata
namespaceINamespacenamespaceINamespacenamespaceINamespaceNamespaceINamespaceNamespaceINamespacerequired#openTableFormatOpenTableFormatopen_table_formatOpenTableFormatopenTableFormatOpenTableFormatOpenTableFormatOpenTableFormatOpenTableFormatOpenTableFormatrequired#Currently, the only supported value is OpenTableFormat.ICEBERG.
removalPolicyRemovalPolicyremoval_policyRemovalPolicyremovalPolicyRemovalPolicyRemovalPolicyRemovalPolicyRemovalPolicyRemovalPolicy= RETAIN#snapshotManagementSnapshotManagementPropertysnapshot_managementSnapshotManagementPropertysnapshotManagementSnapshotManagementPropertySnapshotManagementSnapshotManagementPropertySnapshotManagementSnapshotManagementProperty= enabled: MinimumSnapshots is 1 b…#default
Default: enabled: MinimumSnapshots is 1 by default and MaximumSnapshotAge is 120 hours by default.
storageClassStorageClassstorage_classStorageClassstorageClassStorageClassStorageClassStorageClassStorageClassStorageClass= Inherits from the table bucket's…#Determines the storage tier used for table data, allowing optimization for different access patterns and cost profiles.
Note: This is a create-only property and cannot be changed after the table is created.
default
Default: Inherits from the table bucket's storage class configuration
withoutMetadatabooleanwithout_metadataboolwithoutMetadataBooleanWithoutMetadataboolWithoutMetadata*bool= false#This property is mutually exclusive to 'IcebergMetadata'.