NdiConfig
- class aws_cdk.aws_mediaconnect_alpha.NdiConfig(*, machine_name=None, ndi_discovery_servers=None, ndi_state=None)
Bases:
object(experimental) Configuration for NDI Config.
- Parameters:
machine_name (
Optional[str]) – (experimental) A prefix for the names of the NDI sources that the flow creates. If a custom name isn’t specified, MediaConnect generates a unique 12-character ID as the prefix. Default: - MediaConnect generates a unique 12-character IDndi_discovery_servers (
Optional[Sequence[Union[NdiDiscoveryServerConfig,Dict[str,Any]]]]) – (experimental) Specifies the configuration settings for individual NDI discovery servers. A maximum of 3 servers is allowed. Default: - no NDI discovery serversndi_state (
Optional[State]) – (experimental) A setting that controls whether NDI sources or outputs can be used in the flow. Must be ENABLED for the flow to support NDI sources or outputs. Default: State.DISABLED
- Stability:
experimental
- ExampleMetadata:
infused
Example:
from aws_cdk.aws_mediaconnect_alpha import NdiConfig, NdiDiscoveryServerConfig, EncodingConfig, MediaStreamSourceConfigurationCdi # stack: Stack # ndi_vpc_interface: VpcInterfaceConfig # efa_interface: VpcInterfaceConfig # video_stream: MediaStream # NDI requires LARGE, an encoding profile, and at least one discovery server Flow(stack, "NdiFlow", flow_size=FlowSize.LARGE, ndi_config=NdiConfig( ndi_state=State.ENABLED, ndi_discovery_servers=[NdiDiscoveryServerConfig( discovery_server_address="10.0.0.10", vpc_interface=ndi_vpc_interface )] ), encoding_config=EncodingConfig( encoding_profile=EncodingProfile.CONTRIBUTION_H264_DEFAULT ), source=SourceConfiguration.ndi( flow_source_name="ndi-source" ) ) # CDI and JPEG XS require LARGE_4X Flow(stack, "CdiFlow", flow_size=FlowSize.LARGE_4X, vpc_interfaces=[efa_interface], media_streams=[video_stream], source=SourceConfiguration.cdi( flow_source_name="cdi-source", vpc_interface=efa_interface, port=5000, max_sync_buffer=100, media_stream_source_configurations=[MediaStreamSourceConfigurationCdi( encoding=Encoding.RAW, media_stream=video_stream )] ) )
Attributes
- machine_name
(experimental) A prefix for the names of the NDI sources that the flow creates.
If a custom name isn’t specified, MediaConnect generates a unique 12-character ID as the prefix.
- Default:
MediaConnect generates a unique 12-character ID
- Stability:
experimental
- ndi_discovery_servers
(experimental) Specifies the configuration settings for individual NDI discovery servers.
A maximum of 3 servers is allowed.
- Default:
no NDI discovery servers
- Stability:
experimental
- ndi_state
(experimental) A setting that controls whether NDI sources or outputs can be used in the flow.
Must be ENABLED for the flow to support NDI sources or outputs.
- Default:
State.DISABLED
- Stability:
experimental