Skip to content

Commit 9c81634

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 ceb049b commit 9c81634

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
## 1.5.0
1011

src/LambdaClient.php

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -374,14 +374,6 @@ protected function getEndpointMetadata(?string $region): array
374374
'signService' => 'lambda',
375375
'signVersions' => ['v4'],
376376
];
377-
case 'us-gov-east-1':
378-
case 'us-gov-west-1':
379-
return [
380-
'endpoint' => "https://lambda.$region.amazonaws.com",
381-
'signRegion' => $region,
382-
'signService' => 'lambda',
383-
'signVersions' => ['v4'],
384-
];
385377
case 'us-iso-east-1':
386378
case 'us-iso-west-1':
387379
return [
@@ -439,6 +431,48 @@ protected function getEndpointMetadata(?string $region): array
439431
'signService' => 'lambda',
440432
'signVersions' => ['v4'],
441433
];
434+
case 'us-east-1':
435+
return [
436+
'endpoint' => 'https://lambda.us-east-1.amazonaws.com',
437+
'signRegion' => 'us-east-1',
438+
'signService' => 'lambda',
439+
'signVersions' => ['v4'],
440+
];
441+
case 'us-east-2':
442+
return [
443+
'endpoint' => 'https://lambda.us-east-2.amazonaws.com',
444+
'signRegion' => 'us-east-2',
445+
'signService' => 'lambda',
446+
'signVersions' => ['v4'],
447+
];
448+
case 'us-gov-east-1':
449+
return [
450+
'endpoint' => 'https://lambda.us-gov-east-1.amazonaws.com',
451+
'signRegion' => 'us-gov-east-1',
452+
'signService' => 'lambda',
453+
'signVersions' => ['v4'],
454+
];
455+
case 'us-gov-west-1':
456+
return [
457+
'endpoint' => 'https://lambda.us-gov-west-1.amazonaws.com',
458+
'signRegion' => 'us-gov-west-1',
459+
'signService' => 'lambda',
460+
'signVersions' => ['v4'],
461+
];
462+
case 'us-west-1':
463+
return [
464+
'endpoint' => 'https://lambda.us-west-1.amazonaws.com',
465+
'signRegion' => 'us-west-1',
466+
'signService' => 'lambda',
467+
'signVersions' => ['v4'],
468+
];
469+
case 'us-west-2':
470+
return [
471+
'endpoint' => 'https://lambda.us-west-2.amazonaws.com',
472+
'signRegion' => 'us-west-2',
473+
'signService' => 'lambda',
474+
'signVersions' => ['v4'],
475+
];
442476
}
443477

444478
return [

0 commit comments

Comments
 (0)