paws.storage (version 0.1.0)

s3_put_object_lock_configuration: Places an Object Lock configuration on the specified bucket

Description

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.

Usage

s3_put_object_lock_configuration(Bucket, ObjectLockConfiguration,
  RequestPayer, Token, ContentMD5)

Arguments

Bucket

[required] The bucket whose Object Lock configuration you want to create or replace.

ObjectLockConfiguration

The Object Lock configuration that you want to apply to the specified bucket.

RequestPayer
Token

A token to allow Object Lock to be enabled for an existing bucket.

ContentMD5

The MD5 hash for the request body.

Request syntax

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"
)