public enum Region extends Enum<Region>
Amazon S3 Regions allow the user to choose the geographical region where Amazon S3 will store the buckets the user creates. Choose a Amazon S3 Region to optimize latency, minimize costs, or address regulatory requirements.
Objects stored in a Amazon S3 Region never leave that region unless explicitly transferred to another region.
| Enum Constant and Description |
|---|
AP_MUMBAI
The Asia Pacific (Mumbai) Region.
|
AP_OSAKA_LOCAL
The Asia Pacific (Osaka-Local) Region.
|
AP_SEOUL
The Asia Pacific (Seoul) Region.
|
AP_SINGAPORE
The Asia Pacific (Singapore) Region.
|
AP_SYDNEY
The Asia Pacific (Sydney) Region.
|
AP_TOKYO
The Asia Pacific (Tokyo) Region.
|
CA_CENTRAL
The Canada (Central) Region.
|
CN_BEIJING
The China (Beijing) Region.
|
CN_Northwest_1
The China (Ningxia) Region.
|
EU_FRANKFURT
The EU (Frankfurt) Amazon S3 Region.
|
EU_IRELAND
The EU (Ireland) Amazon S3 Region.
|
EU_LONDON
The EU (London) Amazon S3 Region.
|
EU_NORTH_1
The EU (Stockholm) Amazon S3 Region.
|
EU_PARIS
The EU (Paris) Amazon S3 Region.
|
SA_SAOPAULO
The South America (Sao Paulo) Region.
|
US_EAST_2
The US-East-2 (Ohio) Region.
|
US_GOVCLOUD
The US GovCloud Region.
|
US_STANDARD
The US Standard Amazon S3 Region.
|
US_WEST
The US-West (Northern California) Amazon S3 Region.
|
US_WEST_2
The US-West-2 (Oregon) Region.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static Region |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Region[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Region US_STANDARD
This is the default Amazon S3 Region. All requests sent to s3.amazonaws.com go to this region unless a location constraint is specified when creating a bucket.
The US Standard Region automatically places data in either Amazon's east or west coast data centers depending on which one provides the lowest latency. The US Standard
Region provides eventual consistency for all requests.
public static final Region US_EAST_2
When using buckets in this region, set the client
endpoint to s3.us-east-2.amazonaws.com on all requests to these buckets
to reduce any latency experienced after the first hour of
creating a bucket in this region.
public static final Region US_WEST
When using buckets in this region, set the client endpoint to s3-us-west-1.amazonaws.com on all requests to these buckets to reduce any latency experienced
after the first hour of creating a bucket in this region.
In Amazon S3, the US-West (Northern California) Region provides read-after-write consistency for PUTS of new objects in Amazon S3 buckets and eventual consistency for overwrite PUTS and DELETES.
public static final Region US_WEST_2
When using buckets in this region, set the client endpoint to s3-us-west-2.amazonaws.com on all requests to these buckets to reduce any latency experienced
after the first hour of creating a bucket in this region.
public static final Region US_GOVCLOUD
public static final Region EU_IRELAND
In Amazon S3, the EU (Ireland) Region provides read-after-write consistency for PUTS of new objects in Amazon S3 buckets and eventual consistency for overwrite PUTS and DELETES.
public static final Region EU_LONDON
public static final Region EU_PARIS
public static final Region EU_FRANKFURT
In Amazon S3, the EU (Frankfurt) Region provides read-after-write consistency for PUTS of new objects in Amazon S3 buckets and eventual consistency for overwrite PUTS and DELETES.
The EU (Frankfurt) Region requires AWS V4 authentication, therefore when accessing buckets inside this region, you need to explicitly configure the "eu-central-1" endpoint for the AmazonS3Client in order to enable V4 signing:
AmazonS3Client s3 = new AmazonS3Client();
s3.setRegion(RegionUtils.getRegion("eu-central-1"));
public static final Region EU_NORTH_1
public static final Region AP_SINGAPORE
When using buckets in this region, set the client endpoint to s3-ap-southeast-1.amazonaws.com on all requests to these buckets to reduce any latency experienced
after the first hour of creating a bucket in this region.
public static final Region AP_SYDNEY
When using buckets in this region, set the client endpoint to s3-ap-southeast-2.amazonaws.com on all requests to these buckets to reduce any latency experienced
after the first hour of creating a bucket in this region.
public static final Region AP_TOKYO
When using buckets in this region, set the client endpoint to s3-ap-northeast-1.amazonaws.com on all requests to these buckets to reduce any latency experienced
after the first hour of creating a bucket in this region.
public static final Region AP_SEOUL
When using buckets in this region, set the client endpoint to
s3.ap-northeast-2.amazonaws.com on all requests to these
buckets to reduce any latency experienced after the first hour of
creating a bucket in this region.
public static final Region AP_OSAKA_LOCAL
public static final Region AP_MUMBAI
When using buckets in this region, set the client endpoint to
s3.ap-south-1.amazonaws.com on all requests to these
buckets to reduce any latency experienced after the first hour of
creating a bucket in this region.
public static final Region SA_SAOPAULO
When using buckets in this region, set the client endpoint to s3-sa-east-1.amazonaws.com on all requests to these buckets to reduce any latency experienced
after the first hour of creating a bucket in this region.
public static final Region CA_CENTRAL
When using buckets in this region, set the client endpoint to
s3.ca-central-1.amazonaws.com on all requests to these buckets
to reduce any latency experienced after the first hour of creating a
bucket in this region.
public static final Region CN_BEIJING
When using buckets in this region, you must set the client endpoint to s3.cn-north-1.amazonaws.com.cn.
public static final Region CN_Northwest_1
When using buckets in this region, you must set the client endpoint to
s3.cn-northwest-1.amazonaws.com.cn.
public static Region[] values()
for (Region c : Region.values()) System.out.println(c);
public static Region valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021 MuleSoft, Inc.. All rights reserved.