Initializerswift-cloud 0.24.0CloudCore
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s9CloudCore2S3V23ObjectLockConfigurationV4fromAEs7Decoder_p_tKcfc
What are these?9LOFE
import CloudCore
struct ObjectLockConfiguration
struct S3
Service object for interacting with AWS S3 service.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(objectLockEnabled: ObjectLockEnabled? = nil, rule: ObjectLockRule? = nil)
let objectLockEnabled: ObjectLockEnabled?
Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.
let rule: 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.