Skip to content

Commit 88c2f63

Browse files
committed
update generated code
1 parent c656231 commit 88c2f63

File tree

12 files changed

+370
-5
lines changed

12 files changed

+370
-5
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.338.2"
3+
"${LATEST}": "3.339.0"
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: This release adds support for dynamic audio configuration and the ability to disable the deblocking filter for h265 encodes.
8+
59
## 1.5.0
610

711
### Added

src/Service/MediaConvert/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.5-dev"
31+
"dev-master": "1.6-dev"
3232
}
3333
}
3434
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace AsyncAws\MediaConvert\Enum;
4+
5+
/**
6+
* Specify which audio tracks to dynamically select from your source. To select all audio tracks: Keep the default
7+
* value, All tracks. To select all audio tracks with a specific language code: Choose Language code. When you do, you
8+
* must also specify a language code under the Language code setting. If there is no matching Language code in your
9+
* source, then no track will be selected.
10+
*/
11+
final class DynamicAudioSelectorType
12+
{
13+
public const ALL_TRACKS = 'ALL_TRACKS';
14+
public const LANGUAGE_CODE = 'LANGUAGE_CODE';
15+
16+
public static function exists(string $value): bool
17+
{
18+
return isset([
19+
self::ALL_TRACKS => true,
20+
self::LANGUAGE_CODE => true,
21+
][$value]);
22+
}
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace AsyncAws\MediaConvert\Enum;
4+
5+
/**
6+
* Use Deblocking to improve the video quality of your output by smoothing the edges of macroblock artifacts created
7+
* during video compression. To reduce blocking artifacts at block boundaries, and improve overall video quality: Keep
8+
* the default value, Enabled. To not apply any deblocking: Choose Disabled. Visible block edge artifacts might appear
9+
* in the output, especially at lower bitrates.
10+
*/
11+
final class H265Deblocking
12+
{
13+
public const DISABLED = 'DISABLED';
14+
public const ENABLED = 'ENABLED';
15+
16+
public static function exists(string $value): bool
17+
{
18+
return isset([
19+
self::DISABLED => true,
20+
self::ENABLED => true,
21+
][$value]);
22+
}
23+
}

src/Service/MediaConvert/src/Result/CreateJobResponse.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
use AsyncAws\MediaConvert\ValueObject\DvbSubDestinationSettings;
5959
use AsyncAws\MediaConvert\ValueObject\DvbSubSourceSettings;
6060
use AsyncAws\MediaConvert\ValueObject\DvbTdtSettings;
61+
use AsyncAws\MediaConvert\ValueObject\DynamicAudioSelector;
6162
use AsyncAws\MediaConvert\ValueObject\Eac3AtmosSettings;
6263
use AsyncAws\MediaConvert\ValueObject\Eac3Settings;
6364
use AsyncAws\MediaConvert\ValueObject\EmbeddedDestinationSettings;
@@ -851,6 +852,17 @@ private function populateResultDvbTdtSettings(array $json): DvbTdtSettings
851852
]);
852853
}
853854

855+
private function populateResultDynamicAudioSelector(array $json): DynamicAudioSelector
856+
{
857+
return new DynamicAudioSelector([
858+
'AudioDurationCorrection' => isset($json['audioDurationCorrection']) ? (string) $json['audioDurationCorrection'] : null,
859+
'ExternalAudioFileInput' => isset($json['externalAudioFileInput']) ? (string) $json['externalAudioFileInput'] : null,
860+
'LanguageCode' => isset($json['languageCode']) ? (string) $json['languageCode'] : null,
861+
'Offset' => isset($json['offset']) ? (int) $json['offset'] : null,
862+
'SelectorType' => isset($json['selectorType']) ? (string) $json['selectorType'] : null,
863+
]);
864+
}
865+
854866
private function populateResultEac3AtmosSettings(array $json): Eac3AtmosSettings
855867
{
856868
return new Eac3AtmosSettings([
@@ -1091,6 +1103,7 @@ private function populateResultH265Settings(array $json): H265Settings
10911103
'Bitrate' => isset($json['bitrate']) ? (int) $json['bitrate'] : null,
10921104
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
10931105
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
1106+
'Deblocking' => isset($json['deblocking']) ? (string) $json['deblocking'] : null,
10941107
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
10951108
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
10961109
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
@@ -1306,6 +1319,7 @@ private function populateResultInput(array $json): Input
13061319
'DecryptionSettings' => empty($json['decryptionSettings']) ? null : $this->populateResultInputDecryptionSettings($json['decryptionSettings']),
13071320
'DenoiseFilter' => isset($json['denoiseFilter']) ? (string) $json['denoiseFilter'] : null,
13081321
'DolbyVisionMetadataXml' => isset($json['dolbyVisionMetadataXml']) ? (string) $json['dolbyVisionMetadataXml'] : null,
1322+
'DynamicAudioSelectors' => !isset($json['dynamicAudioSelectors']) ? null : $this->populateResult__mapOfDynamicAudioSelector($json['dynamicAudioSelectors']),
13091323
'FileInput' => isset($json['fileInput']) ? (string) $json['fileInput'] : null,
13101324
'FilterEnable' => isset($json['filterEnable']) ? (string) $json['filterEnable'] : null,
13111325
'FilterStrength' => isset($json['filterStrength']) ? (int) $json['filterStrength'] : null,
@@ -2946,6 +2960,19 @@ private function populateResult__mapOfCaptionSelector(array $json): array
29462960
return $items;
29472961
}
29482962

2963+
/**
2964+
* @return array<string, DynamicAudioSelector>
2965+
*/
2966+
private function populateResult__mapOfDynamicAudioSelector(array $json): array
2967+
{
2968+
$items = [];
2969+
foreach ($json as $name => $value) {
2970+
$items[(string) $name] = $this->populateResultDynamicAudioSelector($value);
2971+
}
2972+
2973+
return $items;
2974+
}
2975+
29492976
/**
29502977
* @return array<string, string>
29512978
*/

src/Service/MediaConvert/src/Result/GetJobResponse.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
use AsyncAws\MediaConvert\ValueObject\DvbSubDestinationSettings;
5959
use AsyncAws\MediaConvert\ValueObject\DvbSubSourceSettings;
6060
use AsyncAws\MediaConvert\ValueObject\DvbTdtSettings;
61+
use AsyncAws\MediaConvert\ValueObject\DynamicAudioSelector;
6162
use AsyncAws\MediaConvert\ValueObject\Eac3AtmosSettings;
6263
use AsyncAws\MediaConvert\ValueObject\Eac3Settings;
6364
use AsyncAws\MediaConvert\ValueObject\EmbeddedDestinationSettings;
@@ -851,6 +852,17 @@ private function populateResultDvbTdtSettings(array $json): DvbTdtSettings
851852
]);
852853
}
853854

