@Stability(value=Stable)
public static interface CfnBucket.LifecycleConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
For more information, see Object Lifecycle Management 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.*;
LifecycleConfigurationProperty lifecycleConfigurationProperty = LifecycleConfigurationProperty.builder()
.rules(List.of(RuleProperty.builder()
.status("status")
// the properties below are optional
.abortIncompleteMultipartUpload(AbortIncompleteMultipartUploadProperty.builder()
.daysAfterInitiation(123)
.build())
.expirationDate(new Date())
.expirationInDays(123)
.expiredObjectDeleteMarker(false)
.id("id")
.noncurrentVersionExpiration(NoncurrentVersionExpirationProperty.builder()
.noncurrentDays(123)
// the properties below are optional
.newerNoncurrentVersions(123)
.build())
.noncurrentVersionExpirationInDays(123)
.noncurrentVersionTransition(NoncurrentVersionTransitionProperty.builder()
.storageClass("storageClass")
.transitionInDays(123)
// the properties below are optional
.newerNoncurrentVersions(123)
.build())
.noncurrentVersionTransitions(List.of(NoncurrentVersionTransitionProperty.builder()
.storageClass("storageClass")
.transitionInDays(123)
// the properties below are optional
.newerNoncurrentVersions(123)
.build()))
.objectSizeGreaterThan(123)
.objectSizeLessThan(123)
.prefix("prefix")
.tagFilters(List.of(TagFilterProperty.builder()
.key("key")
.value("value")
.build()))
.transition(TransitionProperty.builder()
.storageClass("storageClass")
// the properties below are optional
.transitionDate(new Date())
.transitionInDays(123)
.build())
.transitions(List.of(TransitionProperty.builder()
.storageClass("storageClass")
// the properties below are optional
.transitionDate(new Date())
.transitionInDays(123)
.build()))
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.LifecycleConfigurationProperty.Builder
A builder for
CfnBucket.LifecycleConfigurationProperty |
static class |
CfnBucket.LifecycleConfigurationProperty.Jsii$Proxy
An implementation for
CfnBucket.LifecycleConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.LifecycleConfigurationProperty.Builder |
builder() |
Object |
getRules()
A lifecycle rule for individual objects in an Amazon S3 bucket.
|
@Stability(value=Stable) @NotNull Object getRules()
@Stability(value=Stable) static CfnBucket.LifecycleConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.