Skip to content

Commit 2dd40b1

Browse files
Update generated code (#1918)
update generated code
1 parent 0333bcf commit 2dd40b1

File tree

10 files changed

+107
-5
lines changed

10 files changed

+107
-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.351.0"
3+
"${LATEST}": "3.351.1"
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
@@ -6,6 +6,7 @@
66

77
- AWS api-change: This release includes support for embedding and signing C2PA content credentials in MP4 outputs.
88
- AWS api-change: This release adds a new SPECIFIED_OPTIMAL option for handling DDS when using DVB-Sub with high resolution video.
9+
- AWS api-change: This release expands the range of supported audio outputs to include xHE, 192khz FLAC and the deprecation of dual mono for AC3.
910

1011
## 1.9.0
1112

src/Service/MediaConvert/src/Enum/AacCodecProfile.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ final class AacCodecProfile
1313
public const HEV1 = 'HEV1';
1414
public const HEV2 = 'HEV2';
1515
public const LC = 'LC';
16+
public const XHE = 'XHE';
1617

1718
public static function exists(string $value): bool
1819
{
1920
return isset([
2021
self::HEV1 => true,
2122
self::HEV2 => true,
2223
self::LC => true,
24+
self::XHE => true,
2325
][$value]);
2426
}
2527
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace AsyncAws\MediaConvert\Enum;
4+
5+
/**
6+
* Choose the loudness measurement mode for your audio content. For music or advertisements: We recommend that you keep
7+
* the default value, Program. For speech or other content: We recommend that you choose Anchor. When you do,
8+
* MediaConvert optimizes the loudness of your output for clarify by applying speech gates.
9+
*/
10+
final class AacLoudnessMeasurementMode
11+
{
12+
public const ANCHOR = 'ANCHOR';
13+
public const PROGRAM = 'PROGRAM';
14+
15+
public static function exists(string $value): bool
16+
{
17+
return isset([
18+
self::ANCHOR => true,
19+
self::PROGRAM => true,
20+
][$value]);
21+
}
22+
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,13 @@ private function populateResultAacSettings(array $json): AacSettings
218218
'Bitrate' => isset($json['bitrate']) ? (int) $json['bitrate'] : null,
219219
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
220220
'CodingMode' => isset($json['codingMode']) ? (string) $json['codingMode'] : null,
221+
'LoudnessMeasurementMode' => isset($json['loudnessMeasurementMode']) ? (string) $json['loudnessMeasurementMode'] : null,
222+
'RapInterval' => isset($json['rapInterval']) ? (int) $json['rapInterval'] : null,
221223
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
222224
'RawFormat' => isset($json['rawFormat']) ? (string) $json['rawFormat'] : null,
223225
'SampleRate' => isset($json['sampleRate']) ? (int) $json['sampleRate'] : null,
224226
'Specification' => isset($json['specification']) ? (string) $json['specification'] : null,
227+
'TargetLoudnessRange' => isset($json['targetLoudnessRange']) ? (int) $json['targetLoudnessRange'] : null,
225228
'VbrQuality' => isset($json['vbrQuality']) ? (string) $json['vbrQuality'] : null,
226229
]);
227230
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,13 @@ private function populateResultAacSettings(array $json): AacSettings
218218
'Bitrate' => isset($json['bitrate']) ? (int) $json['bitrate'] : null,
219219
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
220220
'CodingMode' => isset($json['codingMode']) ? (string) $json['codingMode'] : null,
221+
'LoudnessMeasurementMode' => isset($json['loudnessMeasurementMode']) ? (string) $json['loudnessMeasurementMode'] : null,
222+
'RapInterval' => isset($json['rapInterval']) ? (int) $json['rapInterval'] : null,
221223
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
222224
'RawFormat' => isset($json['rawFormat']) ? (string) $json['rawFormat'] : null,
223225
'SampleRate' => isset($json['sampleRate']) ? (int) $json['sampleRate'] : null,
224226
'Specification' => isset($json['specification']) ? (string) $json['specification'] : null,
227+
'TargetLoudnessRange' => isset($json['targetLoudnessRange']) ? (int) $json['targetLoudnessRange'] : null,
225228
'VbrQuality' => isset($json['vbrQuality']) ? (string) $json['vbrQuality'] : null,
226229
]);
227230
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,13 @@ private function populateResultAacSettings(array $json): AacSettings
285285
'Bitrate' => isset($json['bitrate']) ? (int) $json['bitrate'] : null,
286286
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
287287
'CodingMode' => isset($json['codingMode']) ? (string) $json['codingMode'] : null,
288+
'LoudnessMeasurementMode' => isset($json['loudnessMeasurementMode']) ? (string) $json['loudnessMeasurementMode'] : null,
289+
'RapInterval' => isset($json['rapInterval']) ? (int) $json['rapInterval'] : null,
288290
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
289291
'RawFormat' => isset($json['rawFormat']) ? (string) $json['rawFormat'] : null,
290292
'SampleRate' => isset($json['sampleRate']) ? (int) $json['sampleRate'] : null,
291293
'Specification' => isset($json['specification']) ? (string) $json['specification'] : null,
294+
'TargetLoudnessRange' => isset($json['targetLoudnessRange']) ? (int) $json['targetLoudnessRange'] : null,
292295
'VbrQuality' => isset($json['vbrQuality']) ? (string) $json['vbrQuality'] : null,
293296
]);
294297
}

