interface NoncurrentVersionTransition
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3.NoncurrentVersionTransition |
![]() | software.amazon.awscdk.services.s3.NoncurrentVersionTransition |
![]() | aws_cdk.aws_s3.NoncurrentVersionTransition |
![]() | @aws-cdk/aws-s3 » NoncurrentVersionTransition |
Describes when noncurrent versions transition 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 noncurrentVersionTransition: s3.NoncurrentVersionTransition = {
storageClass: storageClass,
transitionAfter: cdk.Duration.minutes(30),
// the properties below are optional
noncurrentVersionsToRetain: 123,
};
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. |
noncurrent | number | Indicates the number of noncurrent version objects to be retained. |
storageClass
Type:
Storage
The storage class to which you want the object to transition.
transitionAfter
Type:
Duration
Indicates the number of days after creation when objects are transitioned to the specified storage class.
noncurrentVersionsToRetain?
Type:
number
(optional, default: No noncurrent version retained.)
Indicates the number of noncurrent version objects to be retained.
Can be up to 100 noncurrent versions retained.