Skip to content

Commit b4ea619

Browse files
tylerjroachthisisabhashharsh62
authored
feat(AWSCore): Adding support for ap-southeast-7 region (#5488)
Co-authored-by: Abhash Kumar Singh <[email protected]> Co-authored-by: Harsh <[email protected]>
1 parent 9ceb22e commit b4ea619

File tree

7 files changed

+27
-1
lines changed

7 files changed

+27
-1
lines changed

AWSCore/Service/AWSService.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ - (id)copyWithZone:(NSZone *)zone {
261261
static NSString *const AWSRegionNameAPSoutheast3 = @"ap-southeast-3";
262262
static NSString *const AWSRegionNameAPSoutheast4 = @"ap-southeast-4";
263263
static NSString *const AWSRegionNameAPSoutheast5 = @"ap-southeast-5";
264+
static NSString *const AWSRegionNameAPSoutheast7 = @"ap-southeast-7";
264265
static NSString *const AWSRegionNameAPSouth1 = @"ap-south-1";
265266
static NSString *const AWSRegionNameAPSouth2 = @"ap-south-2";
266267
static NSString *const AWSRegionNameSAEast1 = @"sa-east-1";
@@ -481,6 +482,8 @@ + (NSString *)regionNameFromType:(AWSRegionType)regionType {
481482
return AWSRegionNameAPSoutheast4;
482483
case AWSRegionAPSoutheast5:
483484
return AWSRegionNameAPSoutheast5;
485+
case AWSRegionAPSoutheast7:
486+
return AWSRegionNameAPSoutheast7;
484487
case AWSRegionAPNortheast1:
485488
return AWSRegionNameAPNortheast1;
486489
case AWSRegionAPNortheast2:

AWSCore/Service/AWSServiceEnum.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ typedef NS_ENUM(NSInteger, AWSRegionType) {
8787
* Asia Pacific (Malaysia)
8888
*/
8989
AWSRegionAPSoutheast5 NS_SWIFT_NAME(APSoutheast5),
90+
/**
91+
* Asia Pacific (Bangkok)
92+
*/
93+
AWSRegionAPSoutheast7 NS_SWIFT_NAME(APSoutheast7),
9094
/**
9195
* Asia Pacific (Mumbai)
9296
*/

AWSCore/Utility/AWSCategory.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,11 @@ - (AWSRegionType)aws_regionTypeValue {
535535
|| [self isEqualToString:@"ap-southeast-5"]) {
536536
return AWSRegionAPSoutheast5;
537537
}
538+
if ([self isEqualToString:@"AWSRegionAPSoutheast7"]
539+
|| [self isEqualToString:@"APSoutheast7"]
540+
|| [self isEqualToString:@"ap-southeast-7"]) {
541+
return AWSRegionAPSoutheast7;
542+
}
538543
if ([self isEqualToString:@"AWSRegionAPSouth1"]
539544
|| [self isEqualToString:@"APSouth1"]
540545
|| [self isEqualToString:@"ap-south-1"]) {

AWSS3/AWSS3Model.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ typedef NS_ENUM(NSInteger, AWSS3BucketLocationConstraint) {
7171
AWSS3BucketLocationConstraintAPSoutheast3,
7272
AWSS3BucketLocationConstraintAPSoutheast4,
7373
AWSS3BucketLocationConstraintAPSoutheast5,
74+
AWSS3BucketLocationConstraintAPSoutheast7,
7475
AWSS3BucketLocationConstraintCACentral1,
7576
AWSS3BucketLocationConstraintCAWest1,
7677
AWSS3BucketLocationConstraintCNNorth1,

AWSS3/AWSS3Model.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
12291229
if ([value caseInsensitiveCompare:@"ap-southeast-5"] == NSOrderedSame) {
12301230
return @(AWSS3BucketLocationConstraintAPSoutheast5);
12311231
}
1232+
if ([value caseInsensitiveCompare:@"ap-southeast-7"] == NSOrderedSame) {
1233+
return @(AWSS3BucketLocationConstraintAPSoutheast7);
1234+
}
12321235
if ([value caseInsensitiveCompare:@"ca-central-1"] == NSOrderedSame) {
12331236
return @(AWSS3BucketLocationConstraintCACentral1);
12341237
}
@@ -1324,6 +1327,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
13241327
return @"ap-southeast-4";
13251328
case AWSS3BucketLocationConstraintAPSoutheast5:
13261329
return @"ap-southeast-5";
1330+
case AWSS3BucketLocationConstraintAPSoutheast7:
1331+
return @"ap-southeast-7";
13271332
case AWSS3BucketLocationConstraintCACentral1:
13281333
return @"ca-central-1";
13291334
case AWSS3BucketLocationConstraintCAWest1:
@@ -2852,6 +2857,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
28522857
if ([value caseInsensitiveCompare:@"ap-southeast-5"] == NSOrderedSame) {
28532858
return @(AWSS3BucketLocationConstraintAPSoutheast5);
28542859
}
2860+
if ([value caseInsensitiveCompare:@"ap-southeast-7"] == NSOrderedSame) {
2861+
return @(AWSS3BucketLocationConstraintAPSoutheast7);
2862+
}
28552863
if ([value caseInsensitiveCompare:@"ca-central-1"] == NSOrderedSame) {
28562864
return @(AWSS3BucketLocationConstraintCACentral1);
28572865
}
@@ -2947,6 +2955,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
29472955
return @"ap-southeast-4";
29482956
case AWSS3BucketLocationConstraintAPSoutheast5:
29492957
return @"ap-southeast-5";
2958+
case AWSS3BucketLocationConstraintAPSoutheast7:
2959+
return @"ap-southeast-7";
29502960
case AWSS3BucketLocationConstraintCACentral1:
29512961
return @"ca-central-1";
29522962
case AWSS3BucketLocationConstraintCAWest1:

AWSS3/AWSS3Resources.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,7 @@ - (NSString *)definitionString {
13761376
\"ap-southeast-3\",\
13771377
\"ap-southeast-4\",\
13781378
\"ap-southeast-5\",\
1379+
\"ap-southeast-7\",\
13791380
\"ca-central-1\",\
13801381
\"ca-west-1\",\
13811382
\"cn-north-1\",\

CHANGELOG.md

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

33
## Unreleased
44

5-
-Features for next release
5+
### New features
6+
- **AWSCore**
7+
- Support for `ap-southeast-7` - Asia Pacific (Bangkok) (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)
68

79
## 2.38.2
810

0 commit comments

Comments
 (0)