CfnChannelPropsMixin
- class aws_cdk.mixins_preview.aws_mediapackagev2.mixins.CfnChannelPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a channel to receive content.
After it’s created, a channel provides static input URLs. These URLs remain the same throughout the lifetime of the channel, regardless of any failures or upgrades that might occur. Use these URLs to configure the outputs of your upstream encoder.
- See:
- CloudformationResource:
AWS::MediaPackageV2::Channel
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_mediapackagev2 import mixins as mediapackagev2_mixins cfn_channel_props_mixin = mediapackagev2_mixins.CfnChannelPropsMixin(mediapackagev2_mixins.CfnChannelMixinProps( channel_group_name="channelGroupName", channel_name="channelName", description="description", input_switch_configuration=mediapackagev2_mixins.CfnChannelPropsMixin.InputSwitchConfigurationProperty( mqcs_input_switching=False, preferred_input=123 ), input_type="inputType", output_header_configuration=mediapackagev2_mixins.CfnChannelPropsMixin.OutputHeaderConfigurationProperty( publish_mqcs=False ), tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::MediaPackageV2::Channel.- Parameters:
props (
Union[CfnChannelMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['channelGroupName', 'channelName', 'description', 'inputSwitchConfiguration', 'inputType', 'outputHeaderConfiguration', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
IngestEndpointProperty
- class CfnChannelPropsMixin.IngestEndpointProperty(*, id=None, url=None)
Bases:
objectThe input URL where the source stream should be sent.
- Parameters:
id (
Optional[str]) – The identifier associated with the ingest endpoint of the channel.url (
Optional[str]) – The URL associated with the ingest endpoint of the channel.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_mediapackagev2 import mixins as mediapackagev2_mixins ingest_endpoint_property = mediapackagev2_mixins.CfnChannelPropsMixin.IngestEndpointProperty( id="id", url="url" )
Attributes
- id
The identifier associated with the ingest endpoint of the channel.
- url
The URL associated with the ingest endpoint of the channel.
InputSwitchConfigurationProperty
- class CfnChannelPropsMixin.InputSwitchConfigurationProperty(*, mqcs_input_switching=None, preferred_input=None)
Bases:
objectThe configuration for input switching based on the media quality confidence score (MQCS) as provided from AWS Elemental MediaLive.
- Parameters:
mqcs_input_switching (
Union[bool,IResolvable,None]) – When true, AWS Elemental MediaPackage performs input switching based on the MQCS. Default is false. This setting is valid only whenInputTypeisCMAF.preferred_input (
Union[int,float,None]) – For CMAF inputs, indicates which input MediaPackage should prefer when both inputs have equal MQCS scores. Select1to prefer the first ingest endpoint, or2to prefer the second ingest endpoint. If you don’t specify a preferred input, MediaPackage uses its default switching behavior when MQCS scores are equal.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_mediapackagev2 import mixins as mediapackagev2_mixins input_switch_configuration_property = mediapackagev2_mixins.CfnChannelPropsMixin.InputSwitchConfigurationProperty( mqcs_input_switching=False, preferred_input=123 )
Attributes
- mqcs_input_switching
When true, AWS Elemental MediaPackage performs input switching based on the MQCS.
Default is false. This setting is valid only when
InputTypeisCMAF.
- preferred_input
For CMAF inputs, indicates which input MediaPackage should prefer when both inputs have equal MQCS scores.
Select
1to prefer the first ingest endpoint, or2to prefer the second ingest endpoint. If you don’t specify a preferred input, MediaPackage uses its default switching behavior when MQCS scores are equal.
OutputHeaderConfigurationProperty
- class CfnChannelPropsMixin.OutputHeaderConfigurationProperty(*, publish_mqcs=None)
Bases:
objectThe settings for what common media server data (CMSD) headers AWS Elemental MediaPackage includes in responses to the CDN.
- Parameters:
publish_mqcs (
Union[bool,IResolvable,None]) – When true, AWS Elemental MediaPackage includes the MQCS in responses to the CDN. This setting is valid only whenInputTypeisCMAF.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_mediapackagev2 import mixins as mediapackagev2_mixins output_header_configuration_property = mediapackagev2_mixins.CfnChannelPropsMixin.OutputHeaderConfigurationProperty( publish_mqcs=False )
Attributes
- publish_mqcs
When true, AWS Elemental MediaPackage includes the MQCS in responses to the CDN.
This setting is valid only when
InputTypeisCMAF.