Skip to content

Commit 2c75068

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

File tree

12 files changed

+92
-6
lines changed

12 files changed

+92
-6
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.273.4"
3+
"${LATEST}": "3.273.5"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/DynamoDb/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS enhancement: Documentation updates.
8+
59
## 1.4.0
610

711
### Added

src/Service/DynamoDb/src/DynamoDbClient.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,8 @@ public function deleteTable($input): DeleteTableOutput
403403
}
404404

405405
/**
406-
* Returns the regional endpoint information. This action must be included in your VPC endpoint policies, or access to
407-
* the DescribeEndpoints API will be denied. For more information on policy permissions, please see Internetwork traffic
408-
* privacy [^1].
406+
* Returns the regional endpoint information. For more information on policy permissions, please see Internetwork
407+
* traffic privacy [^1].
409408
*
410409
* [^1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/inter-network-traffic-privacy.html#inter-network-traffic-DescribeEndpoints
411410
*

src/Service/MediaConvert/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
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 introduces the bandwidth reduction filter for the HEVC encoder, increases the limits of outputs per job, and updates support for the Nagra SDK to version 1.14.7.
8+
59
## 0.1.0
610

711
First version
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace AsyncAws\MediaConvert\Enum;
4+
5+
/**
6+
* Specify whether MediaConvert generates HLS manifests while your job is running or when your job is complete. To
7+
* generate HLS manifests while your job is running: Choose Enabled. Use if you want to play back your content as soon
8+
* as it's available. MediaConvert writes the parent and child manifests after the first three media segments are
9+
* written to your destination S3 bucket. It then writes new updated manifests after each additional segment is written.
10+
* The parent manifest includes the latest BANDWIDTH and AVERAGE-BANDWIDTH attributes, and child manifests include the
11+
* latest available media segment. When your job completes, the final child playlists include an EXT-X-ENDLIST tag. To
12+
* generate HLS manifests only when your job completes: Choose Disabled.
13+
*/
14+
final class HlsProgressiveWriteHlsManifest
15+
{
16+
public const DISABLED = 'DISABLED';
17+
public const ENABLED = 'ENABLED';
18+
19+
public static function exists(string $value): bool
20+
{
21+
return isset([
22+
self::DISABLED => true,
23+
self::ENABLED => true,
24+
][$value]);
25+
}
26+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ private function populateResultH265Settings(array $json): H265Settings
924924
return new H265Settings([
925925
'AdaptiveQuantization' => isset($json['adaptiveQuantization']) ? (string) $json['adaptiveQuantization'] : null,
926926
'AlternateTransferFunctionSei' => isset($json['alternateTransferFunctionSei']) ? (string) $json['alternateTransferFunctionSei'] : null,
927+
'BandwidthReductionFilter' => empty($json['bandwidthReductionFilter']) ? null : $this->populateResultBandwidthReductionFilter($json['bandwidthReductionFilter']),
927928
'Bitrate' => isset($json['bitrate']) ? (int) $json['bitrate'] : null,
928929
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
929930
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
@@ -1048,6 +1049,7 @@ private function populateResultHlsGroupSettings(array $json): HlsGroupSettings
10481049
'OutputSelection' => isset($json['outputSelection']) ? (string) $json['outputSelection'] : null,
10491050
'ProgramDateTime' => isset($json['programDateTime']) ? (string) $json['programDateTime'] : null,
10501051
'ProgramDateTimePeriod' => isset($json['programDateTimePeriod']) ? (int) $json['programDateTimePeriod'] : null,
1052+
'ProgressiveWriteHlsManifest' => isset($json['progressiveWriteHlsManifest']) ? (string) $json['progressiveWriteHlsManifest'] : null,
10511053
'SegmentControl' => isset($json['segmentControl']) ? (string) $json['segmentControl'] : null,
10521054
'SegmentLength' => isset($json['segmentLength']) ? (int) $json['segmentLength'] : null,
10531055
'SegmentLengthControl' => isset($json['segmentLengthControl']) ? (string) $json['segmentLengthControl'] : null,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ private function populateResultH265Settings(array $json): H265Settings
924924
return new H265Settings([
925925
'AdaptiveQuantization' => isset($json['adaptiveQuantization']) ? (string) $json['adaptiveQuantization'] : null,
926926
'AlternateTransferFunctionSei' => isset($json['alternateTransferFunctionSei']) ? (string) $json['alternateTransferFunctionSei'] : null,
927+
'BandwidthReductionFilter' => empty($json['bandwidthReductionFilter']) ? null : $this->populateResultBandwidthReductionFilter($json['bandwidthReductionFilter']),
927928
'Bitrate' => isset($json['bitrate']) ? (int) $json['bitrate'] : null,
928929
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
929930
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
@@ -1048,6 +1049,7 @@ private function populateResultHlsGroupSettings(array $json): HlsGroupSettings
10481049
'OutputSelection' => isset($json['outputSelection']) ? (string) $json['outputSelection'] : null,
10491050
'ProgramDateTime' => isset($json['programDateTime']) ? (string) $json['programDateTime'] : null,
10501051
'ProgramDateTimePeriod' => isset($json['programDateTimePeriod']) ? (int) $json['programDateTimePeriod'] : null,
1052+
'ProgressiveWriteHlsManifest' => isset($json['progressiveWriteHlsManifest']) ? (string) $json['progressiveWriteHlsManifest'] : null,
10511053
'SegmentControl' => isset($json['segmentControl']) ? (string) $json['segmentControl'] : null,
10521054
'SegmentLength' => isset($json['segmentLength']) ? (int) $json['segmentLength'] : null,
10531055
'SegmentLengthControl' => isset($json['segmentLengthControl']) ? (string) $json['segmentLengthControl'] : null,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,7 @@ private function populateResultH265Settings(array $json): H265Settings
989989
return new H265Settings([
990990
'AdaptiveQuantization' => isset($json['adaptiveQuantization']) ? (string) $json['adaptiveQuantization'] : null,
991991
'AlternateTransferFunctionSei' => isset($json['alternateTransferFunctionSei']) ? (string) $json['alternateTransferFunctionSei'] : null,
992+
'BandwidthReductionFilter' => empty($json['bandwidthReductionFilter']) ? null : $this->populateResultBandwidthReductionFilter($json['bandwidthReductionFilter']),
992993
'Bitrate' => isset($json['bitrate']) ? (int) $json['bitrate'] : null,
993994
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
994995
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
@@ -1113,6 +1114,7 @@ private function populateResultHlsGroupSettings(array $json): HlsGroupSettings
11131114
'OutputSelection' => isset($json['outputSelection']) ? (string) $json['outputSelection'] : null,
11141115
'ProgramDateTime' => isset($json['programDateTime']) ? (string) $json['programDateTime'] : null,
11151116
'ProgramDateTimePeriod' => isset($json['programDateTimePeriod']) ? (int) $json['programDateTimePeriod'] : null,
1117+
'ProgressiveWriteHlsManifest' => isset($json['progressiveWriteHlsManifest']) ? (string) $json['progressiveWriteHlsManifest'] : null,
11161118
'SegmentControl' => isset($json['segmentControl']) ? (string) $json['segmentControl'] : null,
11171119
'SegmentLength' => isset($json['segmentLength']) ? (int) $json['segmentLength'] : null,
11181120
'SegmentLengthControl' => isset($json['segmentLengthControl']) ? (string) $json['segmentLengthControl'] : null,

src/Service/MediaConvert/src/ValueObject/CaptionSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
/**
99
* Use captions selectors to specify the captions data from your input that you use in your outputs. You can use up to
10-
* 20 captions selectors per input.
10+
* 100 captions selectors per input.
1111
*/
1212
final class CaptionSelector
1313
{

src/Service/MediaConvert/src/ValueObject/H265Settings.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ final class H265Settings
5151
*/
5252
private $alternateTransferFunctionSei;
5353

54+
/**
55+
* The Bandwidth reduction filter increases the video quality of your output relative to its bitrate. Use to lower the
56+
* bitrate of your constant quality QVBR output, with little or no perceptual decrease in quality. Or, use to increase
57+
* the video quality of outputs with other rate control modes relative to the bitrate that you specify. Bandwidth
58+
* reduction increases further when your input is low quality or noisy. Outputs that use this feature incur pro-tier
59+
* pricing. When you include Bandwidth reduction filter, you cannot include the Noise reducer preprocessor.
60+
*/
61+
private $bandwidthReductionFilter;
62+
5463
/**
5564
* Specify the average bitrate in bits per second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be
5665
* unique when rounded down to the nearest multiple of 1000.
@@ -383,6 +392,7 @@ final class H265Settings
383392
* @param array{
384393
* AdaptiveQuantization?: null|H265AdaptiveQuantization::*,
385394
* AlternateTransferFunctionSei?: null|H265AlternateTransferFunctionSei::*,
395+
* BandwidthReductionFilter?: null|BandwidthReductionFilter|array,
386396
* Bitrate?: null|int,
387397
* CodecLevel?: null|H265CodecLevel::*,
388398
* CodecProfile?: null|H265CodecProfile::*,
@@ -428,6 +438,7 @@ public function __construct(array $input)
428438
{
429439
$this->adaptiveQuantization = $input['AdaptiveQuantization'] ?? null;
430440
$this->alternateTransferFunctionSei = $input['AlternateTransferFunctionSei'] ?? null;
441+
$this->bandwidthReductionFilter = isset($input['BandwidthReductionFilter']) ? BandwidthReductionFilter::create($input['BandwidthReductionFilter']) : null;
431442
$this->bitrate = $input['Bitrate'] ?? null;
432443
$this->codecLevel = $input['CodecLevel'] ?? null;
433444
$this->codecProfile = $input['CodecProfile'] ?? null;
@@ -490,6 +501,11 @@ public function getAlternateTransferFunctionSei(): ?string
490501
return $this->alternateTransferFunctionSei;
491502
}
492503

504+
public function getBandwidthReductionFilter(): ?BandwidthReductionFilter
505+
{
506+
return $this->bandwidthReductionFilter;
507+
}
508+
493509
public function getBitrate(): ?int
494510
{
495511
return $this->bitrate;
@@ -772,6 +788,9 @@ public function requestBody(): array
772788
}
773789
$payload['alternateTransferFunctionSei'] = $v;
774790
}
791+
if (null !== $v = $this->bandwidthReductionFilter) {
792+
$payload['bandwidthReductionFilter'] = $v->requestBody();
793+
}
775794
if (null !== $v = $this->bitrate) {
776795
$payload['bitrate'] = $v;
777796
}

0 commit comments

Comments
 (0)