File tree Expand file tree Collapse file tree 3 files changed +43
-7
lines changed Expand file tree Collapse file tree 3 files changed +43
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## NOT RELEASED
4
4
5
+ ### Added
6
+
7
+ - AWS api-change: use explicit defined regions
8
+
5
9
### Changed
6
10
7
11
- AWS enhancement: Documentation updates.
Original file line number Diff line number Diff line change 28
28
},
29
29
"extra" : {
30
30
"branch-alias" : {
31
- "dev-master" : " 1.10 -dev"
31
+ "dev-master" : " 1.11 -dev"
32
32
}
33
33
}
34
34
}
Original file line number Diff line number Diff line change 107
107
use AsyncAws \Core \AwsError \AwsErrorFactoryInterface ;
108
108
use AsyncAws \Core \AwsError \JsonRpcAwsErrorFactory ;
109
109
use AsyncAws \Core \Configuration ;
110
+ use AsyncAws \Core \Exception \UnsupportedRegion ;
110
111
use AsyncAws \Core \RequestContext ;
111
112
use AsyncAws \Core \Result ;
112
113
@@ -2064,6 +2065,42 @@ protected function getEndpointMetadata(?string $region): array
2064
2065
}
2065
2066
2066
2067
switch ($ region ) {
2068
+ case 'af-south-1 ' :
2069
+ case 'ap-east-1 ' :
2070
+ case 'ap-northeast-1 ' :
2071
+ case 'ap-northeast-2 ' :
2072
+ case 'ap-northeast-3 ' :
2073
+ case 'ap-south-1 ' :
2074
+ case 'ap-south-2 ' :
2075
+ case 'ap-southeast-1 ' :
2076
+ case 'ap-southeast-2 ' :
2077
+ case 'ap-southeast-3 ' :
2078
+ case 'ap-southeast-4 ' :
2079
+ case 'ca-central-1 ' :
2080
+ case 'ca-west-1 ' :
2081
+ case 'eu-central-1 ' :
2082
+ case 'eu-central-2 ' :
2083
+ case 'eu-north-1 ' :
2084
+ case 'eu-south-1 ' :
2085
+ case 'eu-south-2 ' :
2086
+ case 'eu-west-1 ' :
2087
+ case 'eu-west-2 ' :
2088
+ case 'eu-west-3 ' :
2089
+ case 'il-central-1 ' :
2090
+ case 'me-central-1 ' :
2091
+ case 'me-south-1 ' :
2092
+ case 'sa-east-1 ' :
2093
+ case 'us-east-1 ' :
2094
+ case 'us-east-2 ' :
2095
+ case 'us-gov-west-1 ' :
2096
+ case 'us-west-1 ' :
2097
+ case 'us-west-2 ' :
2098
+ return [
2099
+ 'endpoint ' => "https://cognito-idp. $ region.amazonaws.com " ,
2100
+ 'signRegion ' => $ region ,
2101
+ 'signService ' => 'cognito-idp ' ,
2102
+ 'signVersions ' => ['v4 ' ],
2103
+ ];
2067
2104
case 'fips-us-east-1 ' :
2068
2105
return [
2069
2106
'endpoint ' => 'https://cognito-idp-fips.us-east-1.amazonaws.com ' ,
@@ -2101,11 +2138,6 @@ protected function getEndpointMetadata(?string $region): array
2101
2138
];
2102
2139
}
2103
2140
2104
- return [
2105
- 'endpoint ' => "https://cognito-idp. $ region.amazonaws.com " ,
2106
- 'signRegion ' => $ region ,
2107
- 'signService ' => 'cognito-idp ' ,
2108
- 'signVersions ' => ['v4 ' ],
2109
- ];
2141
+ throw new UnsupportedRegion (\sprintf ('The region "%s" is not supported by "CognitoIdentityProvider". ' , $ region ));
2110
2142
}
2111
2143
}
You can’t perform that action at this time.
0 commit comments