Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Oct 18, 2024
1 parent 7151d66 commit 7a81153
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/aws-cdk-lib/aws-s3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,14 @@ const bucket = new s3.Bucket(this, 'MyBucket', {
```

To indicate which default minimum object size behavior is applied to the lifecycle configuration, use the
`transitionDefaultMinimumObjectSize` property. To customize the minimum object size for any transition you
`transitionDefaultMinimumObjectSize` property.

The default value of the property before September 2024 is `TransitionDefaultMinimumObjectSize.VARIES_BY_STORAGE_CLASS`
that allows objects smaller than 128 KB to be transitioned only to the S3 Glacier and S3 Glacier Deep Archive storage classes,
otherwise `TransitionDefaultMinimumObjectSize.ALL_STORAGE_CLASSES_128_K` that prevents objects smaller than 128 KB from being
transitioned to any storage class.

To customize the minimum object size for any transition you
can add a filter that specifies a custom `objectSizeGreaterThan` or `objectSizeLessThan` for `lifecycleRules`
property. Custom filters always take precedence over the default transition behavior.

Expand Down

0 comments on commit 7a81153

Please sign in to comment.