Skip to content

Commit 9394af9

Browse files
committed
update generated code
1 parent 6040fad commit 9394af9

File tree

3 files changed

+31
-7
lines changed

3 files changed

+31
-7
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.336.2"
3+
"${LATEST}": "3.336.3"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/MediaConvert/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: This release adds support for inserting timecode tracks into MP4 container outputs.
8+
- AWS api-change: TODO
89

910
## 1.4.1
1011

src/Service/MediaConvert/src/MediaConvertClient.php

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
77
use AsyncAws\Core\AwsError\JsonRestAwsErrorFactory;
88
use AsyncAws\Core\Configuration;
9+
use AsyncAws\Core\Exception\UnsupportedRegion;
910
use AsyncAws\Core\RequestContext;
1011
use AsyncAws\MediaConvert\Enum\BillingTagsSource;
1112
use AsyncAws\MediaConvert\Enum\DescribeEndpointsMode;
@@ -239,6 +240,32 @@ protected function getEndpointMetadata(?string $region): array
239240
}
240241

241242
switch ($region) {
243+
case 'af-south-1':
244+
case 'ap-northeast-1':
245+
case 'ap-northeast-2':
246+
case 'ap-northeast-3':
247+
case 'ap-south-1':
248+
case 'ap-southeast-1':
249+
case 'ap-southeast-2':
250+
case 'ap-southeast-4':
251+
case 'ca-central-1':
252+
case 'eu-central-1':
253+
case 'eu-north-1':
254+
case 'eu-west-1':
255+
case 'eu-west-2':
256+
case 'eu-west-3':
257+
case 'me-central-1':
258+
case 'sa-east-1':
259+
case 'us-east-1':
260+
case 'us-east-2':
261+
case 'us-west-1':
262+
case 'us-west-2':
263+
return [
264+
'endpoint' => "https://mediaconvert.$region.amazonaws.com",
265+
'signRegion' => $region,
266+
'signService' => 'mediaconvert',
267+
'signVersions' => ['v4'],
268+
];
242269
case 'cn-northwest-1':
243270
return [
244271
'endpoint' => 'https://mediaconvert.cn-northwest-1.amazonaws.com.cn',
@@ -282,6 +309,7 @@ protected function getEndpointMetadata(?string $region): array
282309
'signVersions' => ['v4'],
283310
];
284311
case 'fips-us-gov-west-1':
312+
case 'us-gov-west-1':
285313
return [
286314
'endpoint' => 'https://mediaconvert.us-gov-west-1.amazonaws.com',
287315
'signRegion' => 'us-gov-west-1',
@@ -290,11 +318,6 @@ protected function getEndpointMetadata(?string $region): array
290318
];
291319
}
292320

293-
return [
294-
'endpoint' => "https://mediaconvert.$region.amazonaws.com",
295-
'signRegion' => $region,
296-
'signService' => 'mediaconvert',
297-
'signVersions' => ['v4'],
298-
];
321+
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "MediaConvert".', $region));
299322
}
300323
}

0 commit comments

Comments
 (0)