Skip to content

Update generated code #1890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"${LATEST}": "3.343.1"
"${LATEST}": "3.343.4"
},
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
"services": {
Expand Down
6 changes: 6 additions & 0 deletions psalm.baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,35 +207,41 @@
<code>$items</code>
<code>$items</code>
<code>$items</code>
<code>$items</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[list<AudioChannelTag::*>]]></code>
<code><![CDATA[list<HlsAdMarkers::*>]]></code>
<code><![CDATA[list<TeletextPageType::*>]]></code>
<code><![CDATA[list<FrameMetricType::*>]]></code>
</MoreSpecificReturnType>
</file>
<file src="src/Service/MediaConvert/src/Result/GetJobResponse.php">
<LessSpecificReturnStatement>
<code>$items</code>
<code>$items</code>
<code>$items</code>
<code>$items</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[list<AudioChannelTag::*>]]></code>
<code><![CDATA[list<HlsAdMarkers::*>]]></code>
<code><![CDATA[list<TeletextPageType::*>]]></code>
<code><![CDATA[list<FrameMetricType::*>]]></code>
</MoreSpecificReturnType>
</file>
<file src="src/Service/MediaConvert/src/Result/ListJobsResponse.php">
<LessSpecificReturnStatement>
<code>$items</code>
<code>$items</code>
<code>$items</code>
<code>$items</code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[list<AudioChannelTag::*>]]></code>
<code><![CDATA[list<HlsAdMarkers::*>]]></code>
<code><![CDATA[list<TeletextPageType::*>]]></code>
<code><![CDATA[list<FrameMetricType::*>]]></code>
</MoreSpecificReturnType>
</file>
<file src="src/Service/Rekognition/src/Result/IndexFacesResponse.php">
Expand Down
4 changes: 4 additions & 0 deletions src/Service/MediaConvert/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 adds an optional sidecar per-frame video quality metrics report and an ALL_PCM option for audio selectors. It also changes the data type for Probe API response fields related to video and audio bitrate from integer to double.

### Changed

