File tree Expand file tree Collapse file tree 4 files changed +12
-42
lines changed
src/Service/CognitoIdentityProvider Expand file tree Collapse file tree 4 files changed +12
-42
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"variables" : {
3
- "${LATEST}" : " 3.351.2 "
3
+ "${LATEST}" : " 3.351.3 "
4
4
},
5
5
"endpoints" : " https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json" ,
6
6
"services" : {
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: Rework regions configuration
8
+
5
9
## 1.14.0
6
10
7
11
### Added
Original file line number Diff line number Diff line change 28
28
},
29
29
"extra" : {
30
30
"branch-alias" : {
31
- "dev-master" : " 1.14 -dev"
31
+ "dev-master" : " 1.15 -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 ;
111
110
use AsyncAws \Core \RequestContext ;
112
111
use AsyncAws \Core \Result ;
113
112
@@ -2031,44 +2030,6 @@ protected function getEndpointMetadata(?string $region): array
2031
2030
}
2032
2031
2033
2032
switch ($ region ) {
2034
- case 'af-south-1 ' :
2035
- case 'ap-east-1 ' :
2036
- case 'ap-northeast-1 ' :
2037
- case 'ap-northeast-2 ' :
2038
- case 'ap-northeast-3 ' :
2039
- case 'ap-south-1 ' :
2040
- case 'ap-south-2 ' :
2041
- case 'ap-southeast-1 ' :
2042
- case 'ap-southeast-2 ' :
2043
- case 'ap-southeast-3 ' :
2044
- case 'ap-southeast-4 ' :
2045
- case 'ap-southeast-5 ' :
2046
- case 'ca-central-1 ' :
2047
- case 'ca-west-1 ' :
2048
- case 'eu-central-1 ' :
2049
- case 'eu-central-2 ' :
2050
- case 'eu-north-1 ' :
2051
- case 'eu-south-1 ' :
2052
- case 'eu-south-2 ' :
2053
- case 'eu-west-1 ' :
2054
- case 'eu-west-2 ' :
2055
- case 'eu-west-3 ' :
2056
- case 'il-central-1 ' :
2057
- case 'me-central-1 ' :
2058
- case 'me-south-1 ' :
2059
- case 'sa-east-1 ' :
2060
- case 'us-east-1 ' :
2061
- case 'us-east-2 ' :
2062
- case 'us-gov-east-1 ' :
2063
- case 'us-gov-west-1 ' :
2064
- case 'us-west-1 ' :
2065
- case 'us-west-2 ' :
2066
- return [
2067
- 'endpoint ' => "https://cognito-idp. $ region.amazonaws.com " ,
2068
- 'signRegion ' => $ region ,
2069
- 'signService ' => 'cognito-idp ' ,
2070
- 'signVersions ' => ['v4 ' ],
2071
- ];
2072
2033
case 'fips-us-east-1 ' :
2073
2034
return [
2074
2035
'endpoint ' => 'https://cognito-idp-fips.us-east-1.amazonaws.com ' ,
@@ -2106,6 +2067,11 @@ protected function getEndpointMetadata(?string $region): array
2106
2067
];
2107
2068
}
2108
2069
2109
- throw new UnsupportedRegion (\sprintf ('The region "%s" is not supported by "CognitoIdentityProvider". ' , $ region ));
2070
+ return [
2071
+ 'endpoint ' => "https://cognito-idp. $ region.amazonaws.com " ,
2072
+ 'signRegion ' => $ region ,
2073
+ 'signService ' => 'cognito-idp ' ,
2074
+ 'signVersions ' => ['v4 ' ],
2075
+ ];
2110
2076
}
2111
2077
}
You can’t perform that action at this time.
0 commit comments