Skip to content

Commit 08757cf

Browse files
Update generated code (#1289)
* update generated code * Apply suggestions from code review Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
1 parent 1087aa8 commit 08757cf

File tree

2 files changed

+7
-32
lines changed

2 files changed

+7
-32
lines changed

CHANGELOG.md

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

77
- AWS api-change: Adds support for increased ephemeral storage (/tmp) up to 10GB for Lambda functions. Customers can now provision up to 10 GB of ephemeral storage per function instance, a 20x increase over the previous limit of 512 MB.
88
- AWS api-change: Added NodeJs 16 managed runtime
9+
- Lambda is available in all commercial regions
910

1011
## 1.6.0
1112

src/LambdaClient.php

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
77
use AsyncAws\Core\AwsError\JsonRestAwsErrorFactory;
88
use AsyncAws\Core\Configuration;
9-
use AsyncAws\Core\Exception\UnsupportedRegion;
109
use AsyncAws\Core\RequestContext;
1110
use AsyncAws\Core\Result;
1211
use AsyncAws\Lambda\Enum\Architecture;
@@ -367,36 +366,6 @@ protected function getEndpointMetadata(?string $region): array
367366
}
368367

369368
switch ($region) {
370-
case 'af-south-1':
371-
case 'ap-east-1':
372-
case 'ap-northeast-1':
373-
case 'ap-northeast-2':
374-
case 'ap-northeast-3':
375-
case 'ap-south-1':
376-
case 'ap-southeast-1':
377-
case 'ap-southeast-2':
378-
case 'ap-southeast-3':
379-
case 'ca-central-1':
380-
case 'eu-central-1':
381-
case 'eu-north-1':
382-
case 'eu-south-1':
383-
case 'eu-west-1':
384-
case 'eu-west-2':
385-
case 'eu-west-3':
386-
case 'me-south-1':
387-
case 'sa-east-1':
388-
case 'us-east-1':
389-
case 'us-east-2':
390-
case 'us-gov-east-1':
391-
case 'us-gov-west-1':
392-
case 'us-west-1':
393-
case 'us-west-2':
394-
return [
395-
'endpoint' => "https://lambda.$region.amazonaws.com",
396-
'signRegion' => $region,
397-
'signService' => 'lambda',
398-
'signVersions' => ['v4'],
399-
];
400369
case 'cn-north-1':
401370
case 'cn-northwest-1':
402371
return [
@@ -464,6 +433,11 @@ protected function getEndpointMetadata(?string $region): array
464433
];
465434
}
466435

467-
throw new UnsupportedRegion(sprintf('The region "%s" is not supported by "Lambda".', $region));
436+
return [
437+
'endpoint' => "https://lambda.$region.amazonaws.com",
438+
'signRegion' => $region,
439+
'signService' => 'lambda',
440+
'signVersions' => ['v4'],
441+
];
468442
}
469443
}

0 commit comments

Comments
 (0)