- Sort exception alphabetically.
Expand Down
2 changes: 1 addition & 1 deletion src/Service/MediaConvert/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.7-dev"
"dev-master": "1.8-dev"
}
}
}
2 changes: 2 additions & 0 deletions src/Service/MediaConvert/src/Enum/AudioSelectorType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
final class AudioSelectorType
{
public const ALL_PCM = 'ALL_PCM';
public const HLS_RENDITION_GROUP = 'HLS_RENDITION_GROUP';
public const LANGUAGE_CODE = 'LANGUAGE_CODE';
public const PID = 'PID';
Expand All @@ -15,6 +16,7 @@ final class AudioSelectorType
public static function exists(string $value): bool
{
return isset([
self::ALL_PCM => true,
self::HLS_RENDITION_GROUP => true,
self::LANGUAGE_CODE => true,
self::PID => true,
Expand Down
31 changes: 31 additions & 0 deletions src/Service/MediaConvert/src/Enum/FrameMetricType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace AsyncAws\MediaConvert\Enum;

/**
* * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity
* Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment
* Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate
* control mode.
*/
final class FrameMetricType
{
public const MS_SSIM = 'MS_SSIM';
public const PSNR = 'PSNR';
public const PSNR_HVS = 'PSNR_HVS';
public const QVBR = 'QVBR';
public const SSIM = 'SSIM';
public const VMAF = 'VMAF';

public static function exists(string $value): bool
{
return isset([
self::MS_SSIM => true,
self::PSNR => true,
self::PSNR_HVS => true,
self::QVBR => true,
self::SSIM => true,
self::VMAF => true,
][$value]);
}
}
7 changes: 3 additions & 4 deletions src/Service/MediaConvert/src/Input/CreateJobRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use AsyncAws\MediaConvert\ValueObject\AccelerationSettings;
use AsyncAws\MediaConvert\ValueObject\HopDestination;
use AsyncAws\MediaConvert\ValueObject\JobSettings;
use AsyncAws\MediaConvert\ValueObject\Output;

/**
* Send your create job request with your job settings and IAM role. Optionally, include user metadata and the ARN for
Expand All @@ -29,10 +30,8 @@ final class CreateJobRequest extends Input1
private $accelerationSettings;

/**
* Optional. Choose a tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert
* costs on any billing report that you set up. Any transcoding outputs that don't have an associated tag will appear in
* your billing report unsorted. If you don't choose a valid value for this field, your job outputs will appear on the
* billing report unsorted.
* Optionally choose a Billing tags source that AWS Billing and Cost Management will use to display tags for individual
* output costs on any billing report that you set up. Leave blank to use the default value, Job.
*
* @var BillingTagsSource::*|null
*/
Expand Down
25 changes: 25 additions & 0 deletions src/Service/MediaConvert/src/Result/CreateJobResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use AsyncAws\Core\Response;
use AsyncAws\Core\Result;
use AsyncAws\MediaConvert\Enum\AudioChannelTag;
use AsyncAws\MediaConvert\Enum\FrameMetricType;
use AsyncAws\MediaConvert\Enum\HlsAdMarkers;
use AsyncAws\MediaConvert\Enum\TeletextPageType;
use AsyncAws\MediaConvert\ValueObject\AacSettings;
Expand Down Expand Up @@ -413,6 +414,7 @@ private function populateResultAv1Settings(array $json): Av1Settings
'GopSize' => isset($json['gopSize']) ? (float) $json['gopSize'] : null,
'MaxBitrate' => isset($json['maxBitrate']) ? (int) $json['maxBitrate'] : null,
'NumberBFramesBetweenReferenceFrames' => isset($json['numberBFramesBetweenReferenceFrames']) ? (int) $json['numberBFramesBetweenReferenceFrames'] : null,
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
'QvbrSettings' => empty($json['qvbrSettings']) ? null : $this->populateResultAv1QvbrSettings($json['qvbrSettings']),
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
'Slices' => isset($json['slices']) ? (int) $json['slices'] : null,
Expand All @@ -437,6 +439,7 @@ private function populateResultAvcIntraSettings(array $json): AvcIntraSettings
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
'InterlaceMode' => isset($json['interlaceMode']) ? (string) $json['interlaceMode'] : null,
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
'ScanTypeConversionMode' => isset($json['scanTypeConversionMode']) ? (string) $json['scanTypeConversionMode'] : null,
'SlowPal' => isset($json['slowPal']) ? (string) $json['slowPal'] : null,
'Telecine' => isset($json['telecine']) ? (string) $json['telecine'] : null,
Expand Down Expand Up @@ -1078,6 +1081,7 @@ private function populateResultH264Settings(array $json): H264Settings
'ParControl' => isset($json['parControl']) ? (string) $json['parControl'] : null,
'ParDenominator' => isset($json['parDenominator']) ? (int) $json['parDenominator'] : null,
'ParNumerator' => isset($json['parNumerator']) ? (int) $json['parNumerator'] : null,
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
'QualityTuningLevel' => isset($json['qualityTuningLevel']) ? (string) $json['qualityTuningLevel'] : null,
'QvbrSettings' => empty($json['qvbrSettings']) ? null : $this->populateResultH264QvbrSettings($json['qvbrSettings']),
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
Expand Down Expand Up @@ -1138,6 +1142,7 @@ private function populateResultH265Settings(array $json): H265Settings
'ParControl' => isset($json['parControl']) ? (string) $json['parControl'] : null,
'ParDenominator' => isset($json['parDenominator']) ? (int) $json['parDenominator'] : null,
'ParNumerator' => isset($json['parNumerator']) ? (int) $json['parNumerator'] : null,
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
'QualityTuningLevel' => isset($json['qualityTuningLevel']) ? (string) $json['qualityTuningLevel'] : null,
'QvbrSettings' => empty($json['qvbrSettings']) ? null : $this->populateResultH265QvbrSettings($json['qvbrSettings']),
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
Expand Down Expand Up @@ -1692,6 +1697,7 @@ private function populateResultMpeg2Settings(array $json): Mpeg2Settings
'ParControl' => isset($json['parControl']) ? (string) $json['parControl'] : null,
'ParDenominator' => isset($json['parDenominator']) ? (int) $json['parDenominator'] : null,
'ParNumerator' => isset($json['parNumerator']) ? (int) $json['parNumerator'] : null,
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
'QualityTuningLevel' => isset($json['qualityTuningLevel']) ? (string) $json['qualityTuningLevel'] : null,
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
'ScanTypeConversionMode' => isset($json['scanTypeConversionMode']) ? (string) $json['scanTypeConversionMode'] : null,
Expand Down Expand Up @@ -1888,6 +1894,7 @@ private function populateResultOutputGroupSettings(array $json): OutputGroupSett
'FileGroupSettings' => empty($json['fileGroupSettings']) ? null : $this->populateResultFileGroupSettings($json['fileGroupSettings']),
'HlsGroupSettings' => empty($json['hlsGroupSettings']) ? null : $this->populateResultHlsGroupSettings($json['hlsGroupSettings']),
'MsSmoothGroupSettings' => empty($json['msSmoothGroupSettings']) ? null : $this->populateResultMsSmoothGroupSettings($json['msSmoothGroupSettings']),
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
'Type' => isset($json['type']) ? (string) $json['type'] : null,
]);
}
Expand Down Expand Up @@ -1919,6 +1926,7 @@ private function populateResultProresSettings(array $json): ProresSettings
'ParControl' => isset($json['parControl']) ? (string) $json['parControl'] : null,
'ParDenominator' => isset($json['parDenominator']) ? (int) $json['parDenominator'] : null,
'ParNumerator' => isset($json['parNumerator']) ? (int) $json['parNumerator'] : null,
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
'ScanTypeConversionMode' => isset($json['scanTypeConversionMode']) ? (string) $json['scanTypeConversionMode'] : null,
'SlowPal' => isset($json['slowPal']) ? (string) $json['slowPal'] : null,
'Telecine' => isset($json['telecine']) ? (string) $json['telecine'] : null,
Expand Down Expand Up @@ -2394,6 +2402,7 @@ private function populateResultXavcSettings(array $json): XavcSettings
'FramerateConversionAlgorithm' => isset($json['framerateConversionAlgorithm']) ? (string) $json['framerateConversionAlgorithm'] : null,
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
'Profile' => isset($json['profile']) ? (string) $json['profile'] : null,
'SlowPal' => isset($json['slowPal']) ? (string) $json['slowPal'] : null,
'Softness' => isset($json['softness']) ? (int) $json['softness'] : null,
Expand Down Expand Up @@ -2527,6 +2536,22 @@ private function populateResult__listOfForceIncludeRenditionSize(array $json): a
return $items;
}

/**
* @return list<FrameMetricType::*>
*/
private function populateResult__listOfFrameMetricType(array $json): array
{
$items = [];
foreach ($json as $item) {
$a = isset($item) ? (string) $item : null;
if (null !== $a) {
$items[] = $a;
}
}

return $items;
}

/**
* @return list<HlsAdMarkers::*>
*/
Expand Down
Loading