Learn R Programming

aws.s3 (version 0.2.2)

get_lifecycle: Lifecycle

Description

Get/Put/Delete the lifecycle configuration information for a bucket.

Usage

get_lifecycle(bucket, ...)

put_lifecycle(bucket, ...)

delete_lifecycle(bucket, ...)

Arguments

bucket
Character string with the name of the bucket, or an object of class “s3_bucket”.
Additional arguments passed to s3HTTP.

Value

For get_lifecycle: a list with lifecycle configuration, if it has been configured. For delete_lifecycle: TRUE if successful, FALSE otherwise.

References

http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlifecycle.html http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketDELETElifecycle.html