@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
package/lib/outputs.d.ts
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import type { Duration } from 'aws-cdk-lib';
|
|
2
|
+
import type { RtmpDestination, SrtDestination } from './destinations';
|
|
3
|
+
import type { EncodeConfiguration } from './encode-configuration';
|
|
4
|
+
import type { FecMode, H265PackagingType, RtmpCertificateMode, SrtEncryptionType } from './enums';
|
|
5
|
+
import { MediaPackageV2HlsSetting } from './enums';
|
|
6
|
+
import type { M2tsSettings } from './m2ts-settings';
|
|
7
|
+
import { HlsSettings } from './m3u8-settings';
|
|
8
|
+
/**
|
|
9
|
+
* Base output definition — shared by all output group types.
|
|
10
|
+
*/
|
|
11
|
+
export interface OutputDefinition {
|
|
12
|
+
/**
|
|
13
|
+
* The encode configurations to wire to this output.
|
|
14
|
+
*/
|
|
15
|
+
readonly encodes: EncodeConfiguration[];
|
|
16
|
+
/**
|
|
17
|
+
* The name of this output. Must be unique across all outputs in the channel.
|
|
18
|
+
*/
|
|
19
|
+
readonly outputName: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Represents an output within an output group.
|
|
23
|
+
* Each output group type has its own Output subclass that knows how to render its output settings.
|
|
24
|
+
*/
|
|
25
|
+
export declare abstract class Output {
|
|
26
|
+
protected readonly outputName: string;
|
|
27
|
+
private readonly encodes;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Output definition for a MediaPackage V2 output group.
|
|
31
|
+
*
|
|
32
|
+
* MediaPackage V2 uses CMAF ingest which requires one media track (video or audio) per output.
|
|
33
|
+
* In-band captions (burn-in, embedded) can ride alongside the primary encode because they do not
|
|
34
|
+
* produce a separate track.
|
|
35
|
+
*/
|
|
36
|
+
export interface MediaPackageV2OutputDefinition {
|
|
37
|
+
/**
|
|
38
|
+
* The primary encode for this output — one video or one audio track.
|
|
39
|
+
*/
|
|
40
|
+
readonly encode: EncodeConfiguration;
|
|
41
|
+
/**
|
|
42
|
+
* Caption encodes that ride alongside the primary encode. Only in-band caption types are
|
|
43
|
+
* allowed (burn-in, embedded) — out-of-band captions must go in their own output.
|
|
44
|
+
*
|
|
45
|
+
* @default - no captions on this output
|
|
46
|
+
*/
|
|
47
|
+
readonly captions?: EncodeConfiguration[];
|
|
48
|
+
/**
|
|
49
|
+
* The name of this output. Must be unique across all outputs in the channel.
|
|
50
|
+
*/
|
|
51
|
+
readonly outputName: string;
|
|
52
|
+
/**
|
|
53
|
+
* The audio group ID for audio outputs.
|
|
54
|
+
* @default - service default
|
|
55
|
+
*/
|
|
56
|
+
readonly audioGroupId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* For audio outputs, whether MediaPackage sets this rendition as the auto-select rendition in the
|
|
59
|
+
* HLS manifest.
|
|
60
|
+
* @default MediaPackageV2HlsSetting.OMIT
|
|
61
|
+
*/
|
|
62
|
+
readonly hlsAutoSelect?: MediaPackageV2HlsSetting;
|
|
63
|
+
/**
|
|
64
|
+
* For audio outputs, whether MediaPackage sets this rendition as the default rendition in the HLS
|
|
65
|
+
* manifest.
|
|
66
|
+
* @default MediaPackageV2HlsSetting.OMIT
|
|
67
|
+
*/
|
|
68
|
+
readonly hlsDefault?: MediaPackageV2HlsSetting;
|
|
69
|
+
/**
|
|
70
|
+
* The audio rendition sets for video outputs.
|
|
71
|
+
* @default - service default
|
|
72
|
+
*/
|
|
73
|
+
readonly audioRenditionSets?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Output definition for an HLS output group.
|
|
77
|
+
*/
|
|
78
|
+
export interface HlsOutputDefinition extends OutputDefinition {
|
|
79
|
+
/**
|
|
80
|
+
* A string concatenated to the end of the destination file name.
|
|
81
|
+
* @default - service default
|
|
82
|
+
*/
|
|
83
|
+
readonly nameModifier?: string;
|
|
84
|
+
/**
|
|
85
|
+
* A string concatenated to the end of segment file names.
|
|
86
|
+
* @default - no segment modifier
|
|
87
|
+
*/
|
|
88
|
+
readonly segmentModifier?: string;
|
|
89
|
+
/**
|
|
90
|
+
* For H.265 video, whether to package as HEV1 or HVC1.
|
|
91
|
+
* @default - service default
|
|
92
|
+
*/
|
|
93
|
+
readonly h265PackagingType?: H265PackagingType;
|
|
94
|
+
/**
|
|
95
|
+
* The per-output HLS settings (standard, audio-only, fMP4, or frame-capture). Use the
|
|
96
|
+
* `HlsSettings` factory methods. Standard outputs additionally configure the M3U8 container
|
|
97
|
+
* via `HlsSettings.standard({ m3u8Settings })`.
|
|
98
|
+
* @default - HlsSettings.standard() with service-default M3U8 settings
|
|
99
|
+
*/
|
|
100
|
+
readonly hlsSettings?: HlsSettings;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Forward Error Correction (FEC) settings for a UDP output (SMPTE 2022-1).
|
|
104
|
+
*/
|
|
105
|
+
export interface FecOutputSettings {
|
|
106
|
+
/**
|
|
107
|
+
* Whether to enable column-only or column-and-row FEC.
|
|
108
|
+
* @default - service default
|
|
109
|
+
*/
|
|
110
|
+
readonly mode?: FecMode;
|
|
111
|
+
/**
|
|
112
|
+
* Parameter D from SMPTE 2022-1 — the height of the FEC protection matrix (number of
|
|
113
|
+
* transport stream packets per column error-correction packet). Must be 4..20.
|
|
114
|
+
* @default - service default
|
|
115
|
+
*/
|
|
116
|
+
readonly columnDepth?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Parameter L from SMPTE 2022-1 — the width of the FEC protection matrix. Must be 1..20
|
|
119
|
+
* for column-only FEC, or 4..20 for column-and-row FEC.
|
|
120
|
+
* @default - service default
|
|
121
|
+
*/
|
|
122
|
+
readonly rowLength?: number;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Output definition for a UDP output group.
|
|
126
|
+
*/
|
|
127
|
+
export interface UdpOutputDefinition extends OutputDefinition {
|
|
128
|
+
/**
|
|
129
|
+
* The output buffering (overrides group-level setting). Applied at millisecond granularity.
|
|
130
|
+
* @default - uses group-level buffer
|
|
131
|
+
*/
|
|
132
|
+
readonly buffer?: Duration;
|
|
133
|
+
/**
|
|
134
|
+
* MPEG-TS (M2TS) container settings for this output.
|
|
135
|
+
* @default - service defaults
|
|
136
|
+
*/
|
|
137
|
+
readonly m2tsSettings?: M2tsSettings;
|
|
138
|
+
/**
|
|
139
|
+
* Forward Error Correction (FEC) settings for this output.
|
|
140
|
+
* @default - no FEC
|
|
141
|
+
*/
|
|
142
|
+
readonly fec?: FecOutputSettings;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The container (transport stream) for an Archive output. Use the static factory methods to
|
|
146
|
+
* select between an MPEG-TS (M2TS) container or a raw container.
|
|
147
|
+
*/
|
|
148
|
+
export declare abstract class ArchiveContainer {
|
|
149
|
+
/** An MPEG-TS (M2TS) container, optionally configured via `M2tsSettings`. */
|
|
150
|
+
static m2ts(settings?: M2tsSettings): ArchiveContainer;
|
|
151
|
+
/** A raw container (no transport-stream wrapping). */
|
|
152
|
+
static raw(): ArchiveContainer;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Output definition for an Archive output group.
|
|
156
|
+
*/
|
|
157
|
+
export interface ArchiveOutputDefinition extends OutputDefinition {
|
|
158
|
+
/**
|
|
159
|
+
* A string concatenated to the end of the destination file name. Required if the output group
|
|
160
|
+
* contains more than one output of the same container type.
|
|
161
|
+
* @default - no name modifier
|
|
162
|
+
*/
|
|
163
|
+
readonly nameModifier?: string;
|
|
164
|
+
/**
|
|
165
|
+
* The output file extension.
|
|
166
|
+
* @default - auto-selected from container type
|
|
167
|
+
*/
|
|
168
|
+
readonly extension?: string;
|
|
169
|
+
/**
|
|
170
|
+
* The container (transport stream) for this output — an MPEG-TS (M2TS) or raw container.
|
|
171
|
+
* Use the `ArchiveContainer` factory methods.
|
|
172
|
+
* @default - ArchiveContainer.m2ts() with service-default M2TS settings
|
|
173
|
+
*/
|
|
174
|
+
readonly container?: ArchiveContainer;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Output definition for an RTMP output group.
|
|
178
|
+
* `outputName` is normalised (underscores → hyphens) for use as the destination reference ID.
|
|
179
|
+
*/
|
|
180
|
+
export interface RtmpOutputDefinition extends OutputDefinition {
|
|
181
|
+
/**
|
|
182
|
+
* The RTMP destination(s) for this output — one per channel pipeline.
|
|
183
|
+
*
|
|
184
|
+
* MediaLive publishes each RTMP output to one destination per pipeline (the console
|
|
185
|
+
* calls these "Destination A" and "Destination B"). Provide a single destination for a
|
|
186
|
+
* `SINGLE_PIPELINE` channel, or two (A then B) for a `STANDARD` channel.
|
|
187
|
+
*/
|
|
188
|
+
readonly destinations: RtmpDestination[];
|
|
189
|
+
/**
|
|
190
|
+
* The TLS certificate verification mode.
|
|
191
|
+
* @default - service default
|
|
192
|
+
*/
|
|
193
|
+
readonly certificateMode?: RtmpCertificateMode;
|
|
194
|
+
/**
|
|
195
|
+
* The interval between connection retry attempts.
|
|
196
|
+
* @default - service default
|
|
197
|
+
*/
|
|
198
|
+
readonly connectionRetryInterval?: Duration;
|
|
199
|
+
/**
|
|
200
|
+
* The number of retry attempts.
|
|
201
|
+
* @default - service default
|
|
202
|
+
*/
|
|
203
|
+
readonly numRetries?: number;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Output definition for an SRT output group.
|
|
207
|
+
* `outputName` is normalised (underscores → hyphens) for use as the destination reference ID.
|
|
208
|
+
*/
|
|
209
|
+
export interface SrtOutputDefinition extends OutputDefinition {
|
|
210
|
+
/**
|
|
211
|
+
* The SRT destination(s) for this output — one per channel pipeline.
|
|
212
|
+
*
|
|
213
|
+
* MediaLive publishes each SRT output to one destination per pipeline (the console
|
|
214
|
+
* calls these "Destination A" and "Destination B"). Provide a single destination for a
|
|
215
|
+
* `SINGLE_PIPELINE` channel, or two (A then B) for a `STANDARD` channel. Each pipeline
|
|
216
|
+
* can target a different listener and carry its own encryption passphrase.
|
|
217
|
+
*/
|
|
218
|
+
readonly destinations: SrtDestination[];
|
|
219
|
+
/**
|
|
220
|
+
* The output buffering. Applied at millisecond granularity.
|
|
221
|
+
* @default - service default
|
|
222
|
+
*/
|
|
223
|
+
readonly buffer?: Duration;
|
|
224
|
+
/**
|
|
225
|
+
* The encryption type for the SRT output.
|
|
226
|
+
* @default - no encryption
|
|
227
|
+
*/
|
|
228
|
+
readonly encryptionType?: SrtEncryptionType;
|
|
229
|
+
/**
|
|
230
|
+
* The SRT latency.
|
|
231
|
+
* @default - service default
|
|
232
|
+
*/
|
|
233
|
+
readonly latency?: Duration;
|
|
234
|
+
/**
|
|
235
|
+
* MPEG-TS (M2TS) container settings for this output.
|
|
236
|
+
* @default - service defaults
|
|
237
|
+
*/
|
|
238
|
+
readonly m2tsSettings?: M2tsSettings;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Output definition for a CMAF Ingest output group.
|
|
242
|
+
*
|
|
243
|
+
* CMAF Ingest requires one media track (video or audio) per output. In-band captions (burn-in,
|
|
244
|
+
* embedded) can ride alongside the primary encode.
|
|
245
|
+
*/
|
|
246
|
+
export interface CmafIngestOutputDefinition {
|
|
247
|
+
/**
|
|
248
|
+
* The primary encode for this output — one video or one audio track.
|
|
249
|
+
*/
|
|
250
|
+
readonly encode: EncodeConfiguration;
|
|
251
|
+
/**
|
|
252
|
+
* Caption encodes that ride alongside the primary encode. Only in-band caption types are
|
|
253
|
+
* allowed (burn-in, embedded) — out-of-band captions must go in their own output.
|
|
254
|
+
*
|
|
255
|
+
* @default - no captions on this output
|
|
256
|
+
*/
|
|
257
|
+
readonly captions?: EncodeConfiguration[];
|
|
258
|
+
/**
|
|
259
|
+
* The name of this output. Must be unique across all outputs in the channel.
|
|
260
|
+
*/
|
|
261
|
+
readonly outputName: string;
|
|
262
|
+
/**
|
|
263
|
+
* A string concatenated to the end of the destination file name.
|
|
264
|
+
* @default - no name modifier
|
|
265
|
+
*/
|
|
266
|
+
readonly nameModifier?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Output definition for a Frame Capture output group.
|
|
270
|
+
*/
|
|
271
|
+
export interface FrameCaptureOutputDefinition extends OutputDefinition {
|
|
272
|
+
/**
|
|
273
|
+
* A string concatenated to the end of the destination file name.
|
|
274
|
+
* Required if the output group contains more than one output.
|
|
275
|
+
* @default - no name modifier
|
|
276
|
+
*/
|
|
277
|
+
readonly nameModifier?: string;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Output definition for an MS Smooth output group.
|
|
281
|
+
*/
|
|
282
|
+
export interface MsSmoothOutputDefinition extends OutputDefinition {
|
|
283
|
+
/**
|
|
284
|
+
* A string concatenated to the end of the destination file name. Required if the output group
|
|
285
|
+
* contains more than one output.
|
|
286
|
+
* @default - no name modifier
|
|
287
|
+
*/
|
|
288
|
+
readonly nameModifier?: string;
|
|
289
|
+
/**
|
|
290
|
+
* For H.265 video, whether to package as HEV1 or HVC1.
|
|
291
|
+
* @default - service default
|
|
292
|
+
*/
|
|
293
|
+
readonly h265PackagingType?: H265PackagingType;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Output definition for a MediaConnect Router output group.
|
|
297
|
+
*/
|
|
298
|
+
export interface MediaConnectRouterOutputDefinition extends OutputDefinition {
|
|
299
|
+
/**
|
|
300
|
+
* MPEG-TS (M2TS) container settings for this output.
|
|
301
|
+
* @default - service defaults
|
|
302
|
+
*/
|
|
303
|
+
readonly m2tsSettings?: M2tsSettings;
|
|
304
|
+
}
|