aws-cdk-lib.aws_s3.CfnBucket.TransitionProperty

interface TransitionProperty

LanguageType name
.NETAmazon.CDK.AWS.S3.CfnBucket.TransitionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_TransitionProperty
Javasoftware.amazon.awscdk.services.s3.CfnBucket.TransitionProperty
Pythonaws_cdk.aws_s3.CfnBucket.TransitionProperty
TypeScript aws-cdk-lib » aws_s3 » CfnBucket » TransitionProperty

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 .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const transitionProperty: s3.CfnBucket.TransitionProperty = {
  storageClass: 'storageClass',

  // the properties below are optional
  transitionDate: new Date(),
  transitionInDays: 123,
};

Properties

NameTypeDescription
storageClassstringThe storage class to which you want the object to transition.
transitionDate?IResolvable | dateIndicates when objects are transitioned to the specified storage class.
transitionInDays?numberIndicates the number of days after creation when objects are transitioned to the specified storage class.

storageClass

Type: string

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


transitionDate?

Type: IResolvable | date (optional)

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.


transitionInDays?

Type: number (optional)

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

The value must be a positive integer.