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 11{
22 "variables" : {
3- "${LATEST}" : " 3.351.2 "
3+ "${LATEST}" : " 3.351.3 "
44 },
55 "endpoints" : " https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json" ,
66 "services" : {
Original file line number Diff line number Diff line change 22
33## NOT RELEASED
44
5+ ### Added
6+
7+ - AWS api-change: Rework regions configuration
8+
59## 1.14.0
610
711### Added
Original file line number Diff line number Diff line change 2828 },
2929 "extra" : {
3030 "branch-alias" : {
31- "dev-master" : " 1.14 -dev"
31+ "dev-master" : " 1.15 -dev"
3232 }
3333 }
3434}
Original file line number Diff line number Diff line change 107107use AsyncAws \Core \AwsError \AwsErrorFactoryInterface ;
108108use AsyncAws \Core \AwsError \JsonRpcAwsErrorFactory ;
109109use AsyncAws \Core \Configuration ;
110- use AsyncAws \Core \Exception \UnsupportedRegion ;
111110use AsyncAws \Core \RequestContext ;
112111use AsyncAws \Core \Result ;
113112
@@ -2031,44 +2030,6 @@ protected function getEndpointMetadata(?string $region): array
20312030 }
20322031
20332032 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- ];
20722033 case 'fips-us-east-1 ' :
20732034 return [
20742035 'endpoint ' => 'https://cognito-idp-fips.us-east-1.amazonaws.com ' ,
@@ -2106,6 +2067,11 @@ protected function getEndpointMetadata(?string $region): array
21062067 ];
21072068 }
21082069
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+ ];
21102076 }
21112077}
You can’t perform that action at this time.
0 commit comments