LifecycleConfigurationProperty Struct
The container for the lifecycle configuration for the objects stored in an S3 on Outposts bucket.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3outposts as s3outposts } from 'aws-cdk-lib';
declare const filter: any;
const lifecycleConfigurationProperty: s3outposts.CfnBucket.LifecycleConfigurationProperty = {
rules: [{
status: 'status',
// the properties below are optional
abortIncompleteMultipartUpload: {
daysAfterInitiation: 123,
},
expirationDate: 'expirationDate',
expirationInDays: 123,
filter: filter,
id: 'id',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3outposts as s3outposts
# filter: Any
lifecycle_configuration_property = s3outposts.CfnBucket.LifecycleConfigurationProperty(
rules=[s3outposts.CfnBucket.RuleProperty(
status="status",
# the properties below are optional
abort_incomplete_multipart_upload=s3outposts.CfnBucket.AbortIncompleteMultipartUploadProperty(
days_after_initiation=123
),
expiration_date="expirationDate",
expiration_in_days=123,
filter=filter,
id="id"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3outposts.*;
Object filter;
LifecycleConfigurationProperty lifecycleConfigurationProperty = LifecycleConfigurationProperty.builder()
.rules(List.of(RuleProperty.builder()
.status("status")
// the properties below are optional
.abortIncompleteMultipartUpload(AbortIncompleteMultipartUploadProperty.builder()
.daysAfterInitiation(123)
.build())
.expirationDate("expirationDate")
.expirationInDays(123)
.filter(filter)
.id("id")
.build()))
.build();
csharp
// 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.S3Outposts;
var filter;
var lifecycleConfigurationProperty = new LifecycleConfigurationProperty {
Rules = new [] { new RuleProperty {
Status = "status",
// the properties below are optional
AbortIncompleteMultipartUpload = new AbortIncompleteMultipartUploadProperty {
DaysAfterInitiation = 123
},
ExpirationDate = "expirationDate",
ExpirationInDays = 123,
Filter = filter,
Id = "id"
} }
};
go
// 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"
var filter interface{}
lifecycleConfigurationProperty := &LifecycleConfigurationProperty{
Rules: []interface{}{
&RuleProperty{
Status: jsii.String("status"),
// the properties below are optional
AbortIncompleteMultipartUpload: &AbortIncompleteMultipartUploadProperty{
DaysAfterInitiation: jsii.Number(123),
},
ExpirationDate: jsii.String("expirationDate"),
ExpirationInDays: jsii.Number(123),
Filter: filter,
Id: jsii.String("id"),
},
},
}
Properties
rulesIResolvable | IResolvable | CfnBucket.RuleProperty[]rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleProperty]]]rulesIResolvableRulesIResolvableRulesinterface{} required #The container for the lifecycle configuration rules for the objects stored in the S3 on Outposts bucket.