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
## 1.10.0
6
10
7
11
### Added
Original file line number Diff line number Diff line change 29
29
},
30
30
"extra" : {
31
31
"branch-alias" : {
32
- "dev-master" : " 1.10 -dev"
32
+ "dev-master" : " 1.11 -dev"
33
33
}
34
34
}
35
35
}
Original file line number Diff line number Diff line change 6
6
use AsyncAws \Core \AwsError \AwsErrorFactoryInterface ;
7
7
use AsyncAws \Core \AwsError \JsonRpcAwsErrorFactory ;
8
8
use AsyncAws \Core \Configuration ;
9
- use AsyncAws \Core \Exception \UnsupportedRegion ;
10
9
use AsyncAws \Core \RequestContext ;
11
10
use AsyncAws \Ecr \Exception \InvalidParameterException ;
12
11
use AsyncAws \Ecr \Exception \ServerException ;
@@ -60,46 +59,6 @@ protected function getEndpointMetadata(?string $region): array
60
59
}
61
60
62
61
switch ($ region ) {
63
- case 'af-south-1 ' :
64
- case 'ap-east-1 ' :
65
- case 'ap-northeast-1 ' :
66
- case 'ap-northeast-2 ' :
67
- case 'ap-northeast-3 ' :
68
- case 'ap-south-1 ' :
69
- case 'ap-south-2 ' :
70
- case 'ap-southeast-1 ' :
71
- case 'ap-southeast-2 ' :
72
- case 'ap-southeast-3 ' :
73
- case 'ap-southeast-4 ' :
74
- case 'ap-southeast-5 ' :
75
- case 'ap-southeast-7 ' :
76
- case 'ca-central-1 ' :
77
- case 'ca-west-1 ' :
78
- case 'eu-central-1 ' :
79
- case 'eu-central-2 ' :
80
- case 'eu-north-1 ' :
81
- case 'eu-south-1 ' :
82
- case 'eu-south-2 ' :
83
- case 'eu-west-1 ' :
84
- case 'eu-west-2 ' :
85
- case 'eu-west-3 ' :
86
- case 'il-central-1 ' :
87
- case 'me-central-1 ' :
88
- case 'me-south-1 ' :
89
- case 'mx-central-1 ' :
90
- case 'sa-east-1 ' :
91
- case 'us-east-1 ' :
92
- case 'us-east-2 ' :
93
- case 'us-gov-east-1 ' :
94
- case 'us-gov-west-1 ' :
95
- case 'us-west-1 ' :
96
- case 'us-west-2 ' :
97
- return [
98
- 'endpoint ' => "https://api.ecr. $ region.amazonaws.com " ,
99
- 'signRegion ' => $ region ,
100
- 'signService ' => 'ecr ' ,
101
- 'signVersions ' => ['v4 ' ],
102
- ];
103
62
case 'cn-north-1 ' :
104
63
case 'cn-northwest-1 ' :
105
64
return [
@@ -230,6 +189,11 @@ protected function getEndpointMetadata(?string $region): array
230
189
];
231
190
}
232
191
233
- throw new UnsupportedRegion (\sprintf ('The region "%s" is not supported by "Ecr". ' , $ region ));
192
+ return [
193
+ 'endpoint ' => "https://api.ecr. $ region.amazonaws.com " ,
194
+ 'signRegion ' => $ region ,
195
+ 'signService ' => 'ecr ' ,
196
+ 'signVersions ' => ['v4 ' ],
197
+ ];
234
198
}
235
199
}
You can’t perform that action at this time.
0 commit comments