Skip to content

Commit 2617971

Browse files
Update generated code (#1571)
update generated code
1 parent 97ddf15 commit 2617971

File tree

12 files changed

+54
-9
lines changed

12 files changed

+54
-9
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.281.11"
3+
"${LATEST}": "3.281.12"
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
@@ -10,6 +10,7 @@
1010
### Added
1111

1212
- AWS api-change: This release includes additional audio channel tags in Quicktime outputs, support for film grain synthesis for AV1 outputs, ability to create audio-only FLAC outputs, and ability to specify Amazon S3 destination storage class.
13+
- AWS api-change: This release supports the creation of of audio-only tracks in CMAF output groups.
1314

1415
## 0.1.1
1516

src/Service/MediaConvert/src/Enum/CmfcAudioTrackType.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
/**
66
* Use this setting to control the values that MediaConvert puts in your HLS parent playlist to control how the client
7-
* player selects which audio track to play. The other options for this setting determine the values that MediaConvert
8-
* writes for the DEFAULT and AUTOSELECT attributes of the EXT-X-MEDIA entry for the audio variant. For more information
9-
* about these attributes, see the Apple documentation article
7+
* player selects which audio track to play. Choose Audio-only variant stream (AUDIO_ONLY_VARIANT_STREAM) for any
8+
* variant that you want to prohibit the client from playing with video. This causes MediaConvert to represent the
9+
* variant as an EXT-X-STREAM-INF in the HLS manifest. The other options for this setting determine the values that
10+
* MediaConvert writes for the DEFAULT and AUTOSELECT attributes of the EXT-X-MEDIA entry for the audio variant. For
11+
* more information about these attributes, see the Apple documentation article
1012
* https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/adding_alternate_media_to_a_playlist.
1113
* Choose Alternate audio, auto select, default to set DEFAULT=YES and AUTOSELECT=YES. Choose this value for only one
1214
* variant in your output group. Choose Alternate audio, auto select, not default to set DEFAULT=NO and AUTOSELECT=YES.
@@ -19,13 +21,15 @@ final class CmfcAudioTrackType
1921
public const ALTERNATE_AUDIO_AUTO_SELECT = 'ALTERNATE_AUDIO_AUTO_SELECT';
2022
public const ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT = 'ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT';
2123
public const ALTERNATE_AUDIO_NOT_AUTO_SELECT = 'ALTERNATE_AUDIO_NOT_AUTO_SELECT';
24+
public const AUDIO_ONLY_VARIANT_STREAM = 'AUDIO_ONLY_VARIANT_STREAM';
2225

2326
public static function exists(string $value): bool
2427
{
2528
return isset([
2629
self::ALTERNATE_AUDIO_AUTO_SELECT => true,
2730
self::ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT => true,
2831
self::ALTERNATE_AUDIO_NOT_AUTO_SELECT => true,
32+
self::AUDIO_ONLY_VARIANT_STREAM => true,
2933
][$value]);
3034
}
3135
}

src/Service/MediaConvert/src/Enum/S3StorageClass.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
namespace AsyncAws\MediaConvert\Enum;
44

55
/**
6-
* Specify the S3 storage class to use for this destination.
6+
* Specify the S3 storage class to use for this output. To use your destination's default storage class: Keep the
7+
* default value, Not set. For more information about S3 storage classes, see
8+
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html.
79
*/
810
final class S3StorageClass
911
{

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ private function populateResultJobSettings(array $json): JobSettings
13671367
'AvailBlanking' => empty($json['availBlanking']) ? null : $this->populateResultAvailBlanking($json['availBlanking']),
13681368
'Esam' => empty($json['esam']) ? null : $this->populateResultEsamSettings($json['esam']),
13691369
'ExtendedDataServices' => empty($json['extendedDataServices']) ? null : $this->populateResultExtendedDataServices($json['extendedDataServices']),
1370+
'FollowInputIndex' => isset($json['followInputIndex']) ? (int) $json['followInputIndex'] : null,
13701371
'Inputs' => !isset($json['inputs']) ? null : $this->populateResult__listOfInput($json['inputs']),
13711372
'KantarWatermark' => empty($json['kantarWatermark']) ? null : $this->populateResultKantarWatermarkSettings($json['kantarWatermark']),
13721373
'MotionImageInserter' => empty($json['motionImageInserter']) ? null : $this->populateResultMotionImageInserter($json['motionImageInserter']),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ private function populateResultJobSettings(array $json): JobSettings
13671367
'AvailBlanking' => empty($json['availBlanking']) ? null : $this->populateResultAvailBlanking($json['availBlanking']),
13681368
'Esam' => empty($json['esam']) ? null : $this->populateResultEsamSettings($json['esam']),
13691369
'ExtendedDataServices' => empty($json['extendedDataServices']) ? null : $this->populateResultExtendedDataServices($json['extendedDataServices']),
1370+
'FollowInputIndex' => isset($json['followInputIndex']) ? (int) $json['followInputIndex'] : null,
13701371
'Inputs' => !isset($json['inputs']) ? null : $this->populateResult__listOfInput($json['inputs']),
13711372
'KantarWatermark' => empty($json['kantarWatermark']) ? null : $this->populateResultKantarWatermarkSettings($json['kantarWatermark']),
13721373
'MotionImageInserter' => empty($json['motionImageInserter']) ? null : $this->populateResultMotionImageInserter($json['motionImageInserter']),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,7 @@ private function populateResultJobSettings(array $json): JobSettings
14341434
'AvailBlanking' => empty($json['availBlanking']) ? null : $this->populateResultAvailBlanking($json['availBlanking']),
14351435
'Esam' => empty($json['esam']) ? null : $this->populateResultEsamSettings($json['esam']),
14361436
'ExtendedDataServices' => empty($json['extendedDataServices']) ? null : $this->populateResultExtendedDataServices($json['extendedDataServices']),
1437+
'FollowInputIndex' => isset($json['followInputIndex']) ? (int) $json['followInputIndex'] : null,
14371438
'Inputs' => !isset($json['inputs']) ? null : $this->populateResult__listOfInput($json['inputs']),
14381439
'KantarWatermark' => empty($json['kantarWatermark']) ? null : $this->populateResultKantarWatermarkSettings($json['kantarWatermark']),
14391440
'MotionImageInserter' => empty($json['motionImageInserter']) ? null : $this->populateResultMotionImageInserter($json['motionImageInserter']),

src/Service/MediaConvert/src/ValueObject/CmfcSettings.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ final class CmfcSettings
6565

6666
/**
6767
* Use this setting to control the values that MediaConvert puts in your HLS parent playlist to control how the client
68-
* player selects which audio track to play. The other options for this setting determine the values that MediaConvert
69-
* writes for the DEFAULT and AUTOSELECT attributes of the EXT-X-MEDIA entry for the audio variant. For more information
70-
* about these attributes, see the Apple documentation article
68+
* player selects which audio track to play. Choose Audio-only variant stream (AUDIO_ONLY_VARIANT_STREAM) for any
69+
* variant that you want to prohibit the client from playing with video. This causes MediaConvert to represent the
70+
* variant as an EXT-X-STREAM-INF in the HLS manifest. The other options for this setting determine the values that
71+
* MediaConvert writes for the DEFAULT and AUTOSELECT attributes of the EXT-X-MEDIA entry for the audio variant. For
72+
* more information about these attributes, see the Apple documentation article
7173
* https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/adding_alternate_media_to_a_playlist.
7274
* Choose Alternate audio, auto select, default to set DEFAULT=YES and AUTOSELECT=YES. Choose this value for only one
7375
* variant in your output group. Choose Alternate audio, auto select, not default to set DEFAULT=NO and AUTOSELECT=YES.

src/Service/MediaConvert/src/ValueObject/JobSettings.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ final class JobSettings
3838
*/
3939
private $extendedDataServices;
4040

41+
/**
42+
* Specifies which input metadata to use for the default "Follow input" option for the following settings: resolution,
43+
* frame rate, and pixel aspect ratio. In the simplest case, specify which input is used based on its index in the job.
44+
* For example if you specify 3, then the fourth input will be used from each input. If the job does not have a fourth
45+
* input, then the first input will be used. If no followInputIndex is specified, then 0 will be chosen automatically.
46+
*
47+
* @var int|null
48+
*/
49+
private $followInputIndex;
50+
4151
/**
4252
* Use Inputs to define source file used in the transcode job. There can be multiple inputs add in a job. These inputs
4353
* will be concantenated together to create the output.
@@ -118,6 +128,7 @@ final class JobSettings
118128
* AvailBlanking?: null|AvailBlanking|array,
119129
* Esam?: null|EsamSettings|array,
120130
* ExtendedDataServices?: null|ExtendedDataServices|array,
131+
* FollowInputIndex?: null|int,
121132
* Inputs?: null|array<Input|array>,
122133
* KantarWatermark?: null|KantarWatermarkSettings|array,
123134
* MotionImageInserter?: null|MotionImageInserter|array,
@@ -134,6 +145,7 @@ public function __construct(array $input)
134145
$this->availBlanking = isset($input['AvailBlanking']) ? AvailBlanking::create($input['AvailBlanking']) : null;
135146
$this->esam = isset($input['Esam']) ? EsamSettings::create($input['Esam']) : null;
136147
$this->extendedDataServices = isset($input['ExtendedDataServices']) ? ExtendedDataServices::create($input['ExtendedDataServices']) : null;
148+
$this->followInputIndex = $input['FollowInputIndex'] ?? null;
137149
$this->inputs = isset($input['Inputs']) ? array_map([Input::class, 'create'], $input['Inputs']) : null;
138150
$this->kantarWatermark = isset($input['KantarWatermark']) ? KantarWatermarkSettings::create($input['KantarWatermark']) : null;
139151
$this->motionImageInserter = isset($input['MotionImageInserter']) ? MotionImageInserter::create($input['MotionImageInserter']) : null;
@@ -150,6 +162,7 @@ public function __construct(array $input)
150162
* AvailBlanking?: null|AvailBlanking|array,
151163
* Esam?: null|EsamSettings|array,
152164
* ExtendedDataServices?: null|ExtendedDataServices|array,
165+
* FollowInputIndex?: null|int,
153166
* Inputs?: null|array<Input|array>,
154167
* KantarWatermark?: null|KantarWatermarkSettings|array,
155168
* MotionImageInserter?: null|MotionImageInserter|array,
@@ -185,6 +198,11 @@ public function getExtendedDataServices(): ?ExtendedDataServices
185198
return $this->extendedDataServices;
186199
}
187200

201+
public function getFollowInputIndex(): ?int
202+
{
203+
return $this->followInputIndex;
204+
}
205+
188206
/**
189207
* @return Input[]
190208
*/
@@ -249,6 +267,9 @@ public function requestBody(): array
249267
if (null !== $v = $this->extendedDataServices) {
250268
$payload['extendedDataServices'] = $v->requestBody();
251269
}
270+
if (null !== $v = $this->followInputIndex) {
271+
$payload['followInputIndex'] = $v;
272+
}
252273
if (null !== $v = $this->inputs) {
253274
$index = -1;
254275
$payload['inputs'] = [];

src/Service/MediaConvert/src/ValueObject/S3DestinationSettings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ final class S3DestinationSettings
2626
private $encryption;
2727

2828
/**
29-
* Specify the S3 storage class to use for this destination.
29+
* Specify the S3 storage class to use for this output. To use your destination's default storage class: Keep the
30+
* default value, Not set. For more information about S3 storage classes, see
31+
* https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html.
3032
*
3133
* @var S3StorageClass::*|null
3234
*/

0 commit comments

Comments
 (0)