Skip to content

Commit 13fd45b

Browse files
lawmicha5d
andauthored
feat(AWSCore): Adding support for the ap-southeast-5 region. (#5424)
Co-authored-by: Di Wu <[email protected]>
1 parent aec8e5c commit 13fd45b

File tree

7 files changed

+27
-1
lines changed

7 files changed

+27
-1
lines changed

AWSCore/Service/AWSService.m

+3
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ - (id)copyWithZone:(NSZone *)zone {
260260
static NSString *const AWSRegionNameAPSoutheast2 = @"ap-southeast-2";
261261
static NSString *const AWSRegionNameAPSoutheast3 = @"ap-southeast-3";
262262
static NSString *const AWSRegionNameAPSoutheast4 = @"ap-southeast-4";
263+
static NSString *const AWSRegionNameAPSoutheast5 = @"ap-southeast-5";
263264
static NSString *const AWSRegionNameAPSouth1 = @"ap-south-1";
264265
static NSString *const AWSRegionNameAPSouth2 = @"ap-south-2";
265266
static NSString *const AWSRegionNameSAEast1 = @"sa-east-1";
@@ -478,6 +479,8 @@ + (NSString *)regionNameFromType:(AWSRegionType)regionType {
478479
return AWSRegionNameAPSoutheast3;
479480
case AWSRegionAPSoutheast4:
480481
return AWSRegionNameAPSoutheast4;
482+
case AWSRegionAPSoutheast5:
483+
return AWSRegionNameAPSoutheast5;
481484
case AWSRegionAPNortheast1:
482485
return AWSRegionNameAPNortheast1;
483486
case AWSRegionAPNortheast2:

AWSCore/Service/AWSServiceEnum.h

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ typedef NS_ENUM(NSInteger, AWSRegionType) {
8383
* Asia Pacific (Melbourne)
8484
*/
8585
AWSRegionAPSoutheast4 NS_SWIFT_NAME(APSoutheast4),
86+
/**
87+
* Asia Pacific (Malaysia)
88+
*/
89+
AWSRegionAPSoutheast5 NS_SWIFT_NAME(APSoutheast5),
8690
/**
8791
* Asia Pacific (Mumbai)
8892
*/

AWSCore/Utility/AWSCategory.m

+5
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,11 @@ - (AWSRegionType)aws_regionTypeValue {
530530
|| [self isEqualToString:@"ap-southeast-4"]) {
531531
return AWSRegionAPSoutheast4;
532532
}
533+
if ([self isEqualToString:@"AWSRegionAPSoutheast5"]
534+
|| [self isEqualToString:@"APSoutheast5"]
535+
|| [self isEqualToString:@"ap-southeast-5"]) {
536+
return AWSRegionAPSoutheast5;
537+
}
533538
if ([self isEqualToString:@"AWSRegionAPSouth1"]
534539
|| [self isEqualToString:@"APSouth1"]
535540
|| [self isEqualToString:@"ap-south-1"]) {

AWSS3/AWSS3Model.h

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ typedef NS_ENUM(NSInteger, AWSS3BucketLocationConstraint) {
7070
AWSS3BucketLocationConstraintAPSoutheast2,
7171
AWSS3BucketLocationConstraintAPSoutheast3,
7272
AWSS3BucketLocationConstraintAPSoutheast4,
73+
AWSS3BucketLocationConstraintAPSoutheast5,
7374
AWSS3BucketLocationConstraintCACentral1,
7475
AWSS3BucketLocationConstraintCAWest1,
7576
AWSS3BucketLocationConstraintCNNorth1,

AWSS3/AWSS3Model.m

+10
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
12261226
if ([value caseInsensitiveCompare:@"ap-southeast-4"] == NSOrderedSame) {
12271227
return @(AWSS3BucketLocationConstraintAPSoutheast4);
12281228
}
1229+
if ([value caseInsensitiveCompare:@"ap-southeast-5"] == NSOrderedSame) {
1230+
return @(AWSS3BucketLocationConstraintAPSoutheast5);
1231+
}
12291232
if ([value caseInsensitiveCompare:@"ca-central-1"] == NSOrderedSame) {
12301233
return @(AWSS3BucketLocationConstraintCACentral1);
12311234
}
@@ -1319,6 +1322,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
13191322
return @"ap-southeast-3";
13201323
case AWSS3BucketLocationConstraintAPSoutheast4:
13211324
return @"ap-southeast-4";
1325+
case AWSS3BucketLocationConstraintAPSoutheast5:
1326+
return @"ap-southeast-5";
13221327
case AWSS3BucketLocationConstraintCACentral1:
13231328
return @"ca-central-1";
13241329
case AWSS3BucketLocationConstraintCAWest1:
@@ -2844,6 +2849,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
28442849
if ([value caseInsensitiveCompare:@"ap-southeast-4"] == NSOrderedSame) {
28452850
return @(AWSS3BucketLocationConstraintAPSoutheast4);
28462851
}
2852+
if ([value caseInsensitiveCompare:@"ap-southeast-5"] == NSOrderedSame) {
2853+
return @(AWSS3BucketLocationConstraintAPSoutheast5);
2854+
}
28472855
if ([value caseInsensitiveCompare:@"ca-central-1"] == NSOrderedSame) {
28482856
return @(AWSS3BucketLocationConstraintCACentral1);
28492857
}
@@ -2937,6 +2945,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
29372945
return @"ap-southeast-3";
29382946
case AWSS3BucketLocationConstraintAPSoutheast4:
29392947
return @"ap-southeast-4";
2948+
case AWSS3BucketLocationConstraintAPSoutheast5:
2949+
return @"ap-southeast-5";
29402950
case AWSS3BucketLocationConstraintCACentral1:
29412951
return @"ca-central-1";
29422952
case AWSS3BucketLocationConstraintCAWest1:

AWSS3/AWSS3Resources.m

+1
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,7 @@ - (NSString *)definitionString {
13751375
\"ap-southeast-2\",\
13761376
\"ap-southeast-3\",\
13771377
\"ap-southeast-4\",\
1378+
\"ap-southeast-5\",\
13781379
\"ca-central-1\",\
13791380
\"ca-west-1\",\
13801381
\"cn-north-1\",\

CHANGELOG.md

+3-1
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-5` - Asia Pacific (Malaysia) (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.36.7
810

0 commit comments

Comments
 (0)