Skip to content

Commit fa7ccbd

Browse files
Update generated code (#1729)
* update generated code * Update src/Service/MediaConvert/CHANGELOG.md --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent 05d3e01 commit fa7ccbd

12 files changed

+161
-8
lines changed

manifest.json

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

src/Service/MediaConvert/CHANGELOG.md

+4
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 includes support for creating I-frame only video segments for DASH trick play.
8+
59
### Changed
610

711
- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers

src/Service/MediaConvert/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.2-dev"
31+
"dev-master": "1.3-dev"
3232
}
3333
}
3434
}

src/Service/MediaConvert/src/Input/DescribeEndpointsRequest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
use AsyncAws\MediaConvert\Enum\DescribeEndpointsMode;
1010

1111
/**
12-
* Send an request with an empty body to the regional API endpoint to get your account API endpoint.
12+
* Send a request with an empty body to the regional API endpoint to get your account API endpoint. Note that
13+
* DescribeEndpoints is no longer required. We recommend that you send your requests directly to the regional endpoint
14+
* instead.
1315
*/
1416
final class DescribeEndpointsRequest extends Input
1517
{

src/Service/MediaConvert/src/MediaConvertClient.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ public function createJob($input): CreateJobResponse
115115
}
116116

117117
/**
118-
* Send an request with an empty body to the regional API endpoint to get your account API endpoint.
118+
* Send a request with an empty body to the regional API endpoint to get your account API endpoint. Note that
119+
* DescribeEndpoints is no longer required. We recommend that you send your requests directly to the regional endpoint
120+
* instead.
119121
*
120122
* @see https://docs.aws.amazon.com/mediaconvert/latest/apireference/API_DescribeEndpoints.html
121123
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-mediaconvert-2017-08-29.html#describeendpoints

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

+6
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ private function populateResultCmafGroupSettings(array $json): CmafGroupSettings
585585
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
586586
'ClientCache' => isset($json['clientCache']) ? (string) $json['clientCache'] : null,
587587
'CodecSpecification' => isset($json['codecSpecification']) ? (string) $json['codecSpecification'] : null,
588+
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
588589
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
589590
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
590591
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
@@ -708,6 +709,7 @@ private function populateResultDashIsoGroupSettings(array $json): DashIsoGroupSe
708709
'AdditionalManifests' => !isset($json['additionalManifests']) ? null : $this->populateResult__listOfDashAdditionalManifest($json['additionalManifests']),
709710
'AudioChannelConfigSchemeIdUri' => isset($json['audioChannelConfigSchemeIdUri']) ? (string) $json['audioChannelConfigSchemeIdUri'] : null,
710711
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
712+
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
711713
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
712714
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
713715
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
@@ -1328,7 +1330,11 @@ private function populateResultInputDecryptionSettings(array $json): InputDecryp
13281330
private function populateResultInputVideoGenerator(array $json): InputVideoGenerator
13291331
{
13301332
return new InputVideoGenerator([
1333+
'Channels' => isset($json['channels']) ? (int) $json['channels'] : null,
13311334
'Duration' => isset($json['duration']) ? (int) $json['duration'] : null,
1335+
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
1336+
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
1337+
'SampleRate' => isset($json['sampleRate']) ? (int) $json['sampleRate'] : null,
13321338
]);
13331339
}
13341340

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

+6
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ private function populateResultCmafGroupSettings(array $json): CmafGroupSettings
585585
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
586586
'ClientCache' => isset($json['clientCache']) ? (string) $json['clientCache'] : null,
587587
'CodecSpecification' => isset($json['codecSpecification']) ? (string) $json['codecSpecification'] : null,
588+
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
588589
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
589590
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
590591
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
@@ -708,6 +709,7 @@ private function populateResultDashIsoGroupSettings(array $json): DashIsoGroupSe
708709
'AdditionalManifests' => !isset($json['additionalManifests']) ? null : $this->populateResult__listOfDashAdditionalManifest($json['additionalManifests']),
709710
'AudioChannelConfigSchemeIdUri' => isset($json['audioChannelConfigSchemeIdUri']) ? (string) $json['audioChannelConfigSchemeIdUri'] : null,
710711
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
712+
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
711713
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
712714
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
713715
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
@@ -1328,7 +1330,11 @@ private function populateResultInputDecryptionSettings(array $json): InputDecryp
13281330
private function populateResultInputVideoGenerator(array $json): InputVideoGenerator
13291331
{
13301332
return new InputVideoGenerator([
1333+
'Channels' => isset($json['channels']) ? (int) $json['channels'] : null,
13311334
'Duration' => isset($json['duration']) ? (int) $json['duration'] : null,
1335+
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
1336+
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
1337+
'SampleRate' => isset($json['sampleRate']) ? (int) $json['sampleRate'] : null,
13321338
]);
13331339
}
13341340

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

+6
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ private function populateResultCmafGroupSettings(array $json): CmafGroupSettings
652652
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
653653
'ClientCache' => isset($json['clientCache']) ? (string) $json['clientCache'] : null,
654654
'CodecSpecification' => isset($json['codecSpecification']) ? (string) $json['codecSpecification'] : null,
655+
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
655656
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
656657
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
657658
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
@@ -775,6 +776,7 @@ private function populateResultDashIsoGroupSettings(array $json): DashIsoGroupSe
775776
'AdditionalManifests' => !isset($json['additionalManifests']) ? null : $this->populateResult__listOfDashAdditionalManifest($json['additionalManifests']),
776777
'AudioChannelConfigSchemeIdUri' => isset($json['audioChannelConfigSchemeIdUri']) ? (string) $json['audioChannelConfigSchemeIdUri'] : null,
777778
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
779+
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
778780
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
779781
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
780782
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
@@ -1395,7 +1397,11 @@ private function populateResultInputDecryptionSettings(array $json): InputDecryp
13951397
private function populateResultInputVideoGenerator(array $json): InputVideoGenerator
13961398
{
13971399
return new InputVideoGenerator([
1400+
'Channels' => isset($json['channels']) ? (int) $json['channels'] : null,
13981401
'Duration' => isset($json['duration']) ? (int) $json['duration'] : null,
1402+
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
1403+
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
1404+
'SampleRate' => isset($json['sampleRate']) ? (int) $json['sampleRate'] : null,
13991405
]);
14001406
}
14011407

src/Service/MediaConvert/src/ValueObject/CmafGroupSettings.php

+24
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ final class CmafGroupSettings
6060
*/
6161
private $codecSpecification;
6262

