|
22 | 22 | class RegionDefaults { |
23 | 23 | public static List<Region> getRegions() { |
24 | 24 |
|
25 | | - List<Region> ret = new ArrayList<Region>(); |
| 25 | + final List<Region> ret = new ArrayList<Region>(); |
26 | 26 | Region region; |
27 | 27 |
|
28 | 28 | region = new Region("us-east-1", ""); |
@@ -53,6 +53,22 @@ public static List<Region> getRegions() { |
53 | 53 | updateRegion(region, "kms", "kms.us-east-1.amazonaws.com", false, true); |
54 | 54 | updateRegion(region, "execute-api", "iot.us-east-1.amazonaws.com", false, true); |
55 | 55 |
|
| 56 | + region = new Region("us-east-2", ""); |
| 57 | + ret.add(region); |
| 58 | + |
| 59 | + updateRegion(region, "s3", "s3-us-east-2.amazonaws.com", true, true); |
| 60 | + updateRegion(region, "sts", "sts.amazonaws.com", false, true); |
| 61 | + updateRegion(region, "monitoring", "monitoring.us-east-2.amazonaws.com", true, true); |
| 62 | + updateRegion(region, "sns", "sns.us-east-2.amazonaws.com", true, true); |
| 63 | + updateRegion(region, "autoscaling", "autoscaling.us-east-2.amazonaws.com", true, true); |
| 64 | + updateRegion(region, "dynamodb", "dynamodb.us-east-2.amazonaws.com", true, true); |
| 65 | + updateRegion(region, "ec2", "ec2.us-east-2.amazonaws.com", true, true); |
| 66 | + updateRegion(region, "kinesis", "kinesis.us-east-2.amazonaws.com", false, true); |
| 67 | + updateRegion(region, "sqs", "sqs.us-east-2.amazonaws.com", true, true); |
| 68 | + updateRegion(region, "elasticloadbalancing", |
| 69 | + "elasticloadbalancing.us-east-2.amazonaws.com", true, true); |
| 70 | + updateRegion(region, "kms", "kms.us-east-2.amazonaws.com", false, true); |
| 71 | + |
56 | 72 | region = new Region("us-west-1", ""); |
57 | 73 | ret.add(region); |
58 | 74 |
|
@@ -94,7 +110,7 @@ public static List<Region> getRegions() { |
94 | 110 | updateRegion(region, "cognito-identity", "cognito-identity.us-west-2.amazonaws.com", false, |
95 | 111 | true); |
96 | 112 | updateRegion(region, "cognito-idp", "cognito-idp.us-west-2.amazonaws.com", false, true); |
97 | | - |
| 113 | + |
98 | 114 | region = new Region("ap-south-1", ""); |
99 | 115 | ret.add(region); |
100 | 116 |
|
@@ -283,9 +299,9 @@ public static List<Region> getRegions() { |
283 | 299 | private static void updateRegion(Region region, String service, String host, |
284 | 300 | boolean http, boolean https) { |
285 | 301 |
|
286 | | - Map<String, String> serviceEndpoints = region.getServiceEndpoints(); |
287 | | - Map<String, Boolean> httpSupport = region.getHttpSupport(); |
288 | | - Map<String, Boolean> httpsSupport = region.getHttpsSupport(); |
| 302 | + final Map<String, String> serviceEndpoints = region.getServiceEndpoints(); |
| 303 | + final Map<String, Boolean> httpSupport = region.getHttpSupport(); |
| 304 | + final Map<String, Boolean> httpsSupport = region.getHttpsSupport(); |
289 | 305 |
|
290 | 306 | serviceEndpoints.put(service, host); |
291 | 307 | httpSupport.put(service, http); |
|
0 commit comments