@Stability(value=Stable) public static final class LifecycleRule.Builder extends Object implements software.amazon.jsii.Builder<LifecycleRule>
LifecycleRule| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public LifecycleRule.Builder abortIncompleteMultipartUploadAfter(Duration abortIncompleteMultipartUploadAfter)
LifecycleRule.getAbortIncompleteMultipartUploadAfter()abortIncompleteMultipartUploadAfter - 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.this@Stability(value=Stable) public LifecycleRule.Builder enabled(Boolean enabled)
LifecycleRule.getEnabled()enabled - Whether this rule is enabled.this@Stability(value=Stable) public LifecycleRule.Builder expiration(Duration expiration)
LifecycleRule.getExpiration()expiration - 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.this@Stability(value=Stable) public LifecycleRule.Builder expirationDate(Instant expirationDate)
LifecycleRule.getExpirationDate()expirationDate - 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.
this@Stability(value=Stable) public LifecycleRule.Builder expiredObjectDeleteMarker(Boolean expiredObjectDeleteMarker)
LifecycleRule.getExpiredObjectDeleteMarker()expiredObjectDeleteMarker - Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions.
If set to true, the delete marker will be expired.this@Stability(value=Stable) public LifecycleRule.Builder id(String id)
LifecycleRule.getId()id - A unique identifier for this rule.
The value cannot be more than 255 characters.this@Stability(value=Stable) public LifecycleRule.Builder noncurrentVersionExpiration(Duration noncurrentVersionExpiration)
LifecycleRule.getNoncurrentVersionExpiration()noncurrentVersionExpiration - 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.this@Stability(value=Stable) public LifecycleRule.Builder noncurrentVersionsToRetain(Number noncurrentVersionsToRetain)
LifecycleRule.getNoncurrentVersionsToRetain()noncurrentVersionsToRetain - Indicates a maximum number of noncurrent versions to retain.
If there are this many more noncurrent versions,
Amazon S3 permanently deletes them.this@Stability(value=Stable) public LifecycleRule.Builder noncurrentVersionTransitions(List<? extends NoncurrentVersionTransition> noncurrentVersionTransitions)
LifecycleRule.getNoncurrentVersionTransitions()noncurrentVersionTransitions - 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.
this@Stability(value=Stable) public LifecycleRule.Builder objectSizeGreaterThan(Number objectSizeGreaterThan)
LifecycleRule.getObjectSizeGreaterThan()objectSizeGreaterThan - Specifies the minimum object size in bytes for this rule to apply to.this@Stability(value=Stable) public LifecycleRule.Builder objectSizeLessThan(Number objectSizeLessThan)
LifecycleRule.getObjectSizeLessThan()objectSizeLessThan - Specifies the maximum object size in bytes for this rule to apply to.this@Stability(value=Stable) public LifecycleRule.Builder prefix(String prefix)
LifecycleRule.getPrefix()prefix - Object key prefix that identifies one or more objects to which this rule applies.this@Stability(value=Stable) public LifecycleRule.Builder tagFilters(Map<String,? extends Object> tagFilters)
LifecycleRule.getTagFilters()tagFilters - The TagFilter property type specifies tags to use to identify a subset of objects for an Amazon S3 bucket.this@Stability(value=Stable) public LifecycleRule.Builder transitions(List<? extends Transition> transitions)
LifecycleRule.getTransitions()transitions - 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.this@Stability(value=Stable) public LifecycleRule build()
build in interface software.amazon.jsii.Builder<LifecycleRule>LifecycleRuleNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.