diff --git a/aws-android-sdk-core/src/main/java/com/amazonaws/regions/RegionDefaults.java b/aws-android-sdk-core/src/main/java/com/amazonaws/regions/RegionDefaults.java index 13a98d6d97..1105a69719 100644 --- a/aws-android-sdk-core/src/main/java/com/amazonaws/regions/RegionDefaults.java +++ b/aws-android-sdk-core/src/main/java/com/amazonaws/regions/RegionDefaults.java @@ -694,6 +694,34 @@ public static List getRegions() { updateRegion(region, "sns", "sns.ap-southeast-4.amazonaws.com", false, true); updateRegion(region, "sqs", "sqs.ap-southeast-4.amazonaws.com", false, true); updateRegion(region, "sts", "sts.ap-southeast-4.amazonaws.com", false, true); + + // Support for Israel (Tel Aviv) `il-central-1` region + region = new Region("il-central-1", "amazonaws.com"); + ret.add(region); + updateRegion(region, "autoscaling", "autoscaling.il-central-1.amazonaws.com", false, true); + updateRegion(region, "cognito-identity", "cognito-identity.il-central-1.amazonaws.com", + false, true); + updateRegion(region, "cognito-idp", "cognito-idp.il-central-1.amazonaws.com", false, true); + updateRegion(region, "cognito-sync", "cognito-sync.il-central-1.amazonaws.com", false, + true); + updateRegion(region, "data.iot", "data.iot.il-central-1.amazonaws.com", false, true); + updateRegion(region, "dynamodb", "dynamodb.il-central-1.amazonaws.com", false, true); + updateRegion(region, "ec2", "ec2.il-central-1.amazonaws.com", false, true); + updateRegion(region, "elasticloadbalancing", + "elasticloadbalancing.il-central-1.amazonaws.com", false, true); + updateRegion(region, "firehose", "firehose.il-central-1.amazonaws.com", false, true); + updateRegion(region, "iot", "iot.il-central-1.amazonaws.com", false, true); + updateRegion(region, "kinesis", "kinesis.il-central-1.amazonaws.com", false, true); + updateRegion(region, "kms", "kms.il-central-1.amazonaws.com", false, true); + updateRegion(region, "lambda", "lambda.il-central-1.amazonaws.com", false, true); + updateRegion(region, "logs", "logs.il-central-1.amazonaws.com", false, true); + updateRegion(region, "polly", "polly.il-central-1.amazonaws.com", false, true); + updateRegion(region, "s3", "s3.il-central-1.amazonaws.com", false, true); + updateRegion(region, "sdb", "sdb.il-central-1.amazonaws.com", false, true); + updateRegion(region, "sns", "sns.il-central-1.amazonaws.com", false, true); + updateRegion(region, "sqs", "sqs.il-central-1.amazonaws.com", false, true); + updateRegion(region, "sts", "sts.il-central-1.amazonaws.com", false, true); + return ret; } diff --git a/aws-android-sdk-core/src/main/java/com/amazonaws/regions/Regions.java b/aws-android-sdk-core/src/main/java/com/amazonaws/regions/Regions.java index 09997d2ed5..78eb0e4e30 100644 --- a/aws-android-sdk-core/src/main/java/com/amazonaws/regions/Regions.java +++ b/aws-android-sdk-core/src/main/java/com/amazonaws/regions/Regions.java @@ -108,7 +108,10 @@ public enum Regions { ME_CENTRAL_1("me-central-1"), /** ap-south-2. */ - AP_SOUTH_2("ap-south-2"); + AP_SOUTH_2("ap-south-2"), + + /** il-central-1. */ + IL_CENTRAL_1("il-central-1"); /** * The default region that new customers in the US are encouraged to use diff --git a/aws-android-sdk-core/src/test/java/com/amazonaws/regions/RegionUtilsTest.java b/aws-android-sdk-core/src/test/java/com/amazonaws/regions/RegionUtilsTest.java index 66596d19c0..ec6808876c 100644 --- a/aws-android-sdk-core/src/test/java/com/amazonaws/regions/RegionUtilsTest.java +++ b/aws-android-sdk-core/src/test/java/com/amazonaws/regions/RegionUtilsTest.java @@ -46,7 +46,7 @@ public void testGetRegionByEndpointWithBogusEndpoint() { @Test public void testGetRegionsForService() { List regions = RegionUtils.getRegionsForService(ServiceAbbreviations.SimpleDB); - assertEquals(regions.size(), 15); + assertEquals(regions.size(), 16); boolean usEast1 = false; boolean usWest1 = false; for (Region curr : regions) { diff --git a/aws-android-sdk-s3/src/main/java/com/amazonaws/services/s3/model/Region.java b/aws-android-sdk-s3/src/main/java/com/amazonaws/services/s3/model/Region.java index 5386506693..e4110dd85f 100644 --- a/aws-android-sdk-s3/src/main/java/com/amazonaws/services/s3/model/Region.java +++ b/aws-android-sdk-s3/src/main/java/com/amazonaws/services/s3/model/Region.java @@ -386,7 +386,19 @@ public enum Region { * bucket in this region. *

*/ - AP_Melbourne("ap-southeast-4"); + AP_Melbourne("ap-southeast-4"), + + /** + * The Israel (Tel Aviv) Region. This region uses Amazon S3 servers + * located in Tel Aviv. + *

+ * When using buckets in this region, set the client endpoint to + * s3-il-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. + *

+ */ + AP_TelAviv("il-central-1"); /** * Used to extract the S3 regional id from an S3 end point. Note this