Skip to content

Commit f624f9d

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

File tree

2 files changed

+43
-8
lines changed

2 files changed

+43
-8
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: Added `us-iso-west-1` region
8+
- AWS api-change: Use specific configuration for `us` regions
89

910
## 0.1.1
1011

src/StepFunctionsClient.php

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,6 @@ protected function getEndpointMetadata(?string $region): array
185185
'signService' => 'states',
186186
'signVersions' => ['v4'],
187187
];
188-
case 'us-gov-east-1':
189-
case 'us-gov-west-1':
190-
return [
191-
'endpoint' => "https://states.$region.amazonaws.com",
192-
'signRegion' => $region,
193-
'signService' => 'states',
194-
'signVersions' => ['v4'],
195-
];
196188
case 'us-iso-east-1':
197189
case 'us-iso-west-1':
198190
return [
@@ -250,6 +242,48 @@ protected function getEndpointMetadata(?string $region): array
250242
'signService' => 'states',
251243
'signVersions' => ['v4'],
252244
];
245+
case 'us-east-1':
246+
return [
247+
'endpoint' => 'https://states.us-east-1.amazonaws.com',
248+
'signRegion' => 'us-east-1',
249+
'signService' => 'states',
250+
'signVersions' => ['v4'],
251+
];
252+
case 'us-east-2':
253+
return [
254+
'endpoint' => 'https://states.us-east-2.amazonaws.com',
255+
'signRegion' => 'us-east-2',
256+
'signService' => 'states',
257+
'signVersions' => ['v4'],
258+
];
259+
case 'us-gov-east-1':
260+
return [
261+
'endpoint' => 'https://states.us-gov-east-1.amazonaws.com',
262+
'signRegion' => 'us-gov-east-1',
263+
'signService' => 'states',
264+
'signVersions' => ['v4'],
265+
];
266+
case 'us-gov-west-1':
267+
return [
268+
'endpoint' => 'https://states.us-gov-west-1.amazonaws.com',
269+
'signRegion' => 'us-gov-west-1',
270+
'signService' => 'states',
271+
'signVersions' => ['v4'],
272+
];
273+
case 'us-west-1':
274+
return [
275+
'endpoint' => 'https://states.us-west-1.amazonaws.com',
276+
'signRegion' => 'us-west-1',
277+
'signService' => 'states',
278+
'signVersions' => ['v4'],
279+
];
280+
case 'us-west-2':
281+
return [
282+
'endpoint' => 'https://states.us-west-2.amazonaws.com',
283+
'signRegion' => 'us-west-2',
284+
'signService' => 'states',
285+
'signVersions' => ['v4'],
286+
];
253287
}
254288

255289
return [

0 commit comments

Comments
 (0)