Skip to content

Commit

Permalink
Update generated code (#1729)
Browse files Browse the repository at this point in the history
* update generated code

* Update src/Service/MediaConvert/CHANGELOG.md

---------

Co-authored-by: Jérémy Derussé <[email protected]>
  • Loading branch information
async-aws-bot and jderusse authored Jun 18, 2024
1 parent 842e3b1 commit d550870
Show file tree
Hide file tree
Showing 10 changed files with 157 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: This release includes support for creating I-frame only video segments for DASH trick play.

### Changed

- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.2-dev"
"dev-master": "1.3-dev"
}
}
}
4 changes: 3 additions & 1 deletion src/Input/DescribeEndpointsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
use AsyncAws\MediaConvert\Enum\DescribeEndpointsMode;

/**
* Send an request with an empty body to the regional API endpoint to get your account API endpoint.
* Send a request with an empty body to the regional API endpoint to get your account API endpoint. Note that
* DescribeEndpoints is no longer required. We recommend that you send your requests directly to the regional endpoint
* instead.
*/
final class DescribeEndpointsRequest extends Input
{
Expand Down
4 changes: 3 additions & 1 deletion src/MediaConvertClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ public function createJob($input): CreateJobResponse
}

/**
* Send an request with an empty body to the regional API endpoint to get your account API endpoint.
* Send a request with an empty body to the regional API endpoint to get your account API endpoint. Note that
* DescribeEndpoints is no longer required. We recommend that you send your requests directly to the regional endpoint
* instead.
*
* @see https://docs.aws.amazon.com/mediaconvert/latest/apireference/API_DescribeEndpoints.html
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-mediaconvert-2017-08-29.html#describeendpoints
Expand Down
6 changes: 6 additions & 0 deletions src/Result/CreateJobResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ private function populateResultCmafGroupSettings(array $json): CmafGroupSettings
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
'ClientCache' => isset($json['clientCache']) ? (string) $json['clientCache'] : null,
'CodecSpecification' => isset($json['codecSpecification']) ? (string) $json['codecSpecification'] : null,
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
Expand Down Expand Up @@ -708,6 +709,7 @@ private function populateResultDashIsoGroupSettings(array $json): DashIsoGroupSe
'AdditionalManifests' => !isset($json['additionalManifests']) ? null : $this->populateResult__listOfDashAdditionalManifest($json['additionalManifests']),
'AudioChannelConfigSchemeIdUri' => isset($json['audioChannelConfigSchemeIdUri']) ? (string) $json['audioChannelConfigSchemeIdUri'] : null,
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
Expand Down Expand Up @@ -1328,7 +1330,11 @@ private function populateResultInputDecryptionSettings(array $json): InputDecryp
private function populateResultInputVideoGenerator(array $json): InputVideoGenerator
{
return new InputVideoGenerator([
'Channels' => isset($json['channels']) ? (int) $json['channels'] : null,
'Duration' => isset($json['duration']) ? (int) $json['duration'] : null,
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
'SampleRate' => isset($json['sampleRate']) ? (int) $json['sampleRate'] : null,
]);
}

Expand Down
6 changes: 6 additions & 0 deletions src/Result/GetJobResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ private function populateResultCmafGroupSettings(array $json): CmafGroupSettings
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
'ClientCache' => isset($json['clientCache']) ? (string) $json['clientCache'] : null,
'CodecSpecification' => isset($json['codecSpecification']) ? (string) $json['codecSpecification'] : null,
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
Expand Down Expand Up @@ -708,6 +709,7 @@ private function populateResultDashIsoGroupSettings(array $json): DashIsoGroupSe
'AdditionalManifests' => !isset($json['additionalManifests']) ? null : $this->populateResult__listOfDashAdditionalManifest($json['additionalManifests']),
'AudioChannelConfigSchemeIdUri' => isset($json['audioChannelConfigSchemeIdUri']) ? (string) $json['audioChannelConfigSchemeIdUri'] : null,
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
Expand Down Expand Up @@ -1328,7 +1330,11 @@ private function populateResultInputDecryptionSettings(array $json): InputDecryp
private function populateResultInputVideoGenerator(array $json): InputVideoGenerator
{
return new InputVideoGenerator([
'Channels' => isset($json['channels']) ? (int) $json['channels'] : null,
'Duration' => isset($json['duration']) ? (int) $json['duration'] : null,
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
'SampleRate' => isset($json['sampleRate']) ? (int) $json['sampleRate'] : null,
]);
}

Expand Down
6 changes: 6 additions & 0 deletions src/Result/ListJobsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ private function populateResultCmafGroupSettings(array $json): CmafGroupSettings
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
'ClientCache' => isset($json['clientCache']) ? (string) $json['clientCache'] : null,
'CodecSpecification' => isset($json['codecSpecification']) ? (string) $json['codecSpecification'] : null,
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
Expand Down Expand Up @@ -775,6 +776,7 @@ private function populateResultDashIsoGroupSettings(array $json): DashIsoGroupSe
'AdditionalManifests' => !isset($json['additionalManifests']) ? null : $this->populateResult__listOfDashAdditionalManifest($json['additionalManifests']),
'AudioChannelConfigSchemeIdUri' => isset($json['audioChannelConfigSchemeIdUri']) ? (string) $json['audioChannelConfigSchemeIdUri'] : null,
'BaseUrl' => isset($json['baseUrl']) ? (string) $json['baseUrl'] : null,
'DashIFrameTrickPlayNameModifier' => isset($json['dashIFrameTrickPlayNameModifier']) ? (string) $json['dashIFrameTrickPlayNameModifier'] : null,
'DashManifestStyle' => isset($json['dashManifestStyle']) ? (string) $json['dashManifestStyle'] : null,
'Destination' => isset($json['destination']) ? (string) $json['destination'] : null,
'DestinationSettings' => empty($json['destinationSettings']) ? null : $this->populateResultDestinationSettings($json['destinationSettings']),
Expand Down Expand Up @@ -1395,7 +1397,11 @@ private function populateResultInputDecryptionSettings(array $json): InputDecryp
private function populateResultInputVideoGenerator(array $json): InputVideoGenerator
{
return new InputVideoGenerator([
'Channels' => isset($json['channels']) ? (int) $json['channels'] : null,
'Duration' => isset($json['duration']) ? (int) $json['duration'] : null,
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
'SampleRate' => isset($json['sampleRate']) ? (int) $json['sampleRate'] : null,
]);
}

Expand Down
24 changes: 24 additions & 0 deletions src/ValueObject/CmafGroupSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ final class CmafGroupSettings
*/
private $codecSpecification;