63+
/**
64+
* Specify whether MediaConvert generates I-frame only video segments for DASH trick play, also known as trick mode.
65+
* When specified, the I-frame only video segments are included within an additional AdaptationSet in your DASH output
66+
* manifest. To generate I-frame only video segments: Enter a name as a text string, up to 256 character long. This name
67+
* is appended to the end of this output group's base filename, that you specify as part of your destination URI, and
68+
* used for the I-frame only video segment files. You may also include format identifiers. For more information, see:
69+
* https://docs.aws.amazon.com/mediaconvert/latest/ug/using-variables-in-your-job-settings.html#using-settings-variables-with-streaming-outputs
70+
* To not generate I-frame only video segments: Leave blank.
71+
*
72+
* @var string|null
73+
*/
74+
private $dashIframeTrickPlayNameModifier;
75+
6376
/**
6477
* Specify how MediaConvert writes SegmentTimeline in your output DASH manifest. To write a SegmentTimeline in each
6578
* video Representation: Keep the default value, Basic. To write a common SegmentTimeline in the video AdaptationSet:
@@ -276,6 +289,7 @@ final class CmafGroupSettings
276289
* BaseUrl?: null|string,
277290
* ClientCache?: null|CmafClientCache::*,
278291
* CodecSpecification?: null|CmafCodecSpecification::*,
292+
* DashIFrameTrickPlayNameModifier?: null|string,
279293
* DashManifestStyle?: null|DashManifestStyle::*,
280294
* Destination?: null|string,
281295
* DestinationSettings?: null|DestinationSettings|array,
@@ -307,6 +321,7 @@ public function __construct(array $input)
307321
$this->baseUrl = $input['BaseUrl'] ?? null;
308322
$this->clientCache = $input['ClientCache'] ?? null;
309323
$this->codecSpecification = $input['CodecSpecification'] ?? null;
324+
$this->dashIframeTrickPlayNameModifier = $input['DashIFrameTrickPlayNameModifier'] ?? null;
310325
$this->dashManifestStyle = $input['DashManifestStyle'] ?? null;
311326
$this->destination = $input['Destination'] ?? null;
312327
$this->destinationSettings = isset($input['DestinationSettings']) ? DestinationSettings::create($input['DestinationSettings']) : null;
@@ -338,6 +353,7 @@ public function __construct(array $input)
338353
* BaseUrl?: null|string,
339354
* ClientCache?: null|CmafClientCache::*,
340355
* CodecSpecification?: null|CmafCodecSpecification::*,
356+
* DashIFrameTrickPlayNameModifier?: null|string,
341357
* DashManifestStyle?: null|DashManifestStyle::*,
342358
* Destination?: null|string,
343359
* DestinationSettings?: null|DestinationSettings|array,
@@ -397,6 +413,11 @@ public function getCodecSpecification(): ?string
397413
return $this->codecSpecification;
398414
}
399415

416+
public function getDashIframeTrickPlayNameModifier(): ?string
417+
{
418+
return $this->dashIframeTrickPlayNameModifier;
419+
}
420+
400421
/**
401422
* @return DashManifestStyle::*|null
402423
*/
@@ -586,6 +607,9 @@ public function requestBody(): array
586607
}
587608
$payload['codecSpecification'] = $v;
588609
}
610+
if (null !== $v = $this->dashIframeTrickPlayNameModifier) {
611+
$payload['dashIFrameTrickPlayNameModifier'] = $v;
612+
}
589613
if (null !== $v = $this->dashManifestStyle) {
590614
if (!DashManifestStyle::exists($v)) {
591615
throw new InvalidArgument(sprintf('Invalid parameter "dashManifestStyle" for "%s". The value "%s" is not a valid "DashManifestStyle".', __CLASS__, $v));

src/Service/MediaConvert/src/ValueObject/DashIsoGroupSettings.php

+24
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ final class DashIsoGroupSettings
5050
*/
5151
private $baseUrl;
5252

53+
/**
54+
* Specify whether MediaConvert generates I-frame only video segments for DASH trick play, also known as trick mode.
55+
* When specified, the I-frame only video segments are included within an additional AdaptationSet in your DASH output
56+
* manifest. To generate I-frame only video segments: Enter a name as a text string, up to 256 character long. This name
57+
* is appended to the end of this output group's base filename, that you specify as part of your destination URI, and
58+
* used for the I-frame only video segment files. You may also include format identifiers. For more information, see:
59+
* https://docs.aws.amazon.com/mediaconvert/latest/ug/using-variables-in-your-job-settings.html#using-settings-variables-with-streaming-outputs
60+
* To not generate I-frame only video segments: Leave blank.
61+
*
62+
* @var string|null
63+
*/
64+
private $dashIframeTrickPlayNameModifier;
65+
5366
/**
5467
* Specify how MediaConvert writes SegmentTimeline in your output DASH manifest. To write a SegmentTimeline in each
5568
* video Representation: Keep the default value, Basic. To write a common SegmentTimeline in the video AdaptationSet:
@@ -226,6 +239,7 @@ final class DashIsoGroupSettings
226239
* AdditionalManifests?: null|array<DashAdditionalManifest|array>,
227240
* AudioChannelConfigSchemeIdUri?: null|DashIsoGroupAudioChannelConfigSchemeIdUri::*,
228241
* BaseUrl?: null|string,
242+
* DashIFrameTrickPlayNameModifier?: null|string,
229243
* DashManifestStyle?: null|DashManifestStyle::*,
230244
* Destination?: null|string,
231245
* DestinationSettings?: null|DestinationSettings|array,
@@ -251,6 +265,7 @@ public function __construct(array $input)
251265
$this->additionalManifests = isset($input['AdditionalManifests']) ? array_map([DashAdditionalManifest::class, 'create'], $input['AdditionalManifests']) : null;
252266
$this->audioChannelConfigSchemeIdUri = $input['AudioChannelConfigSchemeIdUri'] ?? null;
253267
$this->baseUrl = $input['BaseUrl'] ?? null;
268+
$this->dashIframeTrickPlayNameModifier = $input['DashIFrameTrickPlayNameModifier'] ?? null;
254269
$this->dashManifestStyle = $input['DashManifestStyle'] ?? null;
255270
$this->destination = $input['Destination'] ?? null;
256271
$this->destinationSettings = isset($input['DestinationSettings']) ? DestinationSettings::create($input['DestinationSettings']) : null;
@@ -276,6 +291,7 @@ public function __construct(array $input)
276291
* AdditionalManifests?: null|array<DashAdditionalManifest|array>,
277292
* AudioChannelConfigSchemeIdUri?: null|DashIsoGroupAudioChannelConfigSchemeIdUri::*,
278293
* BaseUrl?: null|string,
294+
* DashIFrameTrickPlayNameModifier?: null|string,
279295
* DashManifestStyle?: null|DashManifestStyle::*,
280296
* Destination?: null|string,
281297
* DestinationSettings?: null|DestinationSettings|array,
@@ -322,6 +338,11 @@ public function getBaseUrl(): ?string
322338
return $this->baseUrl;
323339
}
324340

341+
public function getDashIframeTrickPlayNameModifier(): ?string
342+
{
343+
return $this->dashIframeTrickPlayNameModifier;
344+
}
345+
325346
/**
326347
* @return DashManifestStyle::*|null
327348
*/
@@ -465,6 +486,9 @@ public function requestBody(): array
465486
if (null !== $v = $this->baseUrl) {
466487
$payload['baseUrl'] = $v;
467488
}
489+
if (null !== $v = $this->dashIframeTrickPlayNameModifier) {
490+
$payload['dashIFrameTrickPlayNameModifier'] = $v;
491+
}
468492
if (null !== $v = $this->dashManifestStyle) {
469493
if (!DashManifestStyle::exists($v)) {
470494
throw new InvalidArgument(sprintf('Invalid parameter "dashManifestStyle" for "%s". The value "%s" is not a valid "DashManifestStyle".', __CLASS__, $v));

0 commit comments

Comments
 (0)