Enum TransitionDefaultMinimumObjectSize
java.lang.Object
java.lang.Enum<TransitionDefaultMinimumObjectSize>
software.amazon.awscdk.services.s3.TransitionDefaultMinimumObjectSize
- All Implemented Interfaces:
Serializable
,Comparable<TransitionDefaultMinimumObjectSize>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:08.939Z")
@Stability(Stable)
public enum TransitionDefaultMinimumObjectSize
extends Enum<TransitionDefaultMinimumObjectSize>
The transition default minimum object size for lifecycle.
Example:
Bucket.Builder.create(this, "MyBucket") .transitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize.VARIES_BY_STORAGE_CLASS) .lifecycleRules(List.of(LifecycleRule.builder() .transitions(List.of(Transition.builder() .storageClass(StorageClass.DEEP_ARCHIVE) .transitionAfter(Duration.days(30)) .build())) .build(), LifecycleRule.builder() .objectSizeLessThan(300000) .objectSizeGreaterThan(200000) .transitions(List.of(Transition.builder() .storageClass(StorageClass.ONE_ZONE_INFREQUENT_ACCESS) .transitionAfter(Duration.days(30)) .build())) .build())) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionObjects smaller than 128 KB will not transition to any storage class by default.Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static TransitionDefaultMinimumObjectSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-