Skip to content

Commit

Permalink
feat(AWSCore): Adding support for the ap-southeast-5 region.
Browse files Browse the repository at this point in the history
  • Loading branch information
lawmicha committed Aug 15, 2024
1 parent 708891f commit 781a851
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 1 deletion.
3 changes: 3 additions & 0 deletions AWSCore/Service/AWSService.m
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ - (id)copyWithZone:(NSZone *)zone {
static NSString *const AWSRegionNameAPSoutheast2 = @"ap-southeast-2";
static NSString *const AWSRegionNameAPSoutheast3 = @"ap-southeast-3";
static NSString *const AWSRegionNameAPSoutheast4 = @"ap-southeast-4";
static NSString *const AWSRegionNameAPSoutheast5 = @"ap-southeast-5";
static NSString *const AWSRegionNameAPSouth1 = @"ap-south-1";
static NSString *const AWSRegionNameAPSouth2 = @"ap-south-2";
static NSString *const AWSRegionNameSAEast1 = @"sa-east-1";
Expand Down Expand Up @@ -478,6 +479,8 @@ + (NSString *)regionNameFromType:(AWSRegionType)regionType {
return AWSRegionNameAPSoutheast3;
case AWSRegionAPSoutheast4:
return AWSRegionNameAPSoutheast4;
case AWSRegionAPSoutheast5:
return AWSRegionNameAPSoutheast5;
case AWSRegionAPNortheast1:
return AWSRegionNameAPNortheast1;
case AWSRegionAPNortheast2:
Expand Down
4 changes: 4 additions & 0 deletions AWSCore/Service/AWSServiceEnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ typedef NS_ENUM(NSInteger, AWSRegionType) {
* Asia Pacific (Melbourne)
*/
AWSRegionAPSoutheast4 NS_SWIFT_NAME(APSoutheast4),
/**
* Asia Pacific (Malaysia)
*/
AWSRegionAPSoutheast5 NS_SWIFT_NAME(APSoutheast5),
/**
* Asia Pacific (Mumbai)
*/
Expand Down
5 changes: 5 additions & 0 deletions AWSCore/Utility/AWSCategory.m
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,11 @@ - (AWSRegionType)aws_regionTypeValue {
|| [self isEqualToString:@"ap-southeast-4"]) {
return AWSRegionAPSoutheast4;
}
if ([self isEqualToString:@"AWSRegionAPSoutheast5"]
|| [self isEqualToString:@"APSoutheast5"]
|| [self isEqualToString:@"ap-southeast-5"]) {
return AWSRegionAPSoutheast5;
}
if ([self isEqualToString:@"AWSRegionAPSouth1"]
|| [self isEqualToString:@"APSouth1"]
|| [self isEqualToString:@"ap-south-1"]) {
Expand Down
1 change: 1 addition & 0 deletions AWSS3/AWSS3Model.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ typedef NS_ENUM(NSInteger, AWSS3BucketLocationConstraint) {
AWSS3BucketLocationConstraintAPSoutheast2,
AWSS3BucketLocationConstraintAPSoutheast3,
AWSS3BucketLocationConstraintAPSoutheast4,
AWSS3BucketLocationConstraintAPSoutheast5,
AWSS3BucketLocationConstraintCACentral1,
AWSS3BucketLocationConstraintCAWest1,
AWSS3BucketLocationConstraintCNNorth1,
Expand Down
10 changes: 10 additions & 0 deletions AWSS3/AWSS3Model.m
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
if ([value caseInsensitiveCompare:@"ap-southeast-4"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintAPSoutheast4);
}
if ([value caseInsensitiveCompare:@"ap-southeast-5"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintAPSoutheast5);
}
if ([value caseInsensitiveCompare:@"ca-central-1"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintCACentral1);
}
Expand Down Expand Up @@ -1319,6 +1322,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
return @"ap-southeast-3";
case AWSS3BucketLocationConstraintAPSoutheast4:
return @"ap-southeast-4";
case AWSS3BucketLocationConstraintAPSoutheast5:
return @"ap-southeast-5";
case AWSS3BucketLocationConstraintCACentral1:
return @"ca-central-1";
case AWSS3BucketLocationConstraintCAWest1:
Expand Down Expand Up @@ -2844,6 +2849,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
if ([value caseInsensitiveCompare:@"ap-southeast-4"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintAPSoutheast4);
}
if ([value caseInsensitiveCompare:@"ap-southeast-5"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintAPSoutheast5);
}
if ([value caseInsensitiveCompare:@"ca-central-1"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintCACentral1);
}
Expand Down Expand Up @@ -2937,6 +2945,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
return @"ap-southeast-3";
case AWSS3BucketLocationConstraintAPSoutheast4:
return @"ap-southeast-4";
case AWSS3BucketLocationConstraintAPSoutheast5:
return @"ap-southeast-5";
case AWSS3BucketLocationConstraintCACentral1:
return @"ca-central-1";
case AWSS3BucketLocationConstraintCAWest1:
Expand Down
1 change: 1 addition & 0 deletions AWSS3/AWSS3Resources.m
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,7 @@ - (NSString *)definitionString {
\"ap-southeast-2\",\
\"ap-southeast-3\",\
\"ap-southeast-4\",\
\"ap-southeast-5\",\
\"ca-central-1\",\
\"ca-west-1\",\
\"cn-north-1\",\
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## Unreleased

-Features for next release
### New features
- **AWSCore**
- 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)

## 2.36.7

Expand Down

0 comments on commit 781a851

Please sign in to comment.