CompactionProperty
- class aws_cdk.aws_s3tables_alpha.CompactionProperty(*, status, target_file_size_mb)
Bases:
object
(experimental) Settings governing the Compaction maintenance action.
- Parameters:
status (
Status
) – (experimental) Status of the compaction maintenance action.target_file_size_mb (
Union
[int
,float
]) – (experimental) Target file size in megabytes for compaction.
- Default:
No compaction settings
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# Build a table sample_table = Table(scope, "ExampleTable", table_name="example_table", namespace=namespace, open_table_format=OpenTableFormat.ICEBERG, without_metadata=True ) # Build a table with an Iceberg Schema sample_table_with_schema = Table(scope, "ExampleSchemaTable", table_name="example_table_with_schema", namespace=namespace, open_table_format=OpenTableFormat.ICEBERG, iceberg_metadata=IcebergMetadataProperty( iceberg_schema=IcebergSchemaProperty( schema_field_list=[SchemaFieldProperty( name="id", type="int", required=True ), SchemaFieldProperty( name="name", type="string" ) ] ) ), compaction=CompactionProperty( status=Status.ENABLED, target_file_size_mb=128 ), snapshot_management=SnapshotManagementProperty( status=Status.ENABLED, max_snapshot_age_hours=48, min_snapshots_to_keep=5 ) )
Attributes
- status
(experimental) Status of the compaction maintenance action.
- Stability:
experimental
- target_file_size_mb
(experimental) Target file size in megabytes for compaction.
- Stability:
experimental