diff --git a/AWSCore/Service/AWSService.m b/AWSCore/Service/AWSService.m index 7bcb337e520..70d867cdd2b 100644 --- a/AWSCore/Service/AWSService.m +++ b/AWSCore/Service/AWSService.m @@ -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"; @@ -481,6 +482,8 @@ + (NSString *)regionNameFromType:(AWSRegionType)regionType { return AWSRegionNameAPSoutheast4; case AWSRegionAPSoutheast5: return AWSRegionNameAPSoutheast5; + case AWSRegionAPSoutheast7: + return AWSRegionNameAPSoutheast7; case AWSRegionAPNortheast1: return AWSRegionNameAPNortheast1; case AWSRegionAPNortheast2: diff --git a/AWSCore/Service/AWSServiceEnum.h b/AWSCore/Service/AWSServiceEnum.h index 074bd42f16c..5c89053ad29 100644 --- a/AWSCore/Service/AWSServiceEnum.h +++ b/AWSCore/Service/AWSServiceEnum.h @@ -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) */ diff --git a/AWSCore/Utility/AWSCategory.m b/AWSCore/Utility/AWSCategory.m index 8cd95235906..2b6f12586e2 100644 --- a/AWSCore/Utility/AWSCategory.m +++ b/AWSCore/Utility/AWSCategory.m @@ -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"]) { diff --git a/AWSS3/AWSS3Model.h b/AWSS3/AWSS3Model.h index e2a6bf9fd1d..75ec62e0ee3 100644 --- a/AWSS3/AWSS3Model.h +++ b/AWSS3/AWSS3Model.h @@ -71,6 +71,7 @@ typedef NS_ENUM(NSInteger, AWSS3BucketLocationConstraint) { AWSS3BucketLocationConstraintAPSoutheast3, AWSS3BucketLocationConstraintAPSoutheast4, AWSS3BucketLocationConstraintAPSoutheast5, + AWSS3BucketLocationConstraintAPSoutheast7, AWSS3BucketLocationConstraintCACentral1, AWSS3BucketLocationConstraintCAWest1, AWSS3BucketLocationConstraintCNNorth1, diff --git a/AWSS3/AWSS3Model.m b/AWSS3/AWSS3Model.m index 72d3721ce7d..341f7f6b9bd 100644 --- a/AWSS3/AWSS3Model.m +++ b/AWSS3/AWSS3Model.m @@ -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); } @@ -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: @@ -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); } @@ -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: diff --git a/AWSS3/AWSS3Resources.m b/AWSS3/AWSS3Resources.m index d515ed81e0c..3d816d2e6d0 100644 --- a/AWSS3/AWSS3Resources.m +++ b/AWSS3/AWSS3Resources.m @@ -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\",\ diff --git a/CHANGELOG.md b/CHANGELOG.md index 3225ad23cc0..0e948bc2552 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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