Skip to content

Commit 07fe4fa

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

File tree

9 files changed

+93
-21
lines changed

9 files changed

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

src/Service/CloudFormation/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+
### Changed
6+
7+
- AWS enhancement: Documentation updates.
8+
59
## 1.8.0
610

711
### Added

src/Service/CloudFormation/src/Input/DescribeStackEventsInput.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ final class DescribeStackEventsInput extends Input
1717
* - Running stacks: You can specify either the stack's name or its unique stack ID.
1818
* - Deleted stacks: You must specify the unique stack ID.
1919
*
20-
* Default: There is no default value.
21-
*
2220
* @var string|null
2321
*/
2422
private $stackName;

src/Service/CloudFormation/src/Input/DescribeStacksInput.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ final class DescribeStacksInput extends Input
2828
* - Running stacks: You can specify either the stack's name or its unique stack ID.
2929
* - Deleted stacks: You must specify the unique stack ID.
3030
*
31-
* Default: There is no default value.
32-
*
3331
* @var string|null
3432
*/
3533
private $stackName;

src/Service/EventBridge/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.6.0
610

711
### Added

src/Service/EventBridge/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"extra": {
2929
"branch-alias": {
30-
"dev-master": "1.6-dev"
30+
"dev-master": "1.7-dev"
3131
}
3232
}
3333
}

src/Service/EventBridge/src/EventBridgeClient.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\EventBridge\Exception\InternalException;
1112
use AsyncAws\EventBridge\Input\PutEventsRequest;
@@ -61,6 +62,44 @@ protected function getEndpointMetadata(?string $region): array
6162
}
6263

6364
switch ($region) {
65+
case 'af-south-1':
66+
case 'ap-east-1':
67+
case 'ap-northeast-1':
68+
case 'ap-northeast-2':
69+
case 'ap-northeast-3':
70+
case 'ap-south-1':
71+
case 'ap-south-2':
72+
case 'ap-southeast-1':
73+
case 'ap-southeast-2':
74+
case 'ap-southeast-3':
75+
case 'ap-southeast-4':
76+
case 'ap-southeast-5':
77+
case 'ap-southeast-7':
78+
case 'ca-central-1':
79+
case 'ca-west-1':
80+
case 'eu-central-1':
81+
case 'eu-central-2':
82+
case 'eu-north-1':
83+
case 'eu-south-1':
84+
case 'eu-south-2':
85+
case 'eu-west-1':
86+
case 'eu-west-2':
87+
case 'eu-west-3':
88+
case 'il-central-1':
89+
case 'me-central-1':
90+
case 'me-south-1':
91+
case 'mx-central-1':
92+
case 'sa-east-1':
93+
case 'us-east-1':
94+
case 'us-east-2':
95+
case 'us-west-1':
96+
case 'us-west-2':
97+
return [
98+
'endpoint' => "https://events.$region.amazonaws.com",
99+
'signRegion' => $region,
100+
'signService' => 'events',
101+
'signVersions' => ['v4'],
102+
];
64103
case 'cn-north-1':
65104
case 'cn-northwest-1':
66105
return [
@@ -98,13 +137,15 @@ protected function getEndpointMetadata(?string $region): array
98137
'signVersions' => ['v4'],
99138
];
100139
case 'fips-us-gov-east-1':
140+
case 'us-gov-east-1':
101141
return [
102142
'endpoint' => 'https://events.us-gov-east-1.amazonaws.com',
103143
'signRegion' => 'us-gov-east-1',
104144
'signService' => 'events',
105145
'signVersions' => ['v4'],
106146
];
107147
case 'fips-us-gov-west-1':
148+
case 'us-gov-west-1':
108149
return [
109150
'endpoint' => 'https://events.us-gov-west-1.amazonaws.com',
110151
'signRegion' => 'us-gov-west-1',
@@ -136,11 +177,6 @@ protected function getEndpointMetadata(?string $region): array
136177
];
137178
}
138179

139-
return [
140-
'endpoint' => "https://events.$region.amazonaws.com",
141-
'signRegion' => $region,
142-
'signService' => 'events',
143-
'signVersions' => ['v4'],
144-
];
180+
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "EventBridge".', $region));
145181
}
146182
}

src/Service/Sqs/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/Service/Sqs/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)