interface TransitionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.CfnBucketPropsMixin.TransitionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#CfnBucketPropsMixin_TransitionProperty |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnBucketPropsMixin.TransitionProperty |
Python | aws_cdk.mixins_preview.aws_s3.mixins.CfnBucketPropsMixin.TransitionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_s3 » mixins » CfnBucketPropsMixin » 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 { mixins as s3_mixins } from '@aws-cdk/mixins-preview/aws-s3';
const transitionProperty: s3_mixins.CfnBucketPropsMixin.TransitionProperty = {
storageClass: 'storageClass',
transitionDate: new Date(),
transitionInDays: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| storage | string | The storage class to which you want the object to transition. |
| transition | date | IResolvable | Indicates when objects are transitioned to the specified storage class. |
| transition | number | Indicates the number of days after creation when objects are transitioned to the specified storage class. |
storageClass?
Type:
string
(optional)
The storage class to which you want the object to transition.
transitionDate?
Type:
date | IResolvable
(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.
If the specified storage class is INTELLIGENT_TIERING , GLACIER_IR , GLACIER , or DEEP_ARCHIVE , valid values are 0 or positive integers. If the specified storage class is STANDARD_IA or ONEZONE_IA , valid values are positive integers greater than 30 . Be aware that some storage classes have a minimum storage duration and that you're charged for transitioning objects before their minimum storage duration. For more information, see Constraints and considerations for transitions in the Amazon S3 User Guide .

.NET
Go
Java
Python
TypeScript