@Stability(value=Stable)
public static interface CfnBucket.TransitionProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.s3.*;
TransitionProperty transitionProperty = TransitionProperty.builder()
.storageClass("storageClass")
// the properties below are optional
.transitionDate(new Date())
.transitionInDays(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.TransitionProperty.Builder
A builder for
CfnBucket.TransitionProperty |
static class |
CfnBucket.TransitionProperty.Jsii$Proxy
An implementation for
CfnBucket.TransitionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.TransitionProperty.Builder |
builder() |
String |
getStorageClass()
The storage class to which you want the object to transition.
|
default Object |
getTransitionDate()
Indicates when objects are transitioned to the specified storage class.
|
default Number |
getTransitionInDays()
Indicates the number of days after creation when objects are transitioned to the specified storage class.
|
@Stability(value=Stable) @NotNull String getStorageClass()
@Stability(value=Stable) @Nullable default Object getTransitionDate()
The date value must be in ISO 8601 format. The time is always midnight UTC.
@Stability(value=Stable) @Nullable default Number getTransitionInDays()
The value must be a positive integer.
@Stability(value=Stable) static CfnBucket.TransitionProperty.Builder builder()
Copyright © 2022. All rights reserved.