Skip to content

Commit d867569

Browse files
Update generated code (#1920)
* update generated code * Apply suggestion from @jderusse --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent 2a80053 commit d867569

File tree

4 files changed

+12
-42
lines changed

4 files changed

+12
-42
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

src/Service/CognitoIdentityProvider/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Rework regions configuration
8+
59
## 1.14.0
610

711
### Added

src/Service/CognitoIdentityProvider/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.14-dev"
31+
"dev-master": "1.15-dev"
3232
}
3333
}
3434
}

src/Service/CognitoIdentityProvider/src/CognitoIdentityProviderClient.php

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
108108
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
109109
use AsyncAws\Core\Configuration;
110-
use AsyncAws\Core\Exception\UnsupportedRegion;
111110
use AsyncAws\Core\RequestContext;
112111
use 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
}

0 commit comments

Comments
 (0)