src/Service/MediaConvert/src/ValueObject/AacSettings.php

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use AsyncAws\MediaConvert\Enum\AacAudioDescriptionBroadcasterMix;
77
use AsyncAws\MediaConvert\Enum\AacCodecProfile;
88
use AsyncAws\MediaConvert\Enum\AacCodingMode;
9+
use AsyncAws\MediaConvert\Enum\AacLoudnessMeasurementMode;
910
use AsyncAws\MediaConvert\Enum\AacRateControlMode;
1011
use AsyncAws\MediaConvert\Enum\AacRawFormat;
1112
use AsyncAws\MediaConvert\Enum\AacSpecification;
@@ -64,6 +65,26 @@ final class AacSettings
6465
*/
6566
private $codingMode;
6667

68+
/**
69+
* Choose the loudness measurement mode for your audio content. For music or advertisements: We recommend that you keep
70+
* the default value, Program. For speech or other content: We recommend that you choose Anchor. When you do,
71+
* MediaConvert optimizes the loudness of your output for clarify by applying speech gates.
72+
*
73+
* @var AacLoudnessMeasurementMode::*|null
74+
*/
75+
private $loudnessMeasurementMode;
76+
77+
/**
78+
* Specify the RAP (Random Access Point) interval for your xHE-AAC audio output. A RAP allows a decoder to decode audio
79+
* data mid-stream, without the need to reference previous audio frames, and perform adaptive audio bitrate switching.
80+
* To specify the RAP interval: Enter an integer from 2000 to 30000, in milliseconds. Smaller values allow for better
81+
* seeking and more frequent stream switching, while large values improve compression efficiency. To have MediaConvert
82+
* automatically determine the RAP interval: Leave blank.
83+
*
84+
* @var int|null
85+
*/
86+
private $rapInterval;
87+
6788
/**
6889
* Specify the AAC rate control mode. For a constant bitrate: Choose CBR. Your AAC output bitrate will be equal to the
6990
* value that you choose for Bitrate. For a variable bitrate: Choose VBR. Your AAC output bitrate will vary according to
@@ -97,6 +118,14 @@ final class AacSettings
97118
*/
98119
private $specification;
99120

121+
/**
122+
* Specify the xHE-AAC loudness target. Enter an integer from 6 to 16, representing "loudness units". For more
123+
* information, see the following specification: Supplementary information for R 128 EBU Tech 3342-2023.
124+
*
125+
* @var int|null
126+
*/
127+
private $targetLoudnessRange;
128+
100129
/**
101130
* Specify the quality of your variable bitrate (VBR) AAC audio. For a list of approximate VBR bitrates, see:
102131
* https://docs.aws.amazon.com/mediaconvert/latest/ug/aac-support.html#aac_vbr
@@ -111,10 +140,13 @@ final class AacSettings
111140
* Bitrate?: null|int,
112141
* CodecProfile?: null|AacCodecProfile::*,
113142
* CodingMode?: null|AacCodingMode::*,
143+
* LoudnessMeasurementMode?: null|AacLoudnessMeasurementMode::*,
144+
* RapInterval?: null|int,
114145
* RateControlMode?: null|AacRateControlMode::*,
115146
* RawFormat?: null|AacRawFormat::*,
116147
* SampleRate?: null|int,
117148
* Specification?: null|AacSpecification::*,
149+
* TargetLoudnessRange?: null|int,
118150
* VbrQuality?: null|AacVbrQuality::*,
119151
* } $input
120152
*/
@@ -124,10 +156,13 @@ public function __construct(array $input)
124156
$this->bitrate = $input['Bitrate'] ?? null;
125157
$this->codecProfile = $input['CodecProfile'] ?? null;
126158
$this->codingMode = $input['CodingMode'] ?? null;
159+
$this->loudnessMeasurementMode = $input['LoudnessMeasurementMode'] ?? null;
160+
$this->rapInterval = $input['RapInterval'] ?? null;
127161
$this->rateControlMode = $input['RateControlMode'] ?? null;
128162
$this->rawFormat = $input['RawFormat'] ?? null;
129163
$this->sampleRate = $input['SampleRate'] ?? null;
130164
$this->specification = $input['Specification'] ?? null;
165+
$this->targetLoudnessRange = $input['TargetLoudnessRange'] ?? null;
131166
$this->vbrQuality = $input['VbrQuality'] ?? null;
132167
}
133168

