public static interface CfnBucket.NoncurrentVersionExpirationProperty
Upon expiration, Amazon S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent object versions 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.*; NoncurrentVersionExpirationProperty noncurrentVersionExpirationProperty = NoncurrentVersionExpirationProperty.builder() .noncurrentDays(123) // the properties below are optional .newerNoncurrentVersions(123) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnBucket.NoncurrentVersionExpirationProperty.Builder
A builder for
CfnBucket.NoncurrentVersionExpirationProperty |
static class |
CfnBucket.NoncurrentVersionExpirationProperty.Jsii$Proxy
An implementation for
CfnBucket.NoncurrentVersionExpirationProperty |
Modifier and Type | Method and Description |
---|---|
static CfnBucket.NoncurrentVersionExpirationProperty.Builder |
builder() |
default java.lang.Number |
getNewerNoncurrentVersions()
Specifies how many noncurrent versions Amazon S3 will retain.
|
java.lang.Number |
getNoncurrentDays()
Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action.
|
java.lang.Number getNoncurrentDays()
For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide .
default java.lang.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 .
static CfnBucket.NoncurrentVersionExpirationProperty.Builder builder()