Skip to content

ObjectLockConfiguration

Source code in docs_src/capo_s3/types/object_lock_configuration.py
class ObjectLockConfiguration(TypedDict, closed=True):
    object_lock_enabled: NotRequired[
        "capo_s3.types.object_lock_enabled.ObjectLockEnabled"
    ]
    """<p>Indicates whether this bucket has an Object Lock configuration enabled. Enable <code>ObjectLockEnabled</code> when you apply <code>ObjectLockConfiguration</code> to a bucket. </p>"""
    rule: NotRequired["capo_s3.types.object_lock_rule.ObjectLockRule"]
    """<p>Specifies the Object Lock rule for the specified object. Enable the this rule when you apply <code>ObjectLockConfiguration</code> to a bucket. Bucket settings require both a mode and a period. The period can be either <code>Days</code> or <code>Years</code> but you must select one. You cannot specify <code>Days</code> and <code>Years</code> at the same time.</p>"""

object_lock_enabled instance-attribute

object_lock_enabled: NotRequired[ObjectLockEnabled]

Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.

rule instance-attribute

rule: NotRequired[ObjectLockRule]

Specifies the Object Lock rule for the specified object. Enable the this rule when you apply ObjectLockConfiguration to a bucket. Bucket settings require both a mode and a period. The period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.