@Stability(value=Stable)
public static interface CfnBucket.NoncurrentVersionTransitionProperty
extends software.amazon.jsii.JsiiSerializable
If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA , ONEZONE_IA , INTELLIGENT_TIERING , GLACIER_IR , GLACIER , or DEEP_ARCHIVE storage class at a specific period in the object's lifetime.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;
NoncurrentVersionTransitionProperty noncurrentVersionTransitionProperty = NoncurrentVersionTransitionProperty.builder()
.storageClass("storageClass")
.transitionInDays(123)
// the properties below are optional
.newerNoncurrentVersions(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.NoncurrentVersionTransitionProperty.Builder
A builder for
CfnBucket.NoncurrentVersionTransitionProperty |
static class |
CfnBucket.NoncurrentVersionTransitionProperty.Jsii$Proxy
An implementation for
CfnBucket.NoncurrentVersionTransitionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.NoncurrentVersionTransitionProperty.Builder |
builder() |
default Number |
getNewerNoncurrentVersions()
Specifies how many noncurrent versions Amazon S3 will retain.
|
String |
getStorageClass()
The class of storage used to store the object.
|
Number |
getTransitionInDays()
Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action.
|
@Stability(value=Stable) @NotNull String getStorageClass()
@Stability(value=Stable) @NotNull Number getTransitionInDays()
For information about the noncurrent days calculations, see How Amazon S3 Calculates How Long an Object Has Been Noncurrent in the Amazon S3 User Guide .
@Stability(value=Stable) @Nullable default Number getNewerNoncurrentVersions()
If there are this many more recent noncurrent versions, Amazon S3 will take the associated action. For more information about noncurrent versions, see Lifecycle configuration elements in the Amazon S3 User Guide .
@Stability(value=Stable) static CfnBucket.NoncurrentVersionTransitionProperty.Builder builder()
Copyright © 2022. All rights reserved.