Description Usage Arguments Value Request syntax Examples
View source: R/s3_operations.R
Returns the Region the bucket resides in. You set the bucket's Region
using the LocationConstraint
request parameter in a
create_bucket
request. For more information, see
create_bucket
.
To use this implementation of the operation, you must be the bucket owner.
The following operations are related to
get_bucket_location
:
get_object
create_bucket
1 | s3_get_bucket_location(Bucket, ExpectedBucketOwner)
|
Bucket |
[required] The name of the bucket for which to get the location. |
ExpectedBucketOwner |
The account id of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
|
A list with the following syntax:
1 2 3 | list(
LocationConstraint = "af-south-1"|"ap-east-1"|"ap-northeast-1"|"ap-northeast-2"|"ap-northeast-3"|"ap-south-1"|"ap-southeast-1"|"ap-southeast-2"|"ca-central-1"|"cn-north-1"|"cn-northwest-1"|"EU"|"eu-central-1"|"eu-north-1"|"eu-south-1"|"eu-west-1"|"eu-west-2"|"eu-west-3"|"me-south-1"|"sa-east-1"|"us-east-2"|"us-gov-east-1"|"us-gov-west-1"|"us-west-1"|"us-west-2"
)
|
1 2 3 4 | svc$get_bucket_location(
Bucket = "string",
ExpectedBucketOwner = "string"
)
|
1 2 3 4 5 6 7 | ## Not run:
# The following example returns bucket location.
svc$get_bucket_location(
Bucket = "examplebucket"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.