/**
* Specify whether MediaConvert generates I-frame only video segments for DASH trick play, also known as trick mode.
* When specified, the I-frame only video segments are included within an additional AdaptationSet in your DASH output
* manifest. To generate I-frame only video segments: Enter a name as a text string, up to 256 character long. This name
* is appended to the end of this output group's base filename, that you specify as part of your destination URI, and
* used for the I-frame only video segment files. You may also include format identifiers. For more information, see:
* https://docs.aws.amazon.com/mediaconvert/latest/ug/using-variables-in-your-job-settings.html#using-settings-variables-with-streaming-outputs
* To not generate I-frame only video segments: Leave blank.
*
* @var string|null
*/
private $dashIframeTrickPlayNameModifier;

/**
* Specify how MediaConvert writes SegmentTimeline in your output DASH manifest. To write a SegmentTimeline in each
* video Representation: Keep the default value, Basic. To write a common SegmentTimeline in the video AdaptationSet:
Expand Down Expand Up @@ -276,6 +289,7 @@ final class CmafGroupSettings
* BaseUrl?: null|string,
* ClientCache?: null|CmafClientCache::*,
* CodecSpecification?: null|CmafCodecSpecification::*,
* DashIFrameTrickPlayNameModifier?: null|string,
* DashManifestStyle?: null|DashManifestStyle::*,
* Destination?: null|string,
* DestinationSettings?: null|DestinationSettings|array,
Expand Down Expand Up @@ -307,6 +321,7 @@ public function __construct(array $input)
$this->baseUrl = $input['BaseUrl'] ?? null;
$this->clientCache = $input['ClientCache'] ?? null;
$this->codecSpecification = $input['CodecSpecification'] ?? null;
$this->dashIframeTrickPlayNameModifier = $input['DashIFrameTrickPlayNameModifier'] ?? null;
$this->dashManifestStyle = $input['DashManifestStyle'] ?? null;
$this->destination = $input['Destination'] ?? null;
$this->destinationSettings = isset($input['DestinationSettings']) ? DestinationSettings::create($input['DestinationSettings']) : null;
Expand Down Expand Up @@ -338,6 +353,7 @@ public function __construct(array $input)
* BaseUrl?: null|string,
* ClientCache?: null|CmafClientCache::*,
* CodecSpecification?: null|CmafCodecSpecification::*,
* DashIFrameTrickPlayNameModifier?: null|string,
* DashManifestStyle?: null|DashManifestStyle::*,
* Destination?: null|string,
* DestinationSettings?: null|DestinationSettings|array,
Expand Down Expand Up @@ -397,6 +413,11 @@ public function getCodecSpecification(): ?string
return $this->codecSpecification;
}

public function getDashIframeTrickPlayNameModifier(): ?string
{
return $this->dashIframeTrickPlayNameModifier;
}

/**
* @return DashManifestStyle::*|null
*/
Expand Down Expand Up @@ -586,6 +607,9 @@ public function requestBody(): array
}
$payload['codecSpecification'] = $v;
}
if (null !== $v = $this->dashIframeTrickPlayNameModifier) {
$payload['dashIFrameTrickPlayNameModifier'] = $v;
}
if (null !== $v = $this->dashManifestStyle) {
if (!DashManifestStyle::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "dashManifestStyle" for "%s". The value "%s" is not a valid "DashManifestStyle".', __CLASS__, $v));
Expand Down
24 changes: 24 additions & 0 deletions src/ValueObject/DashIsoGroupSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ final class DashIsoGroupSettings
*/
private $baseUrl;

/**
* Specify whether MediaConvert generates I-frame only video segments for DASH trick play, also known as trick mode.
* When specified, the I-frame only video segments are included within an additional AdaptationSet in your DASH output
* manifest. To generate I-frame only video segments: Enter a name as a text string, up to 256 character long. This name
* is appended to the end of this output group's base filename, that you specify as part of your destination URI, and
* used for the I-frame only video segment files. You may also include format identifiers. For more information, see:
* https://docs.aws.amazon.com/mediaconvert/latest/ug/using-variables-in-your-job-settings.html#using-settings-variables-with-streaming-outputs
* To not generate I-frame only video segments: Leave blank.
*
* @var string|null
*/
private $dashIframeTrickPlayNameModifier;

/**
* Specify how MediaConvert writes SegmentTimeline in your output DASH manifest. To write a SegmentTimeline in each
* video Representation: Keep the default value, Basic. To write a common SegmentTimeline in the video AdaptationSet:
Expand Down Expand Up @@ -226,6 +239,7 @@ final class DashIsoGroupSettings
* AdditionalManifests?: null|array<DashAdditionalManifest|array>,
* AudioChannelConfigSchemeIdUri?: null|DashIsoGroupAudioChannelConfigSchemeIdUri::*,
* BaseUrl?: null|string,
* DashIFrameTrickPlayNameModifier?: null|string,
* DashManifestStyle?: null|DashManifestStyle::*,
* Destination?: null|string,
* DestinationSettings?: null|DestinationSettings|array,
Expand All @@ -251,6 +265,7 @@ public function __construct(array $input)
$this->additionalManifests = isset($input['AdditionalManifests']) ? array_map([DashAdditionalManifest::class, 'create'], $input['AdditionalManifests']) : null;
$this->audioChannelConfigSchemeIdUri = $input['AudioChannelConfigSchemeIdUri'] ?? null;
$this->baseUrl = $input['BaseUrl'] ?? null;
$this->dashIframeTrickPlayNameModifier = $input['DashIFrameTrickPlayNameModifier'] ?? null;
$this->dashManifestStyle = $input['DashManifestStyle'] ?? null;
$this->destination = $input['Destination'] ?? null;
$this->destinationSettings = isset($input['DestinationSettings']) ? DestinationSettings::create($input['DestinationSettings']) : null;
Expand All @@ -276,6 +291,7 @@ public function __construct(array $input)
* AdditionalManifests?: null|array<DashAdditionalManifest|array>,
* AudioChannelConfigSchemeIdUri?: null|DashIsoGroupAudioChannelConfigSchemeIdUri::*,
* BaseUrl?: null|string,
* DashIFrameTrickPlayNameModifier?: null|string,
* DashManifestStyle?: null|DashManifestStyle::*,
* Destination?: null|string,
* DestinationSettings?: null|DestinationSettings|array,
Expand Down Expand Up @@ -322,6 +338,11 @@ public function getBaseUrl(): ?string
return $this->baseUrl;
}

public function getDashIframeTrickPlayNameModifier(): ?string
{
return $this->dashIframeTrickPlayNameModifier;
}

/**
* @return DashManifestStyle::*|null
*/
Expand Down Expand Up @@ -465,6 +486,9 @@ public function requestBody(): array
if (null !== $v = $this->baseUrl) {
$payload['baseUrl'] = $v;
}
if (null !== $v = $this->dashIframeTrickPlayNameModifier) {
$payload['dashIFrameTrickPlayNameModifier'] = $v;
}
if (null !== $v = $this->dashManifestStyle) {
if (!DashManifestStyle::exists($v)) {
throw new InvalidArgument(sprintf('Invalid parameter "dashManifestStyle" for "%s". The value "%s" is not a valid "DashManifestStyle".', __CLASS__, $v));
Expand Down
Loading

0 comments on commit d550870

Please sign in to comment.