Interface NoncurrentVersionTransition

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
NoncurrentVersionTransition.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-11T23:26:40.683Z") @Stability(Stable) public interface NoncurrentVersionTransition extends software.amazon.jsii.JsiiSerializable
Describes when noncurrent versions transition to a specified storage class.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.s3.*;
 StorageClass storageClass;
 NoncurrentVersionTransition noncurrentVersionTransition = NoncurrentVersionTransition.builder()
         .storageClass(storageClass)
         .transitionAfter(Duration.minutes(30))
         // the properties below are optional
         .noncurrentVersionsToRetain(123)
         .build();
 
  • Method Details

    • getStorageClass

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

      @Stability(Stable) @NotNull Duration getTransitionAfter()
      Indicates the number of days after creation when objects are transitioned to the specified storage class.

      Default: - No transition count.

    • getNoncurrentVersionsToRetain

      @Stability(Stable) @Nullable default Number getNoncurrentVersionsToRetain()
      Indicates the number of noncurrent version objects to be retained.

      Can be up to 100 noncurrent versions retained.

      Default: - No noncurrent version retained.

    • builder

      @Stability(Stable) static NoncurrentVersionTransition.Builder builder()
      Returns:
      a NoncurrentVersionTransition.Builder of NoncurrentVersionTransition