Bucket-class: Abstract representation of an S3 bucket

Description Objects from the Class Slots Methods Author(s) References Examples

Description

This class provides a way to represent an S3 bucket and methods to operate on the bucket. This allows an R user to query the objects it contains, add and remove objects.

Objects from the Class

One creates objects of this class via the Bucket function. This encapsulates the name of the bucket along with authorization information which is used to access the contents of the bucket.

Slots

name:

Object of class "character" the name of the bucket

auth:

Object of class "character" the login/key and AWS key used to access the bucket.

curl:

Object of class "CURLHandle" an optional curl handle that is used as the default handle to use to make the HTTP requests.

Methods

[[

signature(x = "Bucket", i = "character", j = "missing"): retrieve the contents of an object within the bucket

[[<-

signature(x = "Bucket", i = "character", j = "missing"): store content in the bucket using the specified name

$

signature(x = "Bucket", name = "character"): retrieve the contents of an object within the bucket.

$<-

signature(x = "Bucket", name = "character"): store content in the bucket using the specified name

length

signature(x = "Bucket"): the number of objects in the bucket.

names

signature(x = "Bucket"): the names of the entries in the bucket

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://docs.amazonwebservices.com/AmazonS3/latest/gsg/

Examples

1
showClass("Bucket")

duncantl/RAmazonS3 documentation built on May 15, 2019, 5:26 p.m.