File tree Expand file tree Collapse file tree 3 files changed +11
-43
lines changed Expand file tree Collapse file tree 3 files changed +11
-43
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## NOT RELEASED
4
4
5
+ ### Added
6
+
7
+ - AWS api-change: Rework regions configuration
8
+
5
9
## 2.11.0
6
10
7
11
### Added
Original file line number Diff line number Diff line change 28
28
},
29
29
"extra" : {
30
30
"branch-alias" : {
31
- "dev-master" : " 2.11 -dev"
31
+ "dev-master" : " 2.12 -dev"
32
32
}
33
33
}
34
34
}
Original file line number Diff line number Diff line change 6
6
use AsyncAws \Core \AwsError \AwsErrorFactoryInterface ;
7
7
use AsyncAws \Core \AwsError \JsonRestAwsErrorFactory ;
8
8
use AsyncAws \Core \Configuration ;
9
- use AsyncAws \Core \Exception \UnsupportedRegion ;
10
9
use AsyncAws \Core \RequestContext ;
11
10
use AsyncAws \Core \Result ;
12
11
use AsyncAws \Lambda \Enum \Architecture ;
@@ -555,46 +554,6 @@ protected function getEndpointMetadata(?string $region): array
555
554
}
556
555
557
556
switch ($ region ) {
558
- case 'af-south-1 ' :
559
- case 'ap-east-1 ' :
560
- case 'ap-northeast-1 ' :
561
- case 'ap-northeast-2 ' :
562
- case 'ap-northeast-3 ' :
563
- case 'ap-south-1 ' :
564
- case 'ap-south-2 ' :
565
- case 'ap-southeast-1 ' :
566
- case 'ap-southeast-2 ' :
567
- case 'ap-southeast-3 ' :
568
- case 'ap-southeast-4 ' :
569
- case 'ap-southeast-5 ' :
570
- case 'ap-southeast-7 ' :
571
- case 'ca-central-1 ' :
572
- case 'ca-west-1 ' :
573
- case 'eu-central-1 ' :
574
- case 'eu-central-2 ' :
575
- case 'eu-north-1 ' :
576
- case 'eu-south-1 ' :
577
- case 'eu-south-2 ' :
578
- case 'eu-west-1 ' :
579
- case 'eu-west-2 ' :
580
- case 'eu-west-3 ' :
581
- case 'il-central-1 ' :
582
- case 'me-central-1 ' :
583
- case 'me-south-1 ' :
584
- case 'mx-central-1 ' :
585
- case 'sa-east-1 ' :
586
- case 'us-east-1 ' :
587
- case 'us-east-2 ' :
588
- case 'us-gov-east-1 ' :
589
- case 'us-gov-west-1 ' :
590
- case 'us-west-1 ' :
591
- case 'us-west-2 ' :
592
- return [
593
- 'endpoint ' => "https://lambda. $ region.amazonaws.com " ,
594
- 'signRegion ' => $ region ,
595
- 'signService ' => 'lambda ' ,
596
- 'signVersions ' => ['v4 ' ],
597
- ];
598
557
case 'cn-north-1 ' :
599
558
case 'cn-northwest-1 ' :
600
559
return [
@@ -677,6 +636,11 @@ protected function getEndpointMetadata(?string $region): array
677
636
];
678
637
}
679
638
680
- throw new UnsupportedRegion (\sprintf ('The region "%s" is not supported by "Lambda". ' , $ region ));
639
+ return [
640
+ 'endpoint ' => "https://lambda. $ region.amazonaws.com " ,
641
+ 'signRegion ' => $ region ,
642
+ 'signService ' => 'lambda ' ,
643
+ 'signVersions ' => ['v4 ' ],
644
+ ];
681
645
}
682
646
}
You can’t perform that action at this time.
0 commit comments