interface Transition
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3.Transition |
![]() | software.amazon.awscdk.services.s3.Transition |
![]() | aws_cdk.aws_s3.Transition |
![]() | @aws-cdk/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 s3 from '@aws-cdk/aws-s3';
import * as cdk from '@aws-cdk/core';
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.