Add descriptive names for AWS regions
Closes
@@ -25,24 +25,24 @@ import com.amazonaws.util.EC2MetadataUtils;
*/
public enum Regions {
- GovCloud("us-gov-west-1"),
- US_EAST_1("us-east-1"),
- US_EAST_2("us-east-2"),
- US_WEST_1("us-west-1"),
- US_WEST_2("us-west-2"),
- EU_WEST_1("eu-west-1"),
- EU_WEST_2("eu-west-2"),
- EU_WEST_3("eu-west-3"),
- EU_CENTRAL_1("eu-central-1"),
- AP_SOUTH_1("ap-south-1"),
- AP_SOUTHEAST_1("ap-southeast-1"),
- AP_SOUTHEAST_2("ap-southeast-2"),
- AP_NORTHEAST_1("ap-northeast-1"),
- AP_NORTHEAST_2("ap-northeast-2"),
- SA_EAST_1("sa-east-1"),
- CN_NORTH_1("cn-north-1"),
- CN_NORTHWEST_1("cn-northwest-1"),
- CA_CENTRAL_1("ca-central-1");
+ GovCloud("us-gov-west-1", "AWS GovCloud (US)"),
+ US_EAST_1("us-east-1", "US East (N. Virginia)"),
+ US_EAST_2("us-east-2", "US East (Ohio)"),
+ US_WEST_1("us-west-1", "US West (N. California)"),
+ US_WEST_2("us-west-2", "US West (Oregon)"),
+ EU_WEST_1("eu-west-1", "EU (Ireland)"),
+ EU_WEST_2("eu-west-2", "EU (London)"),
+ EU_WEST_3("eu-west-3", "EU (Paris)"),
+ EU_CENTRAL_1("eu-central-1", "EU (Frankfurt)"),
+ AP_SOUTH_1("ap-south-1", "Asia Pacific (Mumbai)"),
+ AP_SOUTHEAST_1("ap-southeast-1", "Asia Pacific (Singapore)"),
+ AP_SOUTHEAST_2("ap-southeast-2", "Asia Pacific (Sydney)"),
+ AP_NORTHEAST_1("ap-northeast-1", "Asia Pacific (Tokyo)"),
+ AP_NORTHEAST_2("ap-northeast-2", "Asia Pacific (Seoul)"),
+ SA_EAST_1("sa-east-1", "South America (Sao Paulo)"),
+ CN_NORTH_1("cn-north-1", "China (Beijing)"),
+ CN_NORTHWEST_1("cn-northwest-1", "China (Ningxia)"),
+ CA_CENTRAL_1("ca-central-1", "Canada (Central)");
/**
* The default region that new customers in the US are encouraged to use
@@ -51,9 +51,11 @@ public enum Regions {
public static final Regions DEFAULT_REGION = US_WEST_2;
private final String name;
+ private final String readableName;
- private Regions(String name) {
+ private Regions(String name, String readableName) {
this.name = name;
+ this.readableName = readableName;
}
/**
@@ -63,6 +65,13 @@ public enum Regions {
return name;
}
+ /**
+ * Descriptive readable name for this region.
+ */
+ public String getReadableName() {
+ return readableName;
+ }
+
/**
* Returns a region enum corresponding to the given region name.
*
