RuleProperty Struct
A container for an Amazon S3 on Outposts bucket lifecycle rule.
| 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 ruleProperty: s3outposts.CfnBucket.RuleProperty = {
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
rule_property = 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;
RuleProperty ruleProperty = RuleProperty.builder()
.status("status")
// the properties below are optional
.abortIncompleteMultipartUpload(AbortIncompleteMultipartUploadProperty.builder()
.daysAfterInitiation(123)
.build())
.expirationDate("expirationDate")
.expirationInDays(123)
.filter(filter)
.id("id")
.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 ruleProperty = 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{}
ruleProperty := &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
abortIncompleteMultipartUploadoptionalIResolvable | CfnBucket.abort_incomplete_multipart_uploadoptionaltyping.Union[IResolvable, AbortIncompleteMultipartUploadProperty]abortIncompleteMultipartUploadoptionalIResolvableAbortIncompleteMultipartUploadoptionalIResolvableAbortIncompleteMultipartUploadoptionalinterface{} #The container for the abort incomplete multipart upload rule.
expirationDateoptionalstringexpiration_dateoptionalstrexpirationDateoptionalStringExpirationDateoptionalstringExpirationDateoptional*string #Specifies the expiration for the lifecycle of the object by specifying an expiry date.
expirationInDaysoptionalnumberexpiration_in_daysoptionalint | floatexpirationInDaysoptionalNumberExpirationInDaysoptionaldoubleExpirationInDaysoptional*float64 #Specifies the expiration for the lifecycle of the object in the form of days that the object has been in the S3 on Outposts bucket.
filteroptionalanyfilteroptionalAnyfilteroptionalObjectFilteroptionalobjectFilteroptionalinterface{} #The container for the filter of the lifecycle rule.
Unique identifier for the lifecycle rule.
The value can't be longer than 255 characters.
If `Enabled` , the rule is currently being applied.
If Disabled , the rule is not currently being applied.