855+
private function populateResultDynamicAudioSelector(array $json): DynamicAudioSelector
856+
{
857+
return new DynamicAudioSelector([
858+
'AudioDurationCorrection' => isset($json['audioDurationCorrection']) ? (string) $json['audioDurationCorrection'] : null,
859+
'ExternalAudioFileInput' => isset($json['externalAudioFileInput']) ? (string) $json['externalAudioFileInput'] : null,
860+
'LanguageCode' => isset($json['languageCode']) ? (string) $json['languageCode'] : null,
861+
'Offset' => isset($json['offset']) ? (int) $json['offset'] : null,
862+
'SelectorType' => isset($json['selectorType']) ? (string) $json['selectorType'] : null,
863+
]);
864+
}
865+
854866
private function populateResultEac3AtmosSettings(array $json): Eac3AtmosSettings
855867
{
856868
return new Eac3AtmosSettings([
@@ -1091,6 +1103,7 @@ private function populateResultH265Settings(array $json): H265Settings
10911103
'Bitrate' => isset($json['bitrate']) ? (int) $json['bitrate'] : null,
10921104
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
10931105
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
1106+
'Deblocking' => isset($json['deblocking']) ? (string) $json['deblocking'] : null,
10941107
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
10951108
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
10961109
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
@@ -1306,6 +1319,7 @@ private function populateResultInput(array $json): Input
13061319
'DecryptionSettings' => empty($json['decryptionSettings']) ? null : $this->populateResultInputDecryptionSettings($json['decryptionSettings']),
13071320
'DenoiseFilter' => isset($json['denoiseFilter']) ? (string) $json['denoiseFilter'] : null,
13081321
'DolbyVisionMetadataXml' => isset($json['dolbyVisionMetadataXml']) ? (string) $json['dolbyVisionMetadataXml'] : null,
1322+
'DynamicAudioSelectors' => !isset($json['dynamicAudioSelectors']) ? null : $this->populateResult__mapOfDynamicAudioSelector($json['dynamicAudioSelectors']),
13091323
'FileInput' => isset($json['fileInput']) ? (string) $json['fileInput'] : null,
13101324
'FilterEnable' => isset($json['filterEnable']) ? (string) $json['filterEnable'] : null,
13111325
'FilterStrength' => isset($json['filterStrength']) ? (int) $json['filterStrength'] : null,
@@ -2946,6 +2960,19 @@ private function populateResult__mapOfCaptionSelector(array $json): array
29462960
return $items;
29472961
}
29482962

2963+
/**
2964+
* @return array<string, DynamicAudioSelector>
2965+
*/
2966+
private function populateResult__mapOfDynamicAudioSelector(array $json): array
2967+
{
2968+
$items = [];
2969+
foreach ($json as $name => $value) {
2970+
$items[(string) $name] = $this->populateResultDynamicAudioSelector($value);
2971+
}
2972+
2973+
return $items;
2974+
}
2975+
29492976
/**
29502977
* @return array<string, string>
29512978
*/

src/Service/MediaConvert/src/Result/ListJobsResponse.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
use AsyncAws\MediaConvert\ValueObject\DvbSubDestinationSettings;
6262
use AsyncAws\MediaConvert\ValueObject\DvbSubSourceSettings;
6363
use AsyncAws\MediaConvert\ValueObject\DvbTdtSettings;
64+
use AsyncAws\MediaConvert\ValueObject\DynamicAudioSelector;
6465
use AsyncAws\MediaConvert\ValueObject\Eac3AtmosSettings;
6566
use AsyncAws\MediaConvert\ValueObject\Eac3Settings;
6667
use AsyncAws\MediaConvert\ValueObject\EmbeddedDestinationSettings;
@@ -918,6 +919,17 @@ private function populateResultDvbTdtSettings(array $json): DvbTdtSettings
918919
]);
919920
}
920921

