Class Channel
- All Implemented Interfaces:
IEnvironmentAware,IChannelRef,IResource,IChannel,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Example:
Stack stack;
IInput input;
IBucket bucket;
EncodeConfiguration video;
Channel.Builder.create(stack, "Channel")
.inputs(List.of(InputAttachment.builder()
.input(input)
.audioSelectors(List.of(AudioSelector.byLanguage("eng", "eng", AudioLanguageSelectionPolicy.STRICT)))
.captionSelectors(List.of(CaptionSelector.embedded("embedded")))
.videoSelector(VideoSelectorSettings.builder()
.colorSpace(VideoColorSpace.HDR10)
.colorSpaceUsage(VideoColorSpaceUsage.FORCE)
.selectBy(VideoSelection.byProgramId(1))
.build())
.build()))
.outputGroups(List.of(OutputGroupConfiguration.hls(HlsOutputGroupProps.builder()
.name("hls")
.destinations(List.of(OutputDestination.toBucket(bucket, "live/stream")))
.outputs(List.of(HlsOutputDefinition.builder().encodes(List.of(video)).outputName("hls_out").build()))
.build())))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.medialive.alpha.IChannel
IChannel.Jsii$Default, IChannel.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedChannel(software.amazon.jsii.JsiiObjectRef objRef) Channel(software.constructs.Construct scope, String id, ChannelProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInput(InputAttachment attachment) (experimental) Attach an input to this channel.void(experimental) Add an output group to this channel.static IChannelfromChannelArn(software.constructs.Construct scope, String id, String channelArn) (experimental) Import an existing channel by its ARN.(experimental) The ARN of the channel.(experimental) The ID of the channel.(experimental) The IDs of the inputs attached to this channel.(experimental) A reference to this Channel resource.(experimental) Collection of grant methods for this channel — start, stop, and update its schedule.getRole()(experimental) The IAM role used by this channel.(experimental) Create a CloudWatch metric for this channel scoped to a specific pipeline.metric(String metricName, Pipeline pipeline, MetricOptions props) (experimental) Create a CloudWatch metric for this channel scoped to a specific pipeline.metricActiveAlerts(Pipeline pipeline) (experimental) Metric for the total number of active alerts on this channel.metricActiveAlerts(Pipeline pipeline, MetricOptions props) (experimental) Metric for the total number of active alerts on this channel.metricDroppedFrames(Pipeline pipeline) (experimental) Metric for dropped frames.metricDroppedFrames(Pipeline pipeline, MetricOptions props) (experimental) Metric for dropped frames.metricFillMsec(Pipeline pipeline) (experimental) Metric for fill milliseconds — the time MediaLive has filled the video output with fill frames because the input did not deliver content within the expected window.metricFillMsec(Pipeline pipeline, MetricOptions props) (experimental) Metric for fill milliseconds — the time MediaLive has filled the video output with fill frames because the input did not deliver content within the expected window.metricInputLossSeconds(Pipeline pipeline) (experimental) Metric for input loss seconds (RTP and MediaConnect inputs only).metricInputLossSeconds(Pipeline pipeline, MetricOptions props) (experimental) Metric for input loss seconds (RTP and MediaConnect inputs only).metricInputVideoFrameRate(Pipeline pipeline) (experimental) Metric for the input video frame rate (frames per second).metricInputVideoFrameRate(Pipeline pipeline, MetricOptions props) (experimental) Metric for the input video frame rate (frames per second).metricNetworkIn(Pipeline pipeline) (experimental) Metric for the rate of inbound network traffic to MediaLive in Mbps.metricNetworkIn(Pipeline pipeline, MetricOptions props) (experimental) Metric for the rate of inbound network traffic to MediaLive in Mbps.metricNetworkOut(Pipeline pipeline) (experimental) Metric for the rate of outbound network traffic from MediaLive in Mbps.metricNetworkOut(Pipeline pipeline, MetricOptions props) (experimental) Metric for the rate of outbound network traffic from MediaLive in Mbps.metricSvqTime(Pipeline pipeline) (experimental) Metric for SVQ time (speed-vs-quality), expressed as a percent.metricSvqTime(Pipeline pipeline, MetricOptions props) (experimental) Metric for SVQ time (speed-vs-quality), expressed as a percent.Methods inherited from class software.amazon.awscdk.Resource
applyCrossStackReferenceStrength, applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
Channel
protected Channel(software.amazon.jsii.JsiiObjectRef objRef) -
Channel
protected Channel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Channel
@Stability(Experimental) public Channel(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ChannelProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromChannelArn
@Stability(Experimental) @NotNull public static IChannel fromChannelArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String channelArn) (experimental) Import an existing channel by its ARN.The id is parsed out of the ARN.
- Parameters:
scope- This parameter is required.id- This parameter is required.channelArn- This parameter is required.
-
addInput
(experimental) Attach an input to this channel.- Parameters:
attachment- This parameter is required.
-
addOutputGroup
(experimental) Add an output group to this channel.Outputs are declared up front via the
outputsprop on the group configuration.- Parameters:
config- This parameter is required.
-
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @NotNull Pipeline pipeline, @Nullable MetricOptions props) (experimental) Create a CloudWatch metric for this channel scoped to a specific pipeline.Channel metrics are published per-pipeline. `STANDARD` channels run two redundant pipelines (`PIPELINE_0` and `PIPELINE_1`); to cover both, build a metric for each. `SINGLE_PIPELINE` channels only publish on `PIPELINE_0`. See the
MediaLive metrics docs} for the full set of metric names and recommended statistics.invalid @link
{@link https://docs.aws.amazon.com/medialive/latest/ug/monitoring-eml-metrics.html -
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @NotNull Pipeline pipeline) (experimental) Create a CloudWatch metric for this channel scoped to a specific pipeline.Channel metrics are published per-pipeline. `STANDARD` channels run two redundant pipelines (`PIPELINE_0` and `PIPELINE_1`); to cover both, build a metric for each. `SINGLE_PIPELINE` channels only publish on `PIPELINE_0`. See the
MediaLive metrics docs} for the full set of metric names and recommended statistics.invalid @link
{@link https://docs.aws.amazon.com/medialive/latest/ug/monitoring-eml-metrics.html -
metricActiveAlerts
@Stability(Experimental) @NotNull public Metric metricActiveAlerts(@NotNull Pipeline pipeline, @Nullable MetricOptions props) (experimental) Metric for the total number of active alerts on this channel.- Specified by:
metricActiveAlertsin interfaceIChannel- Parameters:
pipeline- This parameter is required.props-
-
metricActiveAlerts
(experimental) Metric for the total number of active alerts on this channel.- Specified by:
metricActiveAlertsin interfaceIChannel- Parameters:
pipeline- This parameter is required.
-
metricDroppedFrames
@Stability(Experimental) @NotNull public Metric metricDroppedFrames(@NotNull Pipeline pipeline, @Nullable MetricOptions props) (experimental) Metric for dropped frames.A non-zero value indicates the encoder cannot keep up with the incoming video in real time.
- Specified by:
metricDroppedFramesin interfaceIChannel- Parameters:
pipeline- This parameter is required.props-
-
metricDroppedFrames
(experimental) Metric for dropped frames.A non-zero value indicates the encoder cannot keep up with the incoming video in real time.
- Specified by:
metricDroppedFramesin interfaceIChannel- Parameters:
pipeline- This parameter is required.
-
metricFillMsec
@Stability(Experimental) @NotNull public Metric metricFillMsec(@NotNull Pipeline pipeline, @Nullable MetricOptions props) (experimental) Metric for fill milliseconds — the time MediaLive has filled the video output with fill frames because the input did not deliver content within the expected window.A non-zero value indicates an unhealthy input.
- Specified by:
metricFillMsecin interfaceIChannel- Parameters:
pipeline- This parameter is required.props-
-
metricFillMsec
(experimental) Metric for fill milliseconds — the time MediaLive has filled the video output with fill frames because the input did not deliver content within the expected window.A non-zero value indicates an unhealthy input.
- Specified by:
metricFillMsecin interfaceIChannel- Parameters:
pipeline- This parameter is required.
-
metricInputLossSeconds
@Stability(Experimental) @NotNull public Metric metricInputLossSeconds(@NotNull Pipeline pipeline, @Nullable MetricOptions props) (experimental) Metric for input loss seconds (RTP and MediaConnect inputs only).- Specified by:
metricInputLossSecondsin interfaceIChannel- Parameters:
pipeline- This parameter is required.props-
-
metricInputLossSeconds
(experimental) Metric for input loss seconds (RTP and MediaConnect inputs only).- Specified by:
metricInputLossSecondsin interfaceIChannel- Parameters:
pipeline- This parameter is required.
-
metricInputVideoFrameRate
@Stability(Experimental) @NotNull public Metric metricInputVideoFrameRate(@NotNull Pipeline pipeline, @Nullable MetricOptions props) (experimental) Metric for the input video frame rate (frames per second).- Specified by:
metricInputVideoFrameRatein interfaceIChannel- Parameters:
pipeline- This parameter is required.props-
-
metricInputVideoFrameRate
@Stability(Experimental) @NotNull public Metric metricInputVideoFrameRate(@NotNull Pipeline pipeline) (experimental) Metric for the input video frame rate (frames per second).- Specified by:
metricInputVideoFrameRatein interfaceIChannel- Parameters:
pipeline- This parameter is required.
-
metricNetworkIn
@Stability(Experimental) @NotNull public Metric metricNetworkIn(@NotNull Pipeline pipeline, @Nullable MetricOptions props) (experimental) Metric for the rate of inbound network traffic to MediaLive in Mbps.- Specified by:
metricNetworkInin interfaceIChannel- Parameters:
pipeline- This parameter is required.props-
-
metricNetworkIn
(experimental) Metric for the rate of inbound network traffic to MediaLive in Mbps.- Specified by:
metricNetworkInin interfaceIChannel- Parameters:
pipeline- This parameter is required.
-
metricNetworkOut
@Stability(Experimental) @NotNull public Metric metricNetworkOut(@NotNull Pipeline pipeline, @Nullable MetricOptions props) (experimental) Metric for the rate of outbound network traffic from MediaLive in Mbps.- Specified by:
metricNetworkOutin interfaceIChannel- Parameters:
pipeline- This parameter is required.props-
-
metricNetworkOut
(experimental) Metric for the rate of outbound network traffic from MediaLive in Mbps.- Specified by:
metricNetworkOutin interfaceIChannel- Parameters:
pipeline- This parameter is required.
-
metricSvqTime
@Stability(Experimental) @NotNull public Metric metricSvqTime(@NotNull Pipeline pipeline, @Nullable MetricOptions props) (experimental) Metric for SVQ time (speed-vs-quality), expressed as a percent.Indicates the share of time MediaLive reduced quality optimisations to keep up with real-time output.
- Specified by:
metricSvqTimein interfaceIChannel- Parameters:
pipeline- This parameter is required.props-
-
metricSvqTime
(experimental) Metric for SVQ time (speed-vs-quality), expressed as a percent.Indicates the share of time MediaLive reduced quality optimisations to keep up with real-time output.
- Specified by:
metricSvqTimein interfaceIChannel- Parameters:
pipeline- This parameter is required.
-
getChannelArn
(experimental) The ARN of the channel.- Specified by:
getChannelArnin interfaceIChannel
-
getChannelId
(experimental) The ID of the channel.- Specified by:
getChannelIdin interfaceIChannel
-
getChannelRef
(experimental) A reference to this Channel resource.- Specified by:
getChannelRefin interfaceIChannelRef
-
getGrants
(experimental) Collection of grant methods for this channel — start, stop, and update its schedule. -
getRole
(experimental) The IAM role used by this channel. -
getChannelInputs
(experimental) The IDs of the inputs attached to this channel.- Specified by:
getChannelInputsin interfaceIChannel
-