ObjectLockConfiguration
¶
Used by
-
AsyncS3Client Operationsput_object_lock_configuration -
S3Client Operationsput_object_lock_configuration
Source code in docs_src/capo_s3/types/object_lock_configuration.py
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.