922+
private function populateResultDynamicAudioSelector(array $json): DynamicAudioSelector
923+
{
924+
return new DynamicAudioSelector([
925+
'AudioDurationCorrection' => isset($json['audioDurationCorrection']) ? (string) $json['audioDurationCorrection'] : null,
926+
'ExternalAudioFileInput' => isset($json['externalAudioFileInput']) ? (string) $json['externalAudioFileInput'] : null,
927+
'LanguageCode' => isset($json['languageCode']) ? (string) $json['languageCode'] : null,
928+
'Offset' => isset($json['offset']) ? (int) $json['offset'] : null,
929+
'SelectorType' => isset($json['selectorType']) ? (string) $json['selectorType'] : null,
930+
]);
931+
}
932+
921933
private function populateResultEac3AtmosSettings(array $json): Eac3AtmosSettings
922934
{
923935
return new Eac3AtmosSettings([
@@ -1158,6 +1170,7 @@ private function populateResultH265Settings(array $json): H265Settings
11581170
'Bitrate' => isset($json['bitrate']) ? (int) $json['bitrate'] : null,
11591171
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
11601172
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
1173+
'Deblocking' => isset($json['deblocking']) ? (string) $json['deblocking'] : null,
11611174
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
11621175
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
11631176
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
@@ -1373,6 +1386,7 @@ private function populateResultInput(array $json): Input
13731386
'DecryptionSettings' => empty($json['decryptionSettings']) ? null : $this->populateResultInputDecryptionSettings($json['decryptionSettings']),
13741387
'DenoiseFilter' => isset($json['denoiseFilter']) ? (string) $json['denoiseFilter'] : null,
13751388
'DolbyVisionMetadataXml' => isset($json['dolbyVisionMetadataXml']) ? (string) $json['dolbyVisionMetadataXml'] : null,
1389+
'DynamicAudioSelectors' => !isset($json['dynamicAudioSelectors']) ? null : $this->populateResult__mapOfDynamicAudioSelector($json['dynamicAudioSelectors']),
13761390
'FileInput' => isset($json['fileInput']) ? (string) $json['fileInput'] : null,
13771391
'FilterEnable' => isset($json['filterEnable']) ? (string) $json['filterEnable'] : null,
13781392
'FilterStrength' => isset($json['filterStrength']) ? (int) $json['filterStrength'] : null,
@@ -3026,6 +3040,19 @@ private function populateResult__mapOfCaptionSelector(array $json): array
30263040
return $items;
30273041
}
30283042

3043+
/**
3044+
* @return array<string, DynamicAudioSelector>
3045+
*/
3046+
private function populateResult__mapOfDynamicAudioSelector(array $json): array
3047+
{
3048+
$items = [];
3049+
foreach ($json as $name => $value) {
3050+
$items[(string) $name] = $this->populateResultDynamicAudioSelector($value);
3051+
}
3052+
3053+
return $items;
3054+
}
3055+
30293056
/**
30303057
* @return array<string, string>
30313058
*/

src/Service/MediaConvert/src/ValueObject/AudioSelector.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final class AudioSelector
4848
private $defaultSelection;
4949

5050
/**
51-
* Specifies audio data from an external file source.
51+
* Specify the S3, HTTP, or HTTPS URL for your external audio file input.
5252
*
5353
* @var string|null
5454
*/
@@ -66,14 +66,18 @@ final class AudioSelector
6666
private $hlsRenditionGroupSettings;
6767

6868
/**
69-
* Selects a specific language code from within an audio source.
69+
* Specify the language to select from your audio input. In the MediaConvert console choose from a list of languages. In
70+
* your JSON job settings choose from an ISO 639-2 three-letter code listed at
71+
* https://www.loc.gov/standards/iso639-2/php/code_list.php.
7072
*
7173
* @var LanguageCode::*|null
7274
*/
7375
private $languageCode;
7476

7577
/**
76-
* Specifies a time delta in milliseconds to offset the audio from the input video.
78+
* Specify a time delta, in milliseconds, to offset the audio from the input video.
79+
* To specify no offset: Keep the default value, 0.
80+
* To specify an offset: Enter an integer from -2147483648 to 2147483647.
7781
*
7882
* @var int|null
7983
*/

0 commit comments

Comments
 (0)