Skip to content

LifecycleRule

Source code in docs_src/capo_s3_control/types/lifecycle_rule.py
class LifecycleRule(TypedDict, closed=True):
    expiration: NotRequired[
        "capo_s3_control.types.lifecycle_expiration.LifecycleExpiration"
    ]
    """<p>Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.</p>"""
    id: NotRequired["capo_s3_control.types.id.ID"]
    """<p>Unique identifier for the rule. The value cannot be longer than 255 characters.</p>"""
    filter: NotRequired[
        "capo_s3_control.types.lifecycle_rule_filter.LifecycleRuleFilter"
    ]
    """<p>The container for the filter of lifecycle rule.</p>"""
    status: "capo_s3_control.types.expiration_status.ExpirationStatus"
    """<p>If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.</p>"""
    transitions: NotRequired["capo_s3_control.types.transition_list.TransitionList"]
    """<p>Specifies when an Amazon S3 object transitions to a specified storage class.</p> <note> <p>This is not supported by Amazon S3 on Outposts buckets.</p> </note>"""
    noncurrent_version_transitions: NotRequired[
        "capo_s3_control.types.noncurrent_version_transition_list.NoncurrentVersionTransitionList"
    ]
    """<p> Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime. </p> <note> <p>This is not supported by Amazon S3 on Outposts buckets.</p> </note>"""
    noncurrent_version_expiration: NotRequired[
        "capo_s3_control.types.noncurrent_version_expiration.NoncurrentVersionExpiration"
    ]
    """<p>The noncurrent version expiration of the lifecycle rule.</p>"""
    abort_incomplete_multipart_upload: NotRequired[
        "capo_s3_control.types.abort_incomplete_multipart_upload.AbortIncompleteMultipartUpload"
    ]
    """<p>Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config"> Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration</a> in the <i>Amazon S3 User Guide</i>.</p>"""

abort_incomplete_multipart_upload instance-attribute

abort_incomplete_multipart_upload: NotRequired[AbortIncompleteMultipartUpload]

Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 waits before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration in the Amazon S3 User Guide.

expiration instance-attribute

expiration: NotRequired[LifecycleExpiration]

Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.

filter instance-attribute

filter: NotRequired[LifecycleRuleFilter]

The container for the filter of lifecycle rule.

id instance-attribute

id: NotRequired[ID]

Unique identifier for the rule. The value cannot be longer than 255 characters.

noncurrent_version_expiration instance-attribute

noncurrent_version_expiration: NotRequired[NoncurrentVersionExpiration]

The noncurrent version expiration of the lifecycle rule.

noncurrent_version_transitions instance-attribute

noncurrent_version_transitions: NotRequired[NoncurrentVersionTransitionList]

Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.

This is not supported by Amazon S3 on Outposts buckets.

status instance-attribute

If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.

transitions instance-attribute

transitions: NotRequired[TransitionList]

Specifies when an Amazon S3 object transitions to a specified storage class.

This is not supported by Amazon S3 on Outposts buckets.