class ChannelClass
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.ChannelClass |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#ChannelClass |
Java | software.amazon.awscdk.services.medialive.alpha.ChannelClass |
Python | aws_cdk.aws_medialive_alpha.ChannelClass |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป ChannelClass |
The class of the channel.
Determines the pipeline redundancy.
Example
declare const stack: Stack;
declare const input: medialive.IInput;
declare const mpChannel: mediapackagev2.IChannel;
const hdVideo = medialive.EncodeConfiguration.video({
name: 'video_1080p',
codec: medialive.VideoCodecSettings.h265({
rateControl: medialive.H265RateControl.qvbr({
maxBitrate: Bitrate.mbps(8),
qvbrQualityLevel: 7,
}),
framerate: medialive.Framerate.FPS_30,
}),
width: 1920,
height: 1080,
});
const sdVideo = medialive.EncodeConfiguration.video({
name: 'video_480p',
codec: medialive.VideoCodecSettings.h265({
rateControl: medialive.H265RateControl.qvbr({
maxBitrate: Bitrate.mbps(2),
qvbrQualityLevel: 7,
}),
framerate: medialive.Framerate.FPS_30,
}),
width: 854,
height: 480,
});
const audio = medialive.EncodeConfiguration.audio({
name: 'audio_aac',
codec: medialive.AudioCodecSettings.aac({ bitrate: Bitrate.kbps(192) }),
});
new medialive.Channel(stack, 'Channel', {
channelClass: medialive.ChannelClass.STANDARD,
inputs: [{ input }],
outputGroups: [
medialive.OutputGroupConfiguration.mediaPackageV2({
name: 'emp',
channel: mpChannel,
outputs: [
{ encode: hdVideo, outputName: 'hd' },
{ encode: sdVideo, outputName: 'sd' },
{ encode: audio, outputName: 'audio' },
],
}),
],
});
Properties
| Name | Type | Description |
|---|---|---|
| value | string | The underlying string value passed to CloudFormation. |
| static SINGLE_PIPELINE | Channel | Single pipeline โ no redundancy. |
| static STANDARD | Channel | Standard โ two pipelines for redundancy. |
value
Type:
string
The underlying string value passed to CloudFormation.
static SINGLE_PIPELINE
Type:
Channel
Single pipeline โ no redundancy.
static STANDARD
Type:
Channel
Standard โ two pipelines for redundancy.
Methods
| Name | Description |
|---|---|
| static of(value) | A value not yet modelled by AWS CDK. |
static of(value)
public static of(value: string): ChannelClass
Parameters
- value
string
Returns
A value not yet modelled by AWS CDK.

.NET
Go
Java
Python
TypeScript (