@aws-cdk/aws-medialive-alpha 2.268.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +60888 -0
- package/.jsii.tabl.json.gz +0 -0
- package/.warnings.jsii.js +524 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +1297 -0
- package/grants.json +27 -0
- package/lib/audio-codec-settings.d.ts +901 -0
- package/lib/audio-codec-settings.js +1098 -0
- package/lib/audio-selector.d.ts +170 -0
- package/lib/audio-selector.js +306 -0
- package/lib/avail-settings.d.ts +231 -0
- package/lib/avail-settings.js +226 -0
- package/lib/caption-selector.d.ts +234 -0
- package/lib/caption-selector.js +413 -0
- package/lib/caption-settings.d.ts +349 -0
- package/lib/caption-settings.js +482 -0
- package/lib/channel-features.d.ts +106 -0
- package/lib/channel-features.js +85 -0
- package/lib/channel-placement-group.d.ts +73 -0
- package/lib/channel-placement-group.js +132 -0
- package/lib/channel.d.ts +687 -0
- package/lib/channel.js +1096 -0
- package/lib/cluster.d.ts +129 -0
- package/lib/cluster.js +158 -0
- package/lib/color-correction.d.ts +39 -0
- package/lib/color-correction.js +29 -0
- package/lib/destinations.d.ts +242 -0
- package/lib/destinations.js +455 -0
- package/lib/encode-configuration.d.ts +615 -0
- package/lib/encode-configuration.js +629 -0
- package/lib/enums.d.ts +698 -0
- package/lib/enums.js +1045 -0
- package/lib/file-location.d.ts +65 -0
- package/lib/file-location.js +150 -0
- package/lib/framerate.d.ts +31 -0
- package/lib/framerate.js +71 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +43 -0
- package/lib/input-attachment.d.ts +319 -0
- package/lib/input-attachment.js +228 -0
- package/lib/input-security-group.d.ts +51 -0
- package/lib/input-security-group.js +123 -0
- package/lib/input-specification.d.ts +111 -0
- package/lib/input-specification.js +181 -0
- package/lib/input.d.ts +505 -0
- package/lib/input.js +803 -0
- package/lib/m2ts-settings.d.ts +421 -0
- package/lib/m2ts-settings.js +469 -0
- package/lib/m3u8-settings.d.ts +272 -0
- package/lib/m3u8-settings.js +304 -0
- package/lib/medialive-grants.generated.d.ts +30 -0
- package/lib/medialive-grants.generated.js +92 -0
- package/lib/network.d.ts +83 -0
- package/lib/network.js +132 -0
- package/lib/output-group.d.ts +924 -0
- package/lib/output-group.js +941 -0
- package/lib/outputs.d.ts +304 -0
- package/lib/outputs.js +598 -0
- package/lib/sdi-source.d.ts +124 -0
- package/lib/sdi-source.js +180 -0
- package/lib/shared.d.ts +44 -0
- package/lib/shared.js +146 -0
- package/lib/video-codec-settings.d.ts +1500 -0
- package/lib/video-codec-settings.js +1722 -0
- package/lib/video-selection.d.ts +92 -0
- package/lib/video-selection.js +95 -0
- package/package.json +135 -0
- package/rosetta/_generated.ts-fixture +6 -0
- package/rosetta/default.ts-fixture +21 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import type { FileLocation } from './file-location';
|
|
2
|
+
/** Caption alignment for burn-in and DVB-Sub outputs. */
|
|
3
|
+
export declare class CaptionAlignment {
|
|
4
|
+
/** Center the captions. */
|
|
5
|
+
static readonly CENTERED: CaptionAlignment;
|
|
6
|
+
/** Left-align the captions. */
|
|
7
|
+
static readonly LEFT: CaptionAlignment;
|
|
8
|
+
/** Smart: left-justify live subtitles, center-justify pre-recorded subtitles. */
|
|
9
|
+
static readonly SMART: CaptionAlignment;
|
|
10
|
+
/** A value not yet modelled by AWS CDK. */
|
|
11
|
+
static of(value: string): CaptionAlignment;
|
|
12
|
+
/** The underlying string value passed to CloudFormation. */
|
|
13
|
+
readonly value: string;
|
|
14
|
+
private constructor();
|
|
15
|
+
}
|
|
16
|
+
/** Font color for burn-in and DVB-Sub captions. */
|
|
17
|
+
export declare class CaptionFontColor {
|
|
18
|
+
/** Black. */
|
|
19
|
+
static readonly BLACK: CaptionFontColor;
|
|
20
|
+
/** Blue. */
|
|
21
|
+
static readonly BLUE: CaptionFontColor;
|
|
22
|
+
/** Green. */
|
|
23
|
+
static readonly GREEN: CaptionFontColor;
|
|
24
|
+
/** Red. */
|
|
25
|
+
static readonly RED: CaptionFontColor;
|
|
26
|
+
/** White. */
|
|
27
|
+
static readonly WHITE: CaptionFontColor;
|
|
28
|
+
/** Yellow. */
|
|
29
|
+
static readonly YELLOW: CaptionFontColor;
|
|
30
|
+
/** A value not yet modelled by AWS CDK. */
|
|
31
|
+
static of(value: string): CaptionFontColor;
|
|
32
|
+
/** The underlying string value passed to CloudFormation. */
|
|
33
|
+
readonly value: string;
|
|
34
|
+
private constructor();
|
|
35
|
+
}
|
|
36
|
+
/** Font outline color for burn-in and DVB-Sub captions. */
|
|
37
|
+
export declare class CaptionOutlineColor {
|
|
38
|
+
/** Black. */
|
|
39
|
+
static readonly BLACK: CaptionOutlineColor;
|
|
40
|
+
/** Blue. */
|
|
41
|
+
static readonly BLUE: CaptionOutlineColor;
|
|
42
|
+
/** Green. */
|
|
43
|
+
static readonly GREEN: CaptionOutlineColor;
|
|
44
|
+
/** Red. */
|
|
45
|
+
static readonly RED: CaptionOutlineColor;
|
|
46
|
+
/** White. */
|
|
47
|
+
static readonly WHITE: CaptionOutlineColor;
|
|
48
|
+
/** Yellow. */
|
|
49
|
+
static readonly YELLOW: CaptionOutlineColor;
|
|
50
|
+
/** A value not yet modelled by AWS CDK. */
|
|
51
|
+
static of(value: string): CaptionOutlineColor;
|
|
52
|
+
/** The underlying string value passed to CloudFormation. */
|
|
53
|
+
readonly value: string;
|
|
54
|
+
private constructor();
|
|
55
|
+
}
|
|
56
|
+
/** Background color for burn-in and DVB-Sub captions. */
|
|
57
|
+
export declare class CaptionBackgroundColor {
|
|
58
|
+
/** Black. */
|
|
59
|
+
static readonly BLACK: CaptionBackgroundColor;
|
|
60
|
+
/** None (transparent). */
|
|
61
|
+
static readonly NONE: CaptionBackgroundColor;
|
|
62
|
+
/** White. */
|
|
63
|
+
static readonly WHITE: CaptionBackgroundColor;
|
|
64
|
+
/** A value not yet modelled by AWS CDK. */
|
|
65
|
+
static of(value: string): CaptionBackgroundColor;
|
|
66
|
+
/** The underlying string value passed to CloudFormation. */
|
|
67
|
+
readonly value: string;
|
|
68
|
+
private constructor();
|
|
69
|
+
}
|
|
70
|
+
/** Shadow color for burn-in and DVB-Sub captions. */
|
|
71
|
+
export declare class CaptionShadowColor {
|
|
72
|
+
/** Black. */
|
|
73
|
+
static readonly BLACK: CaptionShadowColor;
|
|
74
|
+
/** None (transparent). */
|
|
75
|
+
static readonly NONE: CaptionShadowColor;
|
|
76
|
+
/** White. */
|
|
77
|
+
static readonly WHITE: CaptionShadowColor;
|
|
78
|
+
/** A value not yet modelled by AWS CDK. */
|
|
79
|
+
static of(value: string): CaptionShadowColor;
|
|
80
|
+
/** The underlying string value passed to CloudFormation. */
|
|
81
|
+
readonly value: string;
|
|
82
|
+
private constructor();
|
|
83
|
+
}
|
|
84
|
+
/** Controls whether a fixed grid is used to generate the subtitle bitmap (Teletext input). */
|
|
85
|
+
export declare class CaptionTeletextGridControl {
|
|
86
|
+
/** Fixed grid. */
|
|
87
|
+
static readonly FIXED: CaptionTeletextGridControl;
|
|
88
|
+
/** Scaled grid. */
|
|
89
|
+
static readonly SCALED: CaptionTeletextGridControl;
|
|
90
|
+
/** A value not yet modelled by AWS CDK. */
|
|
91
|
+
static of(value: string): CaptionTeletextGridControl;
|
|
92
|
+
/** The underlying string value passed to CloudFormation. */
|
|
93
|
+
readonly value: string;
|
|
94
|
+
private constructor();
|
|
95
|
+
}
|
|
96
|
+
/** Whether EBU-TT-D fills the gap between multi-line captions. */
|
|
97
|
+
export declare class EbuTtDFillLineGap {
|
|
98
|
+
/** Leave the gap unfilled. */
|
|
99
|
+
static readonly DISABLED: EbuTtDFillLineGap;
|
|
100
|
+
/** Fill with the captions background color. */
|
|
101
|
+
static readonly ENABLED: EbuTtDFillLineGap;
|
|
102
|
+
/** A value not yet modelled by AWS CDK. */
|
|
103
|
+
static of(value: string): EbuTtDFillLineGap;
|
|
104
|
+
/** The underlying string value passed to CloudFormation. */
|
|
105
|
+
readonly value: string;
|
|
106
|
+
private constructor();
|
|
107
|
+
}
|
|
108
|
+
/** Whether EBU-TT-D includes source style information. */
|
|
109
|
+
export declare class EbuTtDStyleControl {
|
|
110
|
+
/** Set the font family to monospaced and exclude other style info. */
|
|
111
|
+
static readonly EXCLUDE: EbuTtDStyleControl;
|
|
112
|
+
/** Include source style (color, position) in the font data. */
|
|
113
|
+
static readonly INCLUDE: EbuTtDStyleControl;
|
|
114
|
+
/** A value not yet modelled by AWS CDK. */
|
|
115
|
+
static of(value: string): EbuTtDStyleControl;
|
|
116
|
+
/** The underlying string value passed to CloudFormation. */
|
|
117
|
+
readonly value: string;
|
|
118
|
+
private constructor();
|
|
119
|
+
}
|
|
120
|
+
/** Whether TTML passes through source style/position. */
|
|
121
|
+
export declare class TtmlStyleControl {
|
|
122
|
+
/** Pass through style and position from a TTML-like source. */
|
|
123
|
+
static readonly PASSTHROUGH: TtmlStyleControl;
|
|
124
|
+
/** Use the configured style. */
|
|
125
|
+
static readonly USE_CONFIGURED: TtmlStyleControl;
|
|
126
|
+
/** A value not yet modelled by AWS CDK. */
|
|
127
|
+
static of(value: string): TtmlStyleControl;
|
|
128
|
+
/** The underlying string value passed to CloudFormation. */
|
|
129
|
+
readonly value: string;
|
|
130
|
+
private constructor();
|
|
131
|
+
}
|
|
132
|
+
/** Whether WebVTT passes through source style/position. */
|
|
133
|
+
export declare class WebvttStyleControl {
|
|
134
|
+
/** Do not pass through style; output contains no font styling. */
|
|
135
|
+
static readonly NO_STYLE_DATA: WebvttStyleControl;
|
|
136
|
+
/** Pass through style (valid only for EMBEDDED or TELETEXT sources). */
|
|
137
|
+
static readonly PASSTHROUGH: WebvttStyleControl;
|
|
138
|
+
/** A value not yet modelled by AWS CDK. */
|
|
139
|
+
static of(value: string): WebvttStyleControl;
|
|
140
|
+
/** The underlying string value passed to CloudFormation. */
|
|
141
|
+
readonly value: string;
|
|
142
|
+
private constructor();
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Font size for burn-in and DVB-Sub captions.
|
|
146
|
+
*
|
|
147
|
+
* Use {@link CaptionFontSize.AUTO} to scale the font size with the output resolution, or
|
|
148
|
+
* {@link CaptionFontSize.of} to set an exact size in points.
|
|
149
|
+
*/
|
|
150
|
+
export declare class CaptionFontSize {
|
|
151
|
+
private readonly value;
|
|
152
|
+
/** Scale the font size automatically to match the output resolution. */
|
|
153
|
+
static readonly AUTO: CaptionFontSize;
|
|
154
|
+
/**
|
|
155
|
+
* An exact font size, in points.
|
|
156
|
+
*
|
|
157
|
+
* @param points the font size in points; must be a positive integer
|
|
158
|
+
*/
|
|
159
|
+
static of(points: number): CaptionFontSize;
|
|
160
|
+
private constructor();
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Font and positioning settings for a rendered caption output (burn-in or DVB-Sub).
|
|
164
|
+
*/
|
|
165
|
+
export interface CaptionFontStyleProps {
|
|
166
|
+
/**
|
|
167
|
+
* Caption alignment. With explicit x/y positions, the font is justified relative to them.
|
|
168
|
+
* @default CaptionAlignment.CENTERED
|
|
169
|
+
*/
|
|
170
|
+
readonly alignment?: CaptionAlignment;
|
|
171
|
+
/**
|
|
172
|
+
* The color of the rectangle behind the captions.
|
|
173
|
+
* @default - service default
|
|
174
|
+
*/
|
|
175
|
+
readonly backgroundColor?: CaptionBackgroundColor;
|
|
176
|
+
/**
|
|
177
|
+
* The opacity of the background rectangle (0 transparent .. 255 opaque).
|
|
178
|
+
* @default - service default
|
|
179
|
+
*/
|
|
180
|
+
readonly backgroundOpacity?: number;
|
|
181
|
+
/**
|
|
182
|
+
* An external font file (.ttf or .tte) used for burn-in. Provide a `FileLocation` referencing
|
|
183
|
+
* an S3 bucket (`FileLocation.fromBucket`, which auto-grants read access) or a URL
|
|
184
|
+
* (`FileLocation.url`).
|
|
185
|
+
* @default - service default font
|
|
186
|
+
*/
|
|
187
|
+
readonly font?: FileLocation;
|
|
188
|
+
/**
|
|
189
|
+
* The color of the burned-in captions.
|
|
190
|
+
* @default CaptionFontColor.WHITE
|
|
191
|
+
*/
|
|
192
|
+
readonly fontColor?: CaptionFontColor;
|
|
193
|
+
/**
|
|
194
|
+
* The opacity of the burned-in captions (0 transparent .. 255 opaque).
|
|
195
|
+
* @default 255
|
|
196
|
+
*/
|
|
197
|
+
readonly fontOpacity?: number;
|
|
198
|
+
/**
|
|
199
|
+
* The font resolution in DPI.
|
|
200
|
+
* @default 96
|
|
201
|
+
*/
|
|
202
|
+
readonly fontResolution?: number;
|
|
203
|
+
/**
|
|
204
|
+
* Font size — `CaptionFontSize.AUTO` to scale with the output, or `CaptionFontSize.of(points)`
|
|
205
|
+
* for an exact size in points.
|
|
206
|
+
* @default CaptionFontSize.AUTO
|
|
207
|
+
*/
|
|
208
|
+
readonly fontSize?: CaptionFontSize;
|
|
209
|
+
/**
|
|
210
|
+
* The font outline color.
|
|
211
|
+
* @default CaptionOutlineColor.BLACK
|
|
212
|
+
*/
|
|
213
|
+
readonly outlineColor?: CaptionOutlineColor;
|
|
214
|
+
/**
|
|
215
|
+
* The font outline size in pixels.
|
|
216
|
+
* @default 2
|
|
217
|
+
*/
|
|
218
|
+
readonly outlineSize?: number;
|
|
219
|
+
/**
|
|
220
|
+
* The color of the shadow cast by the captions.
|
|
221
|
+
* @default CaptionShadowColor.NONE
|
|
222
|
+
*/
|
|
223
|
+
readonly shadowColor?: CaptionShadowColor;
|
|
224
|
+
/**
|
|
225
|
+
* The opacity of the shadow (0 transparent .. 255 opaque).
|
|
226
|
+
* @default 0
|
|
227
|
+
*/
|
|
228
|
+
readonly shadowOpacity?: number;
|
|
229
|
+
/**
|
|
230
|
+
* The horizontal offset of the shadow in pixels (negative shifts left).
|
|
231
|
+
* @default - service default
|
|
232
|
+
*/
|
|
233
|
+
readonly shadowXOffset?: number;
|
|
234
|
+
/**
|
|
235
|
+
* The vertical offset of the shadow in pixels (negative shifts up).
|
|
236
|
+
* @default - service default
|
|
237
|
+
*/
|
|
238
|
+
readonly shadowYOffset?: number;
|
|
239
|
+
/**
|
|
240
|
+
* For Teletext input, the number of lines for the captions bitmap.
|
|
241
|
+
* @default - service default
|
|
242
|
+
*/
|
|
243
|
+
readonly subtitleRows?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Whether a fixed grid is used to generate the subtitle bitmap (Teletext input).
|
|
246
|
+
* @default CaptionTeletextGridControl.FIXED
|
|
247
|
+
*/
|
|
248
|
+
readonly teletextGridControl?: CaptionTeletextGridControl;
|
|
249
|
+
/**
|
|
250
|
+
* The horizontal position of the captions in pixels from the left.
|
|
251
|
+
* @default - determined by `alignment`
|
|
252
|
+
*/
|
|
253
|
+
readonly xPosition?: number;
|
|
254
|
+
/**
|
|
255
|
+
* The vertical position of the captions in pixels from the top.
|
|
256
|
+
* @default - positioned towards the bottom
|
|
257
|
+
*/
|
|
258
|
+
readonly yPosition?: number;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Properties for burn-in captions.
|
|
262
|
+
*/
|
|
263
|
+
export interface BurnInDestinationProps extends CaptionFontStyleProps {
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Properties for DVB-Sub captions.
|
|
267
|
+
*/
|
|
268
|
+
export interface DvbSubDestinationProps extends CaptionFontStyleProps {
|
|
269
|
+
}
|
|
270
|
+
/** Properties for EBU-TT-D caption output. */
|
|
271
|
+
export interface EbuTtDDestinationProps {
|
|
272
|
+
/**
|
|
273
|
+
* The copyright holder included in the TTML copyright metadata tag.
|
|
274
|
+
* @default - no copyright holder
|
|
275
|
+
*/
|
|
276
|
+
readonly copyrightHolder?: string;
|
|
277
|
+
/**
|
|
278
|
+
* The default font size.
|
|
279
|
+
* @default - service default
|
|
280
|
+
*/
|
|
281
|
+
readonly defaultFontSize?: number;
|
|
282
|
+
/**
|
|
283
|
+
* The default line height.
|
|
284
|
+
* @default - service default
|
|
285
|
+
*/
|
|
286
|
+
readonly defaultLineHeight?: number;
|
|
287
|
+
/**
|
|
288
|
+
* How to handle the gap between multi-line captions.
|
|
289
|
+
* @default - service default
|
|
290
|
+
*/
|
|
291
|
+
readonly fillLineGap?: EbuTtDFillLineGap;
|
|
292
|
+
/**
|
|
293
|
+
* A comma-separated list of font families to include (valid only when `styleControl` is INCLUDE).
|
|
294
|
+
* @default - 'monospaced'
|
|
295
|
+
*/
|
|
296
|
+
readonly fontFamily?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Whether source style information is included in the EBU-TT-D font data.
|
|
299
|
+
* @default - service default
|
|
300
|
+
*/
|
|
301
|
+
readonly styleControl?: EbuTtDStyleControl;
|
|
302
|
+
}
|
|
303
|
+
/** Properties for TTML caption output. */
|
|
304
|
+
export interface TtmlDestinationProps {
|
|
305
|
+
/**
|
|
306
|
+
* Whether to pass through style and position from a TTML-like source.
|
|
307
|
+
* @default TtmlStyleControl.PASSTHROUGH
|
|
308
|
+
*/
|
|
309
|
+
readonly styleControl?: TtmlStyleControl;
|
|
310
|
+
}
|
|
311
|
+
/** Properties for WebVTT caption output. */
|
|
312
|
+
export interface WebvttDestinationProps {
|
|
313
|
+
/**
|
|
314
|
+
* Whether to pass through source color and position to the WebVTT output.
|
|
315
|
+
* PASSTHROUGH is only valid for EMBEDDED or TELETEXT sources.
|
|
316
|
+
* @default WebvttStyleControl.NO_STYLE_DATA
|
|
317
|
+
*/
|
|
318
|
+
readonly styleControl?: WebvttStyleControl;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* The output caption format for a caption encode. Use the static factory methods to select one of
|
|
322
|
+
* the supported destination types.
|
|
323
|
+
*/
|
|
324
|
+
export declare abstract class CaptionDestination {
|
|
325
|
+
/** Burned-in captions rendered into the video. */
|
|
326
|
+
static burnIn(props?: BurnInDestinationProps): CaptionDestination;
|
|
327
|
+
/** DVB-Sub bitmap captions. */
|
|
328
|
+
static dvbSub(props?: DvbSubDestinationProps): CaptionDestination;
|
|
329
|
+
/** EBU-TT-D sidecar captions. */
|
|
330
|
+
static ebuTtD(props?: EbuTtDDestinationProps): CaptionDestination;
|
|
331
|
+
/** TTML sidecar captions. */
|
|
332
|
+
static ttml(props?: TtmlDestinationProps): CaptionDestination;
|
|
333
|
+
/** WebVTT sidecar captions. */
|
|
334
|
+
static webvtt(props?: WebvttDestinationProps): CaptionDestination;
|
|
335
|
+
/** ARIB captions. */
|
|
336
|
+
static arib(): CaptionDestination;
|
|
337
|
+
/** Embedded (CEA-608/708) captions. */
|
|
338
|
+
static embedded(): CaptionDestination;
|
|
339
|
+
/** Embedded plus SCTE-20 captions. */
|
|
340
|
+
static embeddedPlusScte20(): CaptionDestination;
|
|
341
|
+
/** SCTE-20 plus embedded captions. */
|
|
342
|
+
static scte20PlusEmbedded(): CaptionDestination;
|
|
343
|
+
/** SMPTE-TT sidecar captions. */
|
|
344
|
+
static smpteTt(): CaptionDestination;
|
|
345
|
+
/** Teletext captions. */
|
|
346
|
+
static teletext(): CaptionDestination;
|
|
347
|
+
/** RTMP CaptionInfo captions. */
|
|
348
|
+
static rtmpCaptionInfo(): CaptionDestination;
|
|
349
|
+
}
|