Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket.
s3_put_object_lock_configuration(Bucket, ObjectLockConfiguration,
RequestPayer, Token, ContentMD5)
[required] The bucket whose Object Lock configuration you want to create or replace.
The Object Lock configuration that you want to apply to the specified bucket.
A token to allow Object Lock to be enabled for an existing bucket.
The MD5 hash for the request body.
svc$put_object_lock_configuration( Bucket = "string", ObjectLockConfiguration = list( ObjectLockEnabled = "Enabled", Rule = list( DefaultRetention = list( Mode = "GOVERNANCE"|"COMPLIANCE", Days = 123, Years = 123 ) ) ), RequestPayer = "requester", Token = "string", ContentMD5 = "string" )
DefaultRetention
requires either Days or Years. You can\'t specify
both at the same time.
Related Resources