Learn R Programming

paws.storage (version 0.1.7)

s3_get_bucket_location: Returns the Region the bucket resides in

Description

Returns the Region the bucket resides in. You set the bucket\'s Region using the LocationConstraint request parameter in a CreateBucket request. For more information, see CreateBucket.

Usage

s3_get_bucket_location(Bucket)

Arguments

Bucket

[required] The name of the bucket for which to get the location.

Request syntax

svc$get_bucket_location(
  Bucket = "string"
)

Details

To use this implementation of the operation, you must be the bucket owner.

The following operations are related to GetBucketLocation:

  • GetObject

  • CreateBucket

Examples

Run this code
# NOT RUN {
# The following example returns bucket location.
# }
# NOT RUN {
svc$get_bucket_location(
  Bucket = "examplebucket"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab