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();
 
  • Enum Constant Details

    • ALL_STORAGE_CLASSES_128_K

      @Stability(Stable) public static final TransitionDefaultMinimumObjectSize ALL_STORAGE_CLASSES_128_K
      Objects smaller than 128 KB will not transition to any storage class by default.
    • VARIES_BY_STORAGE_CLASS

      @Stability(Stable) public static final TransitionDefaultMinimumObjectSize 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

      public static TransitionDefaultMinimumObjectSize[] 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

      public static TransitionDefaultMinimumObjectSize valueOf(String name)
      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 name
      NullPointerException - if the argument is null