Skip to content
v2.273.0

Transition Struct ​

Describes when an object transitions 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 transition: s3.Transition = {
  storageClass: storageClass,

  // the properties below are optional
  transitionAfter: cdk.Duration.minutes(30),
  transitionDate: new Date(),
};

Properties ​

storageClassStorageClassstorage_classStorageClassstorageClassStorageClassStorageClassStorageClassStorageClassStorageClassrequired#
The storage class to which you want the object to transition.
transitionAfterDurationtransition_afterDurationtransitionAfterDurationTransitionAfterDurationTransitionAfterDuration= No transition count.#
Indicates the number of days after creation when objects are transitioned to the specified storage class.
transitionDatedatetransition_datedatetimetransitionDateInstantTransitionDateDateTimeTransitionDate*time.Time= No transition date.#
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.