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();
 
  • Method Details

    • getStatus

      @Stability(Stable) @NotNull String getStatus()
      If Enabled , the rule is currently being applied.

      If Disabled , the rule is not currently being applied.

    • getAbortIncompleteMultipartUpload

      @Stability(Stable) @Nullable default Object getAbortIncompleteMultipartUpload()
      The container for the abort incomplete multipart upload rule.
    • getExpirationDate

      @Stability(Stable) @Nullable default String getExpirationDate()
      Specifies the expiration for the lifecycle of the object by specifying an expiry date.
    • getExpirationInDays

      @Stability(Stable) @Nullable default Number 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

      @Stability(Stable) @Nullable default Object getFilter()
      The container for the filter of the lifecycle rule.
    • getId

      @Stability(Stable) @Nullable default String getId()
      The unique identifier for the lifecycle rule.

      The value can't be longer than 255 characters.

    • builder

      @Stability(Stable) static CfnBucket.RuleProperty.Builder builder()
      Returns:
      a CfnBucket.RuleProperty.Builder of CfnBucket.RuleProperty