Skip to content

LifecycleExpiration

Source code in docs_src/capo_s3_control/types/lifecycle_expiration.py
class LifecycleExpiration(TypedDict, closed=True):
    date: NotRequired["capo_s3_control.types.date.Date"]
    """<p>Indicates at what date the object is to be deleted. Should be in GMT ISO 8601 format.</p>"""
    days: "capo_s3_control.types.days.Days"
    """<p>Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.</p>"""
    expired_object_delete_marker: (
        "capo_s3_control.types.expired_object_delete_marker.ExpiredObjectDeleteMarker"
    )
    """<p>Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired. If set to false, the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy. To learn more about delete markers, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html">Working with delete markers</a>.</p>"""

date instance-attribute

date: NotRequired[Date]

Indicates at what date the object is to be deleted. Should be in GMT ISO 8601 format.

days instance-attribute

days: Days

Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

expired_object_delete_marker instance-attribute

expired_object_delete_marker: ExpiredObjectDeleteMarker

Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set to true, the delete marker will be expired. If set to false, the policy takes no action. This cannot be specified with Days or Date in a Lifecycle Expiration Policy. To learn more about delete markers, see Working with delete markers.