Class TransitionDefaultMinimumObjectSize
The transition default minimum object size for lifecycle.
Inheritance
System.Object
TransitionDefaultMinimumObjectSize
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class TransitionDefaultMinimumObjectSize : Enum
Syntax (vb)
Public NotInheritable Class TransitionDefaultMinimumObjectSize
Inherits
Enum
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. |
value__ | |
VARIES_BY_STORAGE_CLASS | Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. |
Fields
ALL_STORAGE_CLASSES_128_K
Objects smaller than 128 KB will not transition to any storage class by default.
public const TransitionDefaultMinimumObjectSize ALL_STORAGE_CLASSES_128_K
Field Value
Type | Description |
---|---|
TransitionDefaultMinimumObjectSize |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |
VARIES_BY_STORAGE_CLASS
Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes.
public const TransitionDefaultMinimumObjectSize VARIES_BY_STORAGE_CLASS
Field Value
Type | Description |
---|---|
TransitionDefaultMinimumObjectSize |
Remarks
By default, all other storage classes will prevent transitions smaller than 128 KB.