Learn R Programming

aws.s3 (version 0.1.33)

get_bucket: Get bucket

Description

List the contents of an S3 bucket

Usage

get_bucket(bucket, prefix = NULL, delimiter = NULL, max = NULL, marker = NULL, parse_response = TRUE, ...)

Arguments

bucket
Character string with the name of the bucket, or an object of class “s3_bucket”.
prefix
Character string that limits the response to keys that begin with the specified prefix
delimiter
Character string used to group keys. Read the AWS doc for more detail.
max
Integer indicating the maximum number of keys to return (max 1000).
marker
Character string that pecifies the key to start with when listing objects in a bucket. Amazon S3 returns object keys in alphabetical order, starting with key after the marker in order.
parse_response
logical, should we attempt to parse the response?
...
Additional arguments passed to s3HTTP.

Value

A list of objects in the bucket. If parse_response = FALSE, a nested list with the complete contents of the AWS response.

Details

from the AWS doc: “This implementation of the GET operation returns some or all (up to 1000) of the objects in a bucket. You can use the request parameters as selection criteria to return a subset of the objects in a bucket.”

References

API Documentation