Interface CfnBucket.RuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBucket.RuleProperty.Jsii$Proxy
- Enclosing class:
CfnBucket
@Stability(Stable)
public static interface CfnBucket.RuleProperty
extends software.amazon.jsii.JsiiSerializable
A container for an Amazon S3 on Outposts bucket lifecycle rule.
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.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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBucket.RuleProperty
static final class
An implementation forCfnBucket.RuleProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
The container for the abort incomplete multipart upload rule.default String
Specifies the expiration for the lifecycle of the object by specifying an expiry date.default Number
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.default Object
The container for the filter of the lifecycle rule.default String
getId()
The unique identifier for the lifecycle rule.IfEnabled
, the rule is currently being applied.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStatus
IfEnabled
, the rule is currently being applied.If
Disabled
, the rule is not currently being applied. -
getAbortIncompleteMultipartUpload
The container for the abort incomplete multipart upload rule. -
getExpirationDate
Specifies the expiration for the lifecycle of the object by specifying an expiry date. -
getExpirationInDays
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. -
getFilter
The container for the filter of the lifecycle rule. -
getId
The unique identifier for the lifecycle rule.The value can't be longer than 255 characters.
-
builder
- Returns:
- a
CfnBucket.RuleProperty.Builder
ofCfnBucket.RuleProperty
-