TransitionDefaultMinimumObjectSize
- class aws_cdk.aws_s3.TransitionDefaultMinimumObjectSize(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The transition default minimum object size for lifecycle.
- ExampleMetadata:
infused
Example:
s3.Bucket(self, "MyBucket", transition_default_minimum_object_size=s3.TransitionDefaultMinimumObjectSize.VARIES_BY_STORAGE_CLASS, lifecycle_rules=[s3.LifecycleRule( transitions=[s3.Transition( storage_class=s3.StorageClass.DEEP_ARCHIVE, transition_after=Duration.days(30) )] ), s3.LifecycleRule( object_size_less_than=300000, object_size_greater_than=200000, transitions=[s3.Transition( storage_class=s3.StorageClass.ONE_ZONE_INFREQUENT_ACCESS, transition_after=Duration.days(30) )] ) ] )
Attributes
- ALL_STORAGE_CLASSES_128_K
Objects smaller than 128 KB will not transition to any storage class by default.
- VARIES_BY_STORAGE_CLASS
Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes.
By default, all other storage classes will prevent transitions smaller than 128 KB.