@@ -137,10 +172,13 @@ public function __construct(array $input)
137172
* Bitrate?: null|int,
138173
* CodecProfile?: null|AacCodecProfile::*,
139174
* CodingMode?: null|AacCodingMode::*,
175+
* LoudnessMeasurementMode?: null|AacLoudnessMeasurementMode::*,
176+
* RapInterval?: null|int,
140177
* RateControlMode?: null|AacRateControlMode::*,
141178
* RawFormat?: null|AacRawFormat::*,
142179
* SampleRate?: null|int,
143180
* Specification?: null|AacSpecification::*,
181+
* TargetLoudnessRange?: null|int,
144182
* VbrQuality?: null|AacVbrQuality::*,
145183
* }|AacSettings $input
146184
*/
@@ -178,6 +216,19 @@ public function getCodingMode(): ?string
178216
return $this->codingMode;
179217
}
180218

219+
/**
220+
* @return AacLoudnessMeasurementMode::*|null
221+
*/
222+
public function getLoudnessMeasurementMode(): ?string
223+
{
224+
return $this->loudnessMeasurementMode;
225+
}
226+
227+
public function getRapInterval(): ?int
228+
{
229+
return $this->rapInterval;
230+
}
231+
181232
/**
182233
* @return AacRateControlMode::*|null
183234
*/
@@ -207,6 +258,11 @@ public function getSpecification(): ?string
207258
return $this->specification;
208259
}
209260

261+
public function getTargetLoudnessRange(): ?int
262+
{
263+
return $this->targetLoudnessRange;
264+
}
265+
210266
/**
211267
* @return AacVbrQuality::*|null
212268
*/
@@ -242,6 +298,15 @@ public function requestBody(): array
242298
}
243299
$payload['codingMode'] = $v;
244300
}
301+
if (null !== $v = $this->loudnessMeasurementMode) {
302+
if (!AacLoudnessMeasurementMode::exists($v)) {
303+
throw new InvalidArgument(\sprintf('Invalid parameter "loudnessMeasurementMode" for "%s". The value "%s" is not a valid "AacLoudnessMeasurementMode".', __CLASS__, $v));
304+
}
305+
$payload['loudnessMeasurementMode'] = $v;
306+
}
307+
if (null !== $v = $this->rapInterval) {
308+
$payload['rapInterval'] = $v;
309+
}
245310
if (null !== $v = $this->rateControlMode) {
246311
if (!AacRateControlMode::exists($v)) {
247312
throw new InvalidArgument(\sprintf('Invalid parameter "rateControlMode" for "%s". The value "%s" is not a valid "AacRateControlMode".', __CLASS__, $v));
@@ -263,6 +328,9 @@ public function requestBody(): array
263328
}
264329
$payload['specification'] = $v;
265330
}
331+
if (null !== $v = $this->targetLoudnessRange) {
332+
$payload['targetLoudnessRange'] = $v;
333+
}
266334
if (null !== $v = $this->vbrQuality) {
267335
if (!AacVbrQuality::exists($v)) {
268336
throw new InvalidArgument(\sprintf('Invalid parameter "vbrQuality" for "%s". The value "%s" is not a valid "AacVbrQuality".', __CLASS__, $v));

src/Service/MediaConvert/src/ValueObject/VideoCodecSettings.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ final class VideoCodecSettings
3434

3535
/**
3636
* Specifies the video codec. This must be equal to one of the enum values defined by the object VideoCodec. To
37-
* passthrough the video stream of your input JPEG2000, VC-3, AVC-INTRA or Apple ProRes video without any video
38-
* encoding: Choose Passthrough. If you have multiple input videos, note that they must have identical encoding
39-
* attributes. When you choose Passthrough, your output container must be MXF or QuickTime MOV.
37+
* passthrough the video stream of your input without any video encoding: Choose Passthrough. More information about
38+
* passthrough codec support and job settings requirements, see:
39+
* https://docs.aws.amazon.com/mediaconvert/latest/ug/video-passthrough-feature-restrictions.html.
4040
*
4141
* @var VideoCodec::*|null
4242
*/

src/Service/StepFunctions/src/Input/StartExecutionInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ final class StartExecutionInput extends Input
7171
/**
7272
* The string that contains the JSON input data for the execution, for example:
7373
*
74-
* `"{\"first_name\" : \"Tim\"}"`
74+
* `"{\"first_name\" : \"Alejandro\"}"`
7575
*
7676
* > If you don't include any JSON input data, you still must include the two braces, for example: `"{}"`
7777
*

0 commit comments

Comments
 (0)