Skip to content

Commit 99dc438

Browse files
Update generated code (#1864)
* update generated code * Apply suggestions from code review --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent e35290a commit 99dc438

File tree

7 files changed

+54
-9
lines changed

7 files changed

+54
-9
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.342.12"
3+
"${LATEST}": "3.342.13"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/Sqs/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: rewrite declaration of regions
8+
59
## 2.4.0
610

711
### Added

src/Service/Sqs/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": "2.4-dev"
31+
"dev-master": "2.5-dev"
3232
}
3333
}
3434
}

src/Service/Sqs/src/SqsClient.php

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
77
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
88
use AsyncAws\Core\Configuration;
9+
use AsyncAws\Core\Exception\UnsupportedRegion;
910
use AsyncAws\Core\RequestContext;
1011
use AsyncAws\Core\Result;
1112
use AsyncAws\Sqs\Enum\MessageSystemAttributeName;
@@ -890,6 +891,46 @@ protected function getEndpointMetadata(?string $region): array
890891
}
891892

892893
switch ($region) {
894+
case 'af-south-1':
895+
case 'ap-east-1':
896+
case 'ap-northeast-1':
897+
case 'ap-northeast-2':
898+
case 'ap-northeast-3':
899+
case 'ap-south-1':
900+
case 'ap-south-2':
901+
case 'ap-southeast-1':
902+
case 'ap-southeast-2':
903+
case 'ap-southeast-3':
904+
case 'ap-southeast-4':
905+
case 'ap-southeast-5':
906+
case 'ap-southeast-7':
907+
case 'ca-central-1':
908+
case 'ca-west-1':
909+
case 'eu-central-1':
910+
case 'eu-central-2':
911+
case 'eu-north-1':
912+
case 'eu-south-1':
913+
case 'eu-south-2':
914+
case 'eu-west-1':
915+
case 'eu-west-2':
916+
case 'eu-west-3':
917+
case 'il-central-1':
918+
case 'me-central-1':
919+
case 'me-south-1':
920+
case 'mx-central-1':
921+
case 'sa-east-1':
922+
case 'us-east-1':
923+
case 'us-east-2':
924+
case 'us-gov-east-1':
925+
case 'us-gov-west-1':
926+
case 'us-west-1':
927+
case 'us-west-2':
928+
return [
929+
'endpoint' => "https://sqs.$region.amazonaws.com",
930+
'signRegion' => $region,
931+
'signService' => 'sqs',
932+
'signVersions' => ['v4'],
933+
];
893934
case 'cn-north-1':
894935
case 'cn-northwest-1':
895936
return [
@@ -965,12 +1006,7 @@ protected function getEndpointMetadata(?string $region): array
9651006
];
9661007
}
9671008

968-
return [
969-
'endpoint' => "https://sqs.$region.amazonaws.com",
970-
'signRegion' => $region,
971-
'signService' => 'sqs',
972-
'signVersions' => ['v4'],
973-
];
1009+
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Sqs".', $region));
9741010
}
9751011

9761012
protected function getServiceCode(): string

src/Service/Sso/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: added `ap-southeast-5` region
8+
59
## 1.3.0
610

711
### Added

src/Service/Sso/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"extra": {
2828
"branch-alias": {
29-
"dev-master": "1.3-dev"
29+
"dev-master": "1.4-dev"
3030
}
3131
}
3232
}

src/Service/Sso/src/SsoClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ protected function getEndpointMetadata(?string $region): array
7171
case 'ap-southeast-2':
7272
case 'ap-southeast-3':
7373
case 'ap-southeast-4':
74+
case 'ap-southeast-5':
7475
case 'ca-central-1':
7576
case 'ca-west-1':
7677
case 'eu-central-1':

0 commit comments

Comments
 (0)