public enum Regions extends Enum<Regions>
Migrating to the AWS SDK for Java v2
The v2 equivalent of this class is Region
See Migration Guide for more information.
Modifier and Type | Field and Description |
---|---|
static Regions |
DEFAULT_REGION
The default region that new customers in the US are encouraged to use
when using AWS services for the first time.
|
Modifier and Type | Method and Description |
---|---|
static Regions |
fromName(String regionName)
Deprecated.
This method requires the SDK version to be updated to support new regions. Use
RegionUtils.getRegion(String) , which does not have this limitation. |
static Region |
getCurrentRegion()
Returns a Region object representing the region the application is
running in, when running in EC2.
|
String |
getDescription()
Descriptive readable name for this region.
|
String |
getName()
The name of this region, used in the regions.xml file to identify it.
|
static Regions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Regions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Regions GovCloud
public static final Regions US_GOV_EAST_1
public static final Regions US_EAST_1
public static final Regions US_EAST_2
public static final Regions US_WEST_1
public static final Regions US_WEST_2
public static final Regions EU_WEST_1
public static final Regions EU_WEST_2
public static final Regions EU_WEST_3
public static final Regions EU_CENTRAL_1
public static final Regions EU_CENTRAL_2
public static final Regions EU_NORTH_1
public static final Regions EU_SOUTH_1
public static final Regions EU_SOUTH_2
public static final Regions AP_EAST_1
public static final Regions AP_SOUTH_1
public static final Regions AP_SOUTH_2
public static final Regions AP_SOUTHEAST_1
public static final Regions AP_SOUTHEAST_2
public static final Regions AP_SOUTHEAST_3
public static final Regions AP_SOUTHEAST_4
public static final Regions AP_NORTHEAST_1
public static final Regions AP_NORTHEAST_2
public static final Regions AP_NORTHEAST_3
public static final Regions SA_EAST_1
public static final Regions CN_NORTH_1
public static final Regions CN_NORTHWEST_1
public static final Regions CA_CENTRAL_1
public static final Regions CA_WEST_1
public static final Regions ME_CENTRAL_1
public static final Regions ME_SOUTH_1
public static final Regions AF_SOUTH_1
public static final Regions US_ISO_EAST_1
public static final Regions US_ISOB_EAST_1
public static final Regions US_ISO_WEST_1
public static final Regions IL_CENTRAL_1
public static final Regions DEFAULT_REGION
public static Regions[] values()
for (Regions c : Regions.values()) System.out.println(c);
public static Regions 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 nullpublic String getName()
public String getDescription()
@Deprecated public static Regions fromName(String regionName)
RegionUtils.getRegion(String)
, which does not have this limitation.regionName
- The name of the region. Ex.: eu-west-1public static Region getCurrentRegion()