Skip to content

Commit

Permalink
feat(AWSCore): Adding support for ap-southeast-7 region (#5488)
Browse files Browse the repository at this point in the history
Co-authored-by: Abhash Kumar Singh <[email protected]>
Co-authored-by: Harsh <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2025
1 parent 9ceb22e commit b4ea619
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 @@ -261,6 +261,7 @@ - (id)copyWithZone:(NSZone *)zone {
static NSString *const AWSRegionNameAPSoutheast3 = @"ap-southeast-3";
static NSString *const AWSRegionNameAPSoutheast4 = @"ap-southeast-4";
static NSString *const AWSRegionNameAPSoutheast5 = @"ap-southeast-5";
static NSString *const AWSRegionNameAPSoutheast7 = @"ap-southeast-7";
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 @@ -481,6 +482,8 @@ + (NSString *)regionNameFromType:(AWSRegionType)regionType {
return AWSRegionNameAPSoutheast4;
case AWSRegionAPSoutheast5:
return AWSRegionNameAPSoutheast5;
case AWSRegionAPSoutheast7:
return AWSRegionNameAPSoutheast7;
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 @@ -87,6 +87,10 @@ typedef NS_ENUM(NSInteger, AWSRegionType) {
* Asia Pacific (Malaysia)
*/
AWSRegionAPSoutheast5 NS_SWIFT_NAME(APSoutheast5),
/**
* Asia Pacific (Bangkok)
*/
AWSRegionAPSoutheast7 NS_SWIFT_NAME(APSoutheast7),
/**
* 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 @@ -535,6 +535,11 @@ - (AWSRegionType)aws_regionTypeValue {
|| [self isEqualToString:@"ap-southeast-5"]) {
return AWSRegionAPSoutheast5;
}
if ([self isEqualToString:@"AWSRegionAPSoutheast7"]
|| [self isEqualToString:@"APSoutheast7"]
|| [self isEqualToString:@"ap-southeast-7"]) {
return AWSRegionAPSoutheast7;
}
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 @@ -71,6 +71,7 @@ typedef NS_ENUM(NSInteger, AWSS3BucketLocationConstraint) {
AWSS3BucketLocationConstraintAPSoutheast3,
AWSS3BucketLocationConstraintAPSoutheast4,
AWSS3BucketLocationConstraintAPSoutheast5,
AWSS3BucketLocationConstraintAPSoutheast7,
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 @@ -1229,6 +1229,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
if ([value caseInsensitiveCompare:@"ap-southeast-5"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintAPSoutheast5);
}
if ([value caseInsensitiveCompare:@"ap-southeast-7"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintAPSoutheast7);
}
if ([value caseInsensitiveCompare:@"ca-central-1"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintCACentral1);
}
Expand Down Expand Up @@ -1324,6 +1327,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
return @"ap-southeast-4";
case AWSS3BucketLocationConstraintAPSoutheast5:
return @"ap-southeast-5";
case AWSS3BucketLocationConstraintAPSoutheast7:
return @"ap-southeast-7";
case AWSS3BucketLocationConstraintCACentral1:
return @"ca-central-1";
case AWSS3BucketLocationConstraintCAWest1:
Expand Down Expand Up @@ -2852,6 +2857,9 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
if ([value caseInsensitiveCompare:@"ap-southeast-5"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintAPSoutheast5);
}
if ([value caseInsensitiveCompare:@"ap-southeast-7"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintAPSoutheast7);
}
if ([value caseInsensitiveCompare:@"ca-central-1"] == NSOrderedSame) {
return @(AWSS3BucketLocationConstraintCACentral1);
}
Expand Down Expand Up @@ -2947,6 +2955,8 @@ + (NSValueTransformer *)locationConstraintJSONTransformer {
return @"ap-southeast-4";
case AWSS3BucketLocationConstraintAPSoutheast5:
return @"ap-southeast-5";
case AWSS3BucketLocationConstraintAPSoutheast7:
return @"ap-southeast-7";
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 @@ -1376,6 +1376,7 @@ - (NSString *)definitionString {
\"ap-southeast-3\",\
\"ap-southeast-4\",\
\"ap-southeast-5\",\
\"ap-southeast-7\",\
\"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-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)

## 2.38.2

Expand Down

0 comments on commit b4ea619

Please sign in to comment.