Learn R Programming

paws.storage (version 0.1.12)

s3_list_buckets: Returns a list of all buckets owned by the authenticated sender of the request

Description

Returns a list of all buckets owned by the authenticated sender of the request.

Usage

s3_list_buckets()

Arguments

Value

A list with the following syntax:

list(
  Buckets = list(
    list(
      Name = "string",
      CreationDate = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  Owner = list(
    DisplayName = "string",
    ID = "string"
  )
)

Examples

Run this code
if (FALSE) {
# The following example return versions of an object with specific key
# name prefix. The request limits the number of items returned to two. If
# there are are more than two object version, S3 returns NextToken in the
# response. You can specify this token value in your next request to fetch
# next set of object versions.
svc$list_buckets()
}

Run the code above in your browser using DataLab