InputSwitchConfiguration

class aws_cdk.aws_mediapackagev2_alpha.InputSwitchConfiguration(*, mqcs_input_switching=None, preferred_input=None)

Bases: object

(experimental) Input Switch Configuration.

Parameters:
  • mqcs_input_switching (Optional[bool]) – (experimental) When true, AWS Elemental MediaPackage performs input switching based on the MQCS. This setting is valid only when InputType is CMAF. Default: false

  • preferred_input (Optional[IngestEndpoint]) – (experimental) For CMAF inputs, indicates which input MediaPackage should prefer when both inputs have equal MQCS scores. Select 1 to prefer the first ingest endpoint, or 2 to prefer the second ingest endpoint. If you don’t specify a preferred input, MediaPackage uses its default switching behavior when MQCS scores are equal. Default: - MediaPackage uses its default switching behavior

Stability:

experimental

ExampleMetadata:

infused

Example:

from aws_cdk.aws_mediapackagev2_alpha import InputSwitchConfiguration
# stack: Stack
# group: ChannelGroup


hls_channel = Channel(stack, "HlsChannel",
    channel_group=group,
    input=InputConfiguration.hls()
)

cmaf_channel = Channel(stack, "CmafChannel",
    channel_group=group,
    input=InputConfiguration.cmaf(
        input_switch_configuration=InputSwitchConfiguration(
            mqcs_input_switching=True
        ),
        output_headers=[HeadersCMSD.MQCS]
    )
)

simple_cmaf_channel = Channel(stack, "SimpleCmafChannel",
    channel_group=group,
    input=InputConfiguration.cmaf(
        output_headers=[HeadersCMSD.MQCS]
    )
)

Attributes

mqcs_input_switching

(experimental) When true, AWS Elemental MediaPackage performs input switching based on the MQCS.

This setting is valid only when InputType is CMAF.

Default:

false

Stability:

experimental

preferred_input

(experimental) For CMAF inputs, indicates which input MediaPackage should prefer when both inputs have equal MQCS scores.

Select 1 to prefer the first ingest endpoint, or 2 to prefer the second ingest endpoint. If you don’t specify a preferred input, MediaPackage uses its default switching behavior when MQCS scores are equal.

Default:
  • MediaPackage uses its default switching behavior

Stability:

experimental