Region changes
This section describes the changes implemented in the Amazon SDK for Java 2.x for using the Region
and Regions
classes.
Region configuration
-
Some Amazon services don’t have Region specific endpoints. When using those services, you must set the Region as
Region.AWS_GLOBAL
orRegion.AWS_CN_GLOBAL
.Region region = Region.AWS_GLOBAL;
-
com.amazonaws.regions.Regions
andcom.amazonaws.regions.Region
classes are now combined into one class,software.amazon.awssdk.regions.Region
.
Method and class name mappings
The following tables map Region related classes between versions 1.x and 2.x of the
Amazon SDK for Java. You can create an instance of these classes using the of()
method.
RegionMetadata regionMetadata = RegionMetadata.of(Region.US_EAST_1);
1.x | 2.x |
---|---|
|
|
|
|
|
|
|
Not Supported |
|
Not Supported |
|
|
1.x | 2.x |
---|---|
|
|
|
Not Supported |
|
Not Supported |
|
Not Supported |
|
Not Supported |
1.x | 2.x |
---|---|
|
|
|
|
|
|
1.x | 2.x |
---|---|
|
|
|
|