interface Transition
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.Transition |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#Transition |
Java | software.amazon.awscdk.services.s3.Transition |
Python | aws_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
Name | Type | Description |
---|---|---|
storage | Storage | The storage class to which you want the object to transition. |
transition | Duration | Indicates the number of days after creation when objects are transitioned to the specified storage class. |
transition | date | Indicates when objects are transitioned to the specified storage class. |
storageClass
Type:
Storage
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.