Enum TransitionDefaultMinimumObjectSize
The transition default minimum object size for lifecycle.
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum TransitionDefaultMinimumObjectSize
Syntax (vb)
Public Enum TransitionDefaultMinimumObjectSize
Remarks
ExampleMetadata: infused
Examples
new Bucket(this, "MyBucket", new BucketProps {
TransitionDefaultMinimumObjectSize = TransitionDefaultMinimumObjectSize.VARIES_BY_STORAGE_CLASS,
LifecycleRules = new [] { new LifecycleRule {
Transitions = new [] { new Transition {
StorageClass = StorageClass.DEEP_ARCHIVE,
TransitionAfter = Duration.Days(30)
} }
}, new LifecycleRule {
ObjectSizeLessThan = 300000,
ObjectSizeGreaterThan = 200000,
Transitions = new [] { new Transition {
StorageClass = StorageClass.ONE_ZONE_INFREQUENT_ACCESS,
TransitionAfter = Duration.Days(30)
} }
} }
});
Synopsis
Fields
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. |
Fields
Name | Description |
---|---|
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. |