Skip to content

Commit 8e896d1

Browse files
committed
update generated code
1 parent 77429f0 commit 8e896d1

File tree

11 files changed

+116
-4
lines changed

11 files changed

+116
-4
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.335.0"
3+
"${LATEST}": "3.336.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: 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 adds support for inserting timecode tracks into MP4 container outputs.
8+
59
## 1.4.1
610

711
### Changed

src/Service/MediaConvert/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.4-dev"
31+
"dev-master": "1.5-dev"
3232
}
3333
}
3434
}

src/Service/MediaConvert/src/Enum/DropFrameTimecode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Applies only to 29.97 fps outputs. When this feature is enabled, the service will use drop-frame timecode on outputs.
77
* If it is not possible to use drop-frame timecode, the system will fall back to non-drop-frame. This setting is
8-
* enabled by default when Timecode insertion is enabled.
8+
* enabled by default when Timecode insertion or Timecode track is enabled.
99
*/
1010
final class DropFrameTimecode
1111
{
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace AsyncAws\MediaConvert\Enum;
4+
5+
/**
6+
* Optionally remove any tts:rubyReserve attributes present in your input, that do not have a tts:ruby attribute in the
7+
* same element, from your output. Use if your vertical Japanese output captions have alignment issues. To remove ruby
8+
* reserve attributes when present: Choose Enabled. To not remove any ruby reserve attributes: Keep the default value,
9+
* Disabled.
10+
*/
11+
final class RemoveRubyReserveAttributes
12+
{
13+
public const DISABLED = 'DISABLED';
14+
public const ENABLED = 'ENABLED';
15+
16+
public static function exists(string $value): bool
17+
{
18+
return isset([
19+
self::DISABLED => true,
20+
self::ENABLED => true,
21+
][$value]);
22+
}
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace AsyncAws\MediaConvert\Enum;
4+
5+
/**
6+
* To include a timecode track in your MP4 output: Choose Enabled. MediaConvert writes the timecode track in the Null
7+
* Media Header box (NMHD), without any timecode text formatting information. You can also specify dropframe or
8+
* non-dropframe timecode under the Drop Frame Timecode setting. To not include a timecode track: Keep the default
9+
* value, Disabled.
10+
*/
11+
final class TimecodeTrack
12+
{
13+
public const DISABLED = 'DISABLED';
14+
public const ENABLED = 'ENABLED';
15+
16+
public static function exists(string $value): bool
17+
{
18+
return isset([
19+
self::DISABLED => true,
20+
self::ENABLED => true,
21+
][$value]);
22+
}
23+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ private function populateResultBurninDestinationSettings(array $json): BurninDes
475475
'HexFontColor' => isset($json['hexFontColor']) ? (string) $json['hexFontColor'] : null,
476476
'OutlineColor' => isset($json['outlineColor']) ? (string) $json['outlineColor'] : null,
477477
'OutlineSize' => isset($json['outlineSize']) ? (int) $json['outlineSize'] : null,
478+
'RemoveRubyReserveAttributes' => isset($json['removeRubyReserveAttributes']) ? (string) $json['removeRubyReserveAttributes'] : null,
478479
'ShadowColor' => isset($json['shadowColor']) ? (string) $json['shadowColor'] : null,
479480
'ShadowOpacity' => isset($json['shadowOpacity']) ? (int) $json['shadowOpacity'] : null,
480481
'ShadowXOffset' => isset($json['shadowXOffset']) ? (int) $json['shadowXOffset'] : null,
@@ -2126,6 +2127,7 @@ private function populateResultVideoDescription(array $json): VideoDescription
21262127
'ScalingBehavior' => isset($json['scalingBehavior']) ? (string) $json['scalingBehavior'] : null,
21272128
'Sharpness' => isset($json['sharpness']) ? (int) $json['sharpness'] : null,
21282129
'TimecodeInsertion' => isset($json['timecodeInsertion']) ? (string) $json['timecodeInsertion'] : null,
2130+
'TimecodeTrack' => isset($json['timecodeTrack']) ? (string) $json['timecodeTrack'] : null,
21292131
'VideoPreprocessors' => empty($json['videoPreprocessors']) ? null : $this->populateResultVideoPreprocessor($json['videoPreprocessors']),
21302132
'Width' => isset($json['width']) ? (int) $json['width'] : null,
21312133
]);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ private function populateResultBurninDestinationSettings(array $json): BurninDes
475475
'HexFontColor' => isset($json['hexFontColor']) ? (string) $json['hexFontColor'] : null,
476476
'OutlineColor' => isset($json['outlineColor']) ? (string) $json['outlineColor'] : null,
477477
'OutlineSize' => isset($json['outlineSize']) ? (int) $json['outlineSize'] : null,
478+
'RemoveRubyReserveAttributes' => isset($json['removeRubyReserveAttributes']) ? (string) $json['removeRubyReserveAttributes'] : null,
478479
'ShadowColor' => isset($json['shadowColor']) ? (string) $json['shadowColor'] : null,
479480
'ShadowOpacity' => isset($json['shadowOpacity']) ? (int) $json['shadowOpacity'] : null,
480481
'ShadowXOffset' => isset($json['shadowXOffset']) ? (int) $json['shadowXOffset'] : null,
@@ -2126,6 +2127,7 @@ private function populateResultVideoDescription(array $json): VideoDescription
21262127
'ScalingBehavior' => isset($json['scalingBehavior']) ? (string) $json['scalingBehavior'] : null,
21272128
'Sharpness' => isset($json['sharpness']) ? (int) $json['sharpness'] : null,
21282129
'TimecodeInsertion' => isset($json['timecodeInsertion']) ? (string) $json['timecodeInsertion'] : null,
2130+
'TimecodeTrack' => isset($json['timecodeTrack']) ? (string) $json['timecodeTrack'] : null,
21292131
'VideoPreprocessors' => empty($json['videoPreprocessors']) ? null : $this->populateResultVideoPreprocessor($json['videoPreprocessors']),
21302132
'Width' => isset($json['width']) ? (int) $json['width'] : null,
21312133
]);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ private function populateResultBurninDestinationSettings(array $json): BurninDes
542542
'HexFontColor' => isset($json['hexFontColor']) ? (string) $json['hexFontColor'] : null,
543543
'OutlineColor' => isset($json['outlineColor']) ? (string) $json['outlineColor'] : null,
544544
'OutlineSize' => isset($json['outlineSize']) ? (int) $json['outlineSize'] : null,
545+
'RemoveRubyReserveAttributes' => isset($json['removeRubyReserveAttributes']) ? (string) $json['removeRubyReserveAttributes'] : null,
545546
'ShadowColor' => isset($json['shadowColor']) ? (string) $json['shadowColor'] : null,
546547
'ShadowOpacity' => isset($json['shadowOpacity']) ? (int) $json['shadowOpacity'] : null,
547548
'ShadowXOffset' => isset($json['shadowXOffset']) ? (int) $json['shadowXOffset'] : null,
@@ -2193,6 +2194,7 @@ private function populateResultVideoDescription(array $json): VideoDescription
21932194
'ScalingBehavior' => isset($json['scalingBehavior']) ? (string) $json['scalingBehavior'] : null,
21942195
'Sharpness' => isset($json['sharpness']) ? (int) $json['sharpness'] : null,
21952196
'TimecodeInsertion' => isset($json['timecodeInsertion']) ? (string) $json['timecodeInsertion'] : null,
2197+
'TimecodeTrack' => isset($json['timecodeTrack']) ? (string) $json['timecodeTrack'] : null,
21962198
'VideoPreprocessors' => empty($json['videoPreprocessors']) ? null : $this->populateResultVideoPreprocessor($json['videoPreprocessors']),
21972199
'Width' => isset($json['width']) ? (int) $json['width'] : null,
21982200
]);

