Skip to content
v2.274.0

NoncurrentVersionTransition Struct ​

Describes when noncurrent versions transition to a specified storage class.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_s3 as s3 } from 'aws-cdk-lib';

declare const storageClass: s3.StorageClass;
const noncurrentVersionTransition: s3.NoncurrentVersionTransition = {
  storageClass: storageClass,
  transitionAfter: cdk.Duration.minutes(30),

  // the properties below are optional
  noncurrentVersionsToRetain: 123,
};

Properties ​

noncurrentVersionsToRetainoptionalnumbernoncurrent_versions_to_retainoptionalint | floatnoncurrentVersionsToRetainoptionalNumberNoncurrentVersionsToRetainoptionaldoubleNoncurrentVersionsToRetainoptional*float64#
Indicates the number of noncurrent version objects to be retained.

Default: No noncurrent version retained.

Can be up to 100 noncurrent versions retained.

storageClassStorageClassstorage_classStorageClassstorageClassStorageClassStorageClassStorageClassStorageClassStorageClassrequired#
The storage class to which you want the object to transition.
transitionAfterDurationtransition_afterDurationtransitionAfterDurationTransitionAfterDurationTransitionAfterDurationrequired#
Indicates the number of days after creation when objects are transitioned to the specified storage class.

Default: No transition count.