aws-cdk-lib.aws_s3.Transition

interface Transition

LanguageType name
.NETAmazon.CDK.AWS.S3.Transition
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#Transition
Javasoftware.amazon.awscdk.services.s3.Transition
Pythonaws_cdk.aws_s3.Transition
TypeScript (source)aws-cdk-lib » aws_s3 » Transition

Describes when an object transitions 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 * 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

NameTypeDescription
storageClassStorageClassThe storage class to which you want the object to transition.
transitionAfter?DurationIndicates the number of days after creation when objects are transitioned to the specified storage class.
transitionDate?dateIndicates when objects are transitioned to the specified storage class.

storageClass

Type: StorageClass

The storage class to which you want the object to transition.


transitionAfter?

Type: Duration (optional, default: No transition count.)

Indicates the number of days after creation when objects are transitioned to the specified storage class.


transitionDate?

Type: date (optional, default: 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.