src/Service/MediaConvert/src/ValueObject/BurninDestinationSettings.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use AsyncAws\MediaConvert\Enum\BurnInSubtitleStylePassthrough;
1414
use AsyncAws\MediaConvert\Enum\BurninSubtitleTeletextSpacing;
1515
use AsyncAws\MediaConvert\Enum\FontScript;
16+
use AsyncAws\MediaConvert\Enum\RemoveRubyReserveAttributes;
1617

1718
/**
1819
* Burn-in is a captions delivery method, rather than a captions format. Burn-in writes the captions directly on your
@@ -168,6 +169,16 @@ final class BurninDestinationSettings
168169
*/
169170
private $outlineSize;
170171

172+
/**
173+
* Optionally remove any tts:rubyReserve attributes present in your input, that do not have a tts:ruby attribute in the
174+
* same element, from your output. Use if your vertical Japanese output captions have alignment issues. To remove ruby
175+
* reserve attributes when present: Choose Enabled. To not remove any ruby reserve attributes: Keep the default value,
176+
* Disabled.
177+
*
178+
* @var RemoveRubyReserveAttributes::*|null
179+
*/
180+
private $removeRubyReserveAttributes;
181+
171182
/**
172183
* Specify the color of the shadow cast by the captions. Leave Shadow color blank and set Style passthrough to enabled
173184
* to use the shadow color data from your input captions, if present.
@@ -262,6 +273,7 @@ final class BurninDestinationSettings
262273
* HexFontColor?: null|string,
263274
* OutlineColor?: null|BurninSubtitleOutlineColor::*,
264275
* OutlineSize?: null|int,
276+
* RemoveRubyReserveAttributes?: null|RemoveRubyReserveAttributes::*,
265277
* ShadowColor?: null|BurninSubtitleShadowColor::*,
266278
* ShadowOpacity?: null|int,
267279
* ShadowXOffset?: null|int,
@@ -291,6 +303,7 @@ public function __construct(array $input)
291303
$this->hexFontColor = $input['HexFontColor'] ?? null;
292304
$this->outlineColor = $input['OutlineColor'] ?? null;
293305
$this->outlineSize = $input['OutlineSize'] ?? null;
306+
$this->removeRubyReserveAttributes = $input['RemoveRubyReserveAttributes'] ?? null;
294307
$this->shadowColor = $input['ShadowColor'] ?? null;
295308
$this->shadowOpacity = $input['ShadowOpacity'] ?? null;
296309
$this->shadowXoffset = $input['ShadowXOffset'] ?? null;
@@ -320,6 +333,7 @@ public function __construct(array $input)
320333
* HexFontColor?: null|string,
321334
* OutlineColor?: null|BurninSubtitleOutlineColor::*,
322335
* OutlineSize?: null|int,
336+
* RemoveRubyReserveAttributes?: null|RemoveRubyReserveAttributes::*,
323337
* ShadowColor?: null|BurninSubtitleShadowColor::*,
324338
* ShadowOpacity?: null|int,
325339
* ShadowXOffset?: null|int,
@@ -441,6 +455,14 @@ public function getOutlineSize(): ?int
441455
return $this->outlineSize;
442456
}
443457

458+
/**
459+
* @return RemoveRubyReserveAttributes::*|null
460+
*/
461+
public function getRemoveRubyReserveAttributes(): ?string
462+
{
463+
return $this->removeRubyReserveAttributes;
464+
}
465+
444466
/**
445467
* @return BurninSubtitleShadowColor::*|null
446468
*/
@@ -568,6 +590,12 @@ public function requestBody(): array
568590
if (null !== $v = $this->outlineSize) {
569591
$payload['outlineSize'] = $v;
570592
}
593+
if (null !== $v = $this->removeRubyReserveAttributes) {
594+
if (!RemoveRubyReserveAttributes::exists($v)) {
595+
throw new InvalidArgument(\sprintf('Invalid parameter "removeRubyReserveAttributes" for "%s". The value "%s" is not a valid "RemoveRubyReserveAttributes".', __CLASS__, $v));
596+
}
597+
$payload['removeRubyReserveAttributes'] = $v;
598+
}
571599
if (null !== $v = $this->shadowColor) {
572600
if (!BurninSubtitleShadowColor::exists($v)) {
573601
throw new InvalidArgument(\sprintf('Invalid parameter "shadowColor" for "%s". The value "%s" is not a valid "BurninSubtitleShadowColor".', __CLASS__, $v));

0 commit comments

Comments
 (0)