Skip to content

List Buckets

s3_list_buckets R Documentation

This operation is not supported by directory buckets

Description

This operation is not supported by directory buckets.

Returns a list of all buckets owned by the authenticated sender of the request. To use this operation, you must have the s3:ListAllMyBuckets permission.

For information about Amazon S3 buckets, see Creating, configuring, and working with Amazon S3 buckets.

Usage

s3_list_buckets()

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

## Not run: 
# The following example returns all the buckets owned by the sender of
# this request.
svc$list_buckets()

## End(Not run)