interface CompactionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3Tables.Alpha.CompactionProperty |
![]() | software.amazon.awscdk.services.s3tables.alpha.CompactionProperty |
![]() | aws_cdk.aws_s3tables_alpha.CompactionProperty |
![]() | @aws-cdk/aws-s3tables-alpha » CompactionProperty |
Settings governing the Compaction maintenance action.
Example
// Build a table
const sampleTable = new Table(scope, 'ExampleTable', {
tableName: 'example_table',
namespace: namespace,
openTableFormat: OpenTableFormat.ICEBERG,
withoutMetadata: true,
});
// Build a table with an Iceberg Schema
const sampleTableWithSchema = new Table(scope, 'ExampleSchemaTable', {
tableName: 'example_table_with_schema',
namespace: namespace,
openTableFormat: OpenTableFormat.ICEBERG,
icebergMetadata: {
icebergSchema: {
schemaFieldList: [
{
name: 'id',
type: 'int',
required: true,
},
{
name: 'name',
type: 'string',
},
],
},
},
compaction: {
status: Status.ENABLED,
targetFileSizeMb: 128,
},
snapshotManagement: {
status: Status.ENABLED,
maxSnapshotAgeHours: 48,
minSnapshotsToKeep: 5,
},
});
Properties
Name | Type | Description |
---|---|---|
status | Status | Status of the compaction maintenance action. |
target | number | Target file size in megabytes for compaction. |
status
Type:
Status
Status of the compaction maintenance action.
targetFileSizeMb
Type:
number
Target file size in megabytes for compaction.