feat(s3tables): add compaction strategy to CompactionProperty#37493
feat(s3tables): add compaction strategy to CompactionProperty#37493
Conversation
Add CompactionStrategy enum (auto, binpack, sort, z-order) and optional strategy field to the L2 CompactionProperty interface. Uses addPropertyOverride since the L1 CFN spec does not yet include the Strategy property in the Compaction definition. Includes unit tests for all strategy values and optionality, and updates the integ.table integration test with strategy configuration.
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter fails with the following errors:
❌ Features must contain a change to a README file.
If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.
|
|
||||||||||||||
|
|
||||||||||||||
Description
Adds compaction strategy support to the S3 Tables L2 construct (
@aws-cdk/aws-s3tables-alpha).The S3 Tables API supports compaction strategies (
auto,binpack,sort,z-order) but the CloudFormation L1 spec does not yet include theStrategyproperty in theCompactiondefinition. This PR adds L2 support usingaddPropertyOverrideto bridge the gap until the L1 is updated.Changes
CompactionStrategyenum with values:AUTO,BINPACK,SORT,Z_ORDERstrategyfield onCompactionPropertyinterfaceaddPropertyOverride("Compaction.Strategy", ...)since the L1 CFN spec does not yet include StrategyCompactionStrategy.BINPACKPre-submit checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license