Skip to content

Commit abe22e9

Browse files
Update generated code (#1866)
* update generated code * Apply suggestions from code review --------- Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
1 parent 2faf4e5 commit abe22e9

File tree

2 files changed

+41
-9
lines changed

2 files changed

+41
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- AWS api-change: rewrite declaration of regions
8+
- AWS api-change: Rework regions configuration.
89

910
## 2.4.0
1011

src/SqsClient.php

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,6 @@ protected function getEndpointMetadata(?string $region): array
921921
case 'sa-east-1':
922922
case 'us-east-1':
923923
case 'us-east-2':
924-
case 'us-gov-east-1':
925-
case 'us-gov-west-1':
926924
case 'us-west-1':
927925
case 'us-west-2':
928926
return [
@@ -981,29 +979,62 @@ protected function getEndpointMetadata(?string $region): array
981979
'signService' => 'sqs',
982980
'signVersions' => ['v4'],
983981
];
982+
case 'fips-us-gov-east-1':
983+
case 'us-gov-east-1':
984+
return [
985+
'endpoint' => 'https://sqs.us-gov-east-1.amazonaws.com',
986+
'signRegion' => 'us-gov-east-1',
987+
'signService' => 'sqs',
988+
'signVersions' => ['v4'],
989+
];
990+
case 'fips-us-gov-west-1':
991+
case 'us-gov-west-1':
992+
return [
993+
'endpoint' => 'https://sqs.us-gov-west-1.amazonaws.com',
994+
'signRegion' => 'us-gov-west-1',
995+
'signService' => 'sqs',
996+
'signVersions' => ['v4'],
997+
];
998+
case 'fips-us-iso-east-1':
984999
case 'us-iso-east-1':
985-
case 'us-iso-west-1':
9861000
return [
987-
'endpoint' => "https://sqs.$region.c2s.ic.gov",
988-
'signRegion' => $region,
1001+
'endpoint' => 'https://sqs.us-iso-east-1.c2s.ic.gov',
1002+
'signRegion' => 'us-iso-east-1',
9891003
'signService' => 'sqs',
9901004
'signVersions' => ['v4'],
9911005
];
992-
case 'us-isof-east-1':
993-
case 'us-isof-south-1':
1006+
case 'fips-us-iso-west-1':
1007+
case 'us-iso-west-1':
9941008
return [
995-
'endpoint' => "https://sqs.$region.csp.hci.ic.gov",
996-
'signRegion' => $region,
1009+
'endpoint' => 'https://sqs.us-iso-west-1.c2s.ic.gov',
1010+
'signRegion' => 'us-iso-west-1',
9971011
'signService' => 'sqs',
9981012
'signVersions' => ['v4'],
9991013
];
1014+
case 'fips-us-isob-east-1':
10001015
case 'us-isob-east-1':
10011016
return [
10021017
'endpoint' => 'https://sqs.us-isob-east-1.sc2s.sgov.gov',
10031018
'signRegion' => 'us-isob-east-1',
10041019
'signService' => 'sqs',
10051020
'signVersions' => ['v4'],
10061021
];
1022+
case 'fips-us-isof-east-1':
1023+
case 'us-isof-east-1':
1024+
return [
1025+
'endpoint' => 'https://sqs.us-isof-east-1.csp.hci.ic.gov',
1026+
'signRegion' => 'us-isof-east-1',
1027+
'signService' => 'sqs',
1028+
'signVersions' => ['v4'],
1029+
];
1030+
case 'fips-us-isof-south-1':
1031+
case 'us-isof-south-1':
1032+
return [
1033+
'endpoint' => 'https://sqs.us-isof-south-1.csp.hci.ic.gov',
1034+
'signRegion' => 'us-isof-south-1',
1035+
'signService' => 'sqs',
1036+
'signVersions' => ['v4'],
1037+
];
10071038
}
10081039

10091040
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Sqs".', $region));

0 commit comments

Comments
 (0)