Interface CfnBucket.TransitionProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnBucket.TransitionProperty extends
Specifies when an object transitions to a specified storage class.

For more information about Amazon S3 lifecycle configuration rules, see Transitioning Objects Using Amazon S3 Lifecycle in the Amazon S3 User Guide .


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 TransitionProperty transitionProperty = TransitionProperty.builder()
         // the properties below are optional
         .transitionDate(new Date())
  • Method Details

    • getStorageClass

      @Stability(Stable) @NotNull String getStorageClass()
      The storage class to which you want the object to transition.
    • getTransitionDate

      @Stability(Stable) @Nullable default Object getTransitionDate()
      Indicates when objects are transitioned to the specified storage class.

      The date value must be in ISO 8601 format. The time is always midnight UTC.

    • getTransitionInDays

      @Stability(Stable) @Nullable default Number getTransitionInDays()
      Indicates the number of days after creation when objects are transitioned to the specified storage class.

      The value must be a positive integer.

    • builder

      @Stability(Stable) static CfnBucket.TransitionProperty.Builder builder()
      a CfnBucket.TransitionProperty.Builder of CfnBucket.TransitionProperty