NoncurrentVersionExpirationProperty Struct
Specifies when noncurrent object versions expire.
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. For more information about setting a lifecycle rule configuration, see AWS::S3::Bucket Rule .
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const noncurrentVersionExpirationProperty: s3.CfnBucket.NoncurrentVersionExpirationProperty = {
noncurrentDays: 123,
// the properties below are optional
newerNoncurrentVersions: 123,
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3
noncurrent_version_expiration_property = s3.CfnBucket.NoncurrentVersionExpirationProperty(
noncurrent_days=123,
# the properties below are optional
newer_noncurrent_versions=123
)
// 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();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var noncurrentVersionExpirationProperty = new NoncurrentVersionExpirationProperty {
NoncurrentDays = 123,
// the properties below are optional
NewerNoncurrentVersions = 123
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
noncurrentVersionExpirationProperty := &NoncurrentVersionExpirationProperty{
NoncurrentDays: jsii.Number(123),
// the properties below are optional
NewerNoncurrentVersions: jsii.Number(123),
}
Properties
newerNoncurrentVersionsoptionalnumbernewer_noncurrent_versionsoptionalint | floatnewerNoncurrentVersionsoptionalNumberNewerNoncurrentVersionsoptionaldoubleNewerNoncurrentVersionsoptional*float64 #notes
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 .
noncurrentDaysnumbernoncurrent_daysint | floatnoncurrentDaysNumberNoncurrentDaysdoubleNoncurrentDays*float64 required #notes
For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide .