versions: Bucket versions

Description Usage Arguments Details Value References Examples

Description

Get/Put versioning settings or retrieve versions of bucket objects.

Usage

1
2
3
4
5
get_versions(bucket, ...)

get_versioning(bucket, ...)

put_versioning(bucket, status = c("Enabled", "Suspended"), ...)

Arguments

bucket

Character string with the name of the bucket, or an object of class “s3_bucket”.

...

Additional arguments passed to s3HTTP.

status

Character string specifying whether versioning should be “Enabled” or “Suspended”.

Details

get_versioning returns the versioning status of a bucket; put_versioning sets the versioning status. get_versions returns information about bucket versions.

Value

For get_versioning: If versioning has never been enabled or suspend, the value is NULL. Otherwise, the status is returned (either “Enabled” or “Suspended”). For put_versioning: If versioning has never been enabled or suspend, the value is NULL. Otherwise, the status is returned (either “Enabled” or “Suspended”). For get_versions: A list.

References

API Documentation API Documentation API Documentation

Examples

1
2
3
4
5
6
## Not run: 
 put_versioning("mybucket")
 get_versioning("mybucket")
 get_versions("mybucket")

## End(Not run)

aws.s3 documentation built on April 14, 2020, 5:15 p.m.