paws.storage (version 0.1.0)

s3_put_bucket_versioning: Sets the versioning state of an existing bucket

Description

Sets the versioning state of an existing bucket. To set the versioning state, you must be the bucket owner.

Usage

s3_put_bucket_versioning(Bucket, ContentMD5, MFA,
  VersioningConfiguration)

Arguments

Bucket

[required]

ContentMD5
MFA

The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.

VersioningConfiguration

[required]

Request syntax

svc$put_bucket_versioning(
  Bucket = "string",
  ContentMD5 = "string",
  MFA = "string",
  VersioningConfiguration = list(
    MFADelete = "Enabled"|"Disabled",
    Status = "Enabled"|"Suspended"
  )
)

Examples

Run this code
# NOT RUN {
# The following example sets versioning configuration on bucket. The
# configuration enables versioning on the bucket.
# }
# NOT RUN {
svc$put_bucket_versioning(
  Bucket = "examplebucket",
  VersioningConfiguration = list(
    MFADelete = "Disabled",
    Status = "Enabled"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab