interface IcebergPartitionSpec
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3Tables.Alpha.IcebergPartitionSpec |
Java | software.amazon.awscdk.services.s3tables.alpha.IcebergPartitionSpec |
Python | aws_cdk.aws_s3tables_alpha.IcebergPartitionSpec |
TypeScript (source) | @aws-cdk/aws-s3tables-alpha ยป IcebergPartitionSpec |
Partition specification for Iceberg table.
Contains the complete partitioning configuration for a table, including all partition fields. Use this to define multi-level partitioning (e.g., partition by date, then by region).
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
| Name | Type | Description |
|---|---|---|
| fields | Iceberg[] | The list of partition fields. |
| spec | number | The unique identifier for the partition specification. |
fields
Type:
Iceberg[]
The list of partition fields.
specId?
Type:
number
(optional, default: 0)
The unique identifier for the partition specification.

.NET
Java
Python
TypeScript (