Skip to content
v2.275.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

Pipeline Class ​

MediaLive pipeline (channel pipeline 0 or 1).

STANDARD channels run two redundant pipelines (PIPELINE_0, PIPELINE_1). SINGLE_PIPELINE channels run only PIPELINE_0.

Example ​

ts
declare const channel: medialive.Channel;
declare const stack: Stack;

channel.metricDroppedFrames(medialive.Pipeline.PIPELINE_0).createAlarm(stack, 'DroppedFrames', {
  threshold: 1,
  evaluationPeriods: 2,
});

channel.metricSvqTime(medialive.Pipeline.PIPELINE_0).createAlarm(stack, 'SvqTime', {
  threshold: 0,
  evaluationPeriods: 1,
});

// Custom metric by name with sum statistic
channel.metric('Output4xxErrors', medialive.Pipeline.PIPELINE_0, { statistic: 'sum' });

Properties ​

PIPELINE_0Pipelinepipeline_0PipelinePIPELINE_0PipelinePIPELINE_0PipelinePIPELINE_0Pipelinestatic#
Pipeline 0.

Always available on every channel.

PIPELINE_1Pipelinepipeline_1PipelinePIPELINE_1PipelinePIPELINE_1PipelinePIPELINE_1Pipelinestatic#
Pipeline 1.

Available only on STANDARD channels.

Methods ​

toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#
Returns the CloudWatch dimension value for this pipeline (`'0'` or `'1'`).