
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.
s3_get_bucket_location(Bucket)
[required] The name of the bucket for which to get the location.
svc$get_bucket_location( Bucket = "string" )
To use this implementation of the operation, you must be the bucket owner.
The following operations are related to GetBucketLocation
:
GetObject
CreateBucket
# NOT RUN {
# The following example returns bucket location.
svc$get_bucket_location(
Bucket = "examplebucket"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab