Class LifecycleRule.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.s3.LifecycleRule.Jsii$Proxy
All Implemented Interfaces:
LifecycleRule, software.amazon.jsii.JsiiSerializable
Enclosing interface:
LifecycleRule

@Stability(Stable) @Internal public static final class LifecycleRule.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LifecycleRule
An implementation for LifecycleRule
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(LifecycleRule.Builder builder)
      Constructor that initializes the object based on literal property values passed by the LifecycleRule.Builder.
  • Method Details

    • getAbortIncompleteMultipartUploadAfter

      public final Duration getAbortIncompleteMultipartUploadAfter()
      Description copied from interface: LifecycleRule
      Specifies a lifecycle rule that aborts incomplete multipart uploads to an Amazon S3 bucket.

      The AbortIncompleteMultipartUpload property type creates a lifecycle rule that aborts incomplete multipart uploads to an Amazon S3 bucket. When Amazon S3 aborts a multipart upload, it deletes all parts associated with the multipart upload.

      The underlying configuration is expressed in whole numbers of days. Providing a Duration that does not represent a whole number of days will result in a runtime or deployment error.

      Default: - Incomplete uploads are never aborted

      Specified by:
      getAbortIncompleteMultipartUploadAfter in interface LifecycleRule
    • getEnabled

      public final Boolean getEnabled()
      Description copied from interface: LifecycleRule
      Whether this rule is enabled.

      Default: true

      Specified by:
      getEnabled in interface LifecycleRule
    • getExpiration

      public final Duration getExpiration()
      Description copied from interface: LifecycleRule
      Indicates the number of days after creation when objects are deleted from Amazon S3 and Amazon Glacier.

      If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.

      The underlying configuration is expressed in whole numbers of days. Providing a Duration that does not represent a whole number of days will result in a runtime or deployment error.

      Default: - No expiration timeout

      Specified by:
      getExpiration in interface LifecycleRule
    • getExpirationDate

      public final Instant getExpirationDate()
      Description copied from interface: LifecycleRule
      Indicates when objects are deleted from Amazon S3 and Amazon Glacier.

      The date value must be in ISO 8601 format. The time is always midnight UTC.

      If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.

      Default: - No expiration date

      Specified by:
      getExpirationDate in interface LifecycleRule
    • getExpiredObjectDeleteMarker

      public final Boolean getExpiredObjectDeleteMarker()
      Description copied from interface: LifecycleRule
      Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions.

      If set to true, the delete marker will be expired.

      Default: false

      Specified by:
      getExpiredObjectDeleteMarker in interface LifecycleRule
    • getId

      public final String getId()
      Description copied from interface: LifecycleRule
      A unique identifier for this rule.

      The value cannot be more than 255 characters.

      Specified by:
      getId in interface LifecycleRule
    • getNoncurrentVersionExpiration

      public final Duration getNoncurrentVersionExpiration()
      Description copied from interface: LifecycleRule
      Time between when a new version of the object is uploaded to the bucket and when old versions of the object expire.

      For buckets with versioning enabled (or suspended), specifies the time, in days, between when a new version of the object is uploaded to the bucket and when old versions of the object expire. When object versions expire, Amazon S3 permanently deletes them. If you specify a transition and expiration time, the expiration time must be later than the transition time.

      The underlying configuration is expressed in whole numbers of days. Providing a Duration that does not represent a whole number of days will result in a runtime or deployment error.

      Default: - No noncurrent version expiration

      Specified by:
      getNoncurrentVersionExpiration in interface LifecycleRule
    • getNoncurrentVersionsToRetain

      public final Number getNoncurrentVersionsToRetain()
      Description copied from interface: LifecycleRule
      Indicates a maximum number of noncurrent versions to retain.

      If there are this many more noncurrent versions, Amazon S3 permanently deletes them.

      Default: - No noncurrent versions to retain

      Specified by:
      getNoncurrentVersionsToRetain in interface LifecycleRule
    • getNoncurrentVersionTransitions

      public final List<NoncurrentVersionTransition> getNoncurrentVersionTransitions()
      Description copied from interface: LifecycleRule
      One or more transition rules that specify when non-current objects transition to a specified storage class.

      Only for for buckets with versioning enabled (or suspended).

      If you specify a transition and expiration time, the expiration time must be later than the transition time.

      Specified by:
      getNoncurrentVersionTransitions in interface LifecycleRule
    • getObjectSizeGreaterThan

      public final Number getObjectSizeGreaterThan()
      Description copied from interface: LifecycleRule
      Specifies the minimum object size in bytes for this rule to apply to.

      Objects must be larger than this value in bytes.

      Default: - No rule

      Specified by:
      getObjectSizeGreaterThan in interface LifecycleRule
    • getObjectSizeLessThan

      public final Number getObjectSizeLessThan()
      Description copied from interface: LifecycleRule
      Specifies the maximum object size in bytes for this rule to apply to.

      Objects must be smaller than this value in bytes.

      Default: - No rule

      Specified by:
      getObjectSizeLessThan in interface LifecycleRule
    • getPrefix

      public final String getPrefix()
      Description copied from interface: LifecycleRule
      Object key prefix that identifies one or more objects to which this rule applies.

      Default: - Rule applies to all objects

      Specified by:
      getPrefix in interface LifecycleRule
    • getTagFilters

      public final Map<String,Object> getTagFilters()
      Description copied from interface: LifecycleRule
      The TagFilter property type specifies tags to use to identify a subset of objects for an Amazon S3 bucket.

      Default: - Rule applies to all objects

      Specified by:
      getTagFilters in interface LifecycleRule
    • getTransitions

      public final List<Transition> getTransitions()
      Description copied from interface: LifecycleRule
      One or more transition rules that specify when an object transitions to a specified storage class.

      If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.

      Default: - No transition rules

      Specified by:
      getTransitions in interface LifecycleRule
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object