Skip to content

Commit 7344879

Browse files
tylerjroachharsh62
andauthored
feat(AWSCore): Adding support for ap-east-2 region (#5530)
* feat(core): add new region - ap-east-2 * Update duplicate region AWSService.m --------- Co-authored-by: Harshdeep Singh <[email protected]>
1 parent d3c1285 commit 7344879

File tree

7 files changed

+26
-1
lines changed

7 files changed

+26
-1
lines changed

AWSCore/Service/AWSService.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ - (id)copyWithZone:(NSZone *)zone {
254254
static NSString *const AWSRegionNameEUCentral2 = @"eu-central-2";
255255
static NSString *const AWSRegionNameEUNorth1 = @"eu-north-1";
256256
static NSString *const AWSRegionNameAPEast1 = @"ap-east-1";
257+
static NSString *const AWSRegionNameAPEast2 = @"ap-east-2";
257258
static NSString *const AWSRegionNameAPSoutheast1 = @"ap-southeast-1";
258259
static NSString *const AWSRegionNameAPNortheast1 = @"ap-northeast-1";
259260
static NSString *const AWSRegionNameAPNortheast2 = @"ap-northeast-2";
@@ -525,6 +526,8 @@ + (NSString *)regionNameFromType:(AWSRegionType)regionType {
525526
return AWSRegionNameEUSouth2;
526527
case AWSRegionMXCentral1:
527528
return AWSRegionNameMXCentral1;
529+
case AWSRegionAPEast2:
530+
return AWSRegionNameAPEast2;
528531
default:
529532
return nil;
530533
}

AWSCore/Service/AWSServiceEnum.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ typedef NS_ENUM(NSInteger, AWSRegionType) {
139139
* Asia Pacific (Hong Kong)
140140
*/
141141
AWSRegionAPEast1 NS_SWIFT_NAME(APEast1),
142+
/**
143+
* Asia Pacific (Taipei)
144+
*/
145+
AWSRegionAPEast2 NS_SWIFT_NAME(APEast2),
142146
/**
143147
* Middle East Central (UAE)
144148
*/

AWSCore/Utility/AWSCategory.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,11 @@ - (AWSRegionType)aws_regionTypeValue {
515515
|| [self isEqualToString:@"ap-southeast-1"]) {
516516
return AWSRegionAPSoutheast1;
517517
}
518+
if ([self isEqualToString:@"AWSRegionAPEast2"]
519+
|| [self isEqualToString:@"APEast2"]
520+
|| [self isEqualToString:@"ap-east-2"]) {
521+
return AWSRegionAPEast2;
522+
}
518523
if ([self isEqualToString:@"AWSRegionAPSoutheast2"]
519524
|| [self isEqualToString:@"APSoutheast2"]
520525
|| [self isEqualToString:@"ap-southeast-2"]) {

AWSS3/AWSS3Model.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ typedef NS_ENUM(NSInteger, AWSS3BucketLocationConstraint) {
6161
AWSS3BucketLocationConstraintUnknown,
6262
AWSS3BucketLocationConstraintAFSouth1,
6363
AWSS3BucketLocationConstraintAPEast1,
64+
AWSS3BucketLocationConstraintAPEast2,
6465
AWSS3BucketLocationConstraintAPNortheast1,
6566
AWSS3BucketLocationConstraintAPNortheast2,
6667
AWSS3BucketLocationConstraintAPNortheast3,

AWSS3/AWSS3Model.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
11991199
if ([value caseInsensitiveCompare:@"ap-east-1"] == NSOrderedSame) {
12001200
return @(AWSS3BucketLocationConstraintAPEast1);
12011201
}
1202+
if ([value caseInsensitiveCompare:@"ap-east-2"] == NSOrderedSame) {
1203+
return @(AWSS3BucketLocationConstraintAPEast2);
1204+
}
12021205
if ([value caseInsensitiveCompare:@"ap-northeast-1"] == NSOrderedSame) {
12031206
return @(AWSS3BucketLocationConstraintAPNortheast1);
12041207
}
@@ -1310,6 +1313,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
13101313
return @"af-south-1";
13111314
case AWSS3BucketLocationConstraintAPEast1:
13121315
return @"ap-east-1";
1316+
case AWSS3BucketLocationConstraintAPEast2:
1317+
return @"ap-east-2";
13131318
case AWSS3BucketLocationConstraintAPNortheast1:
13141319
return @"ap-northeast-1";
13151320
case AWSS3BucketLocationConstraintAPNortheast2:
@@ -2832,6 +2837,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
28322837
if ([value caseInsensitiveCompare:@"ap-east-1"] == NSOrderedSame) {
28332838
return @(AWSS3BucketLocationConstraintAPEast1);
28342839
}
2840+
if ([value caseInsensitiveCompare:@"ap-east-2"] == NSOrderedSame) {
2841+
return @(AWSS3BucketLocationConstraintAPEast2);
2842+
}
28352843
if ([value caseInsensitiveCompare:@"ap-northeast-1"] == NSOrderedSame) {
28362844
return @(AWSS3BucketLocationConstraintAPNortheast1);
28372845
}
@@ -2943,6 +2951,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
29432951
return @"af-south-1";
29442952
case AWSS3BucketLocationConstraintAPEast1:
29452953
return @"ap-east-1";
2954+
case AWSS3BucketLocationConstraintAPEast2:
2955+
return @"ap-east-2";
29462956
case AWSS3BucketLocationConstraintAPNortheast1:
29472957
return @"ap-northeast-1";
29482958
case AWSS3BucketLocationConstraintAPNortheast2:

AWSS3/AWSS3Resources.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,7 @@ - (NSString *)definitionString {
13661366
\"enum\":[\
13671367
\"af-south-1\",\
13681368
\"ap-east-1\",\
1369+
\"ap-east-2\",\
13691370
\"ap-northeast-1\",\
13701371
\"ap-northeast-2\",\
13711372
\"ap-northeast-3\",\

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## Unreleased
44

5-
-Features for next release
5+
**AWSCore**
6+
- Support for `ap-east-2` - Asia Pacific (Taipei) (see [AWS Regional Services List](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/) for a list of services supported in the region)
67

78
## 2.40.2
89

0 commit comments

Comments
 (0)