Experimental
@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
SourceRtp Struct
Configuration for RTP.
Example
ts
declare const stack: Stack;
const flow = new Flow(stack, 'MyFlow', {
source: SourceConfiguration.rtp({
flowSourceName: 'rtp-source',
port: 5000,
network: NetworkConfiguration.publicNetwork('203.0.113.0/24'),
}),
});
python
# stack: Stack
flow = Flow(stack, "MyFlow",
source=SourceConfiguration.rtp(
flow_source_name="rtp-source",
port=5000,
network=NetworkConfiguration.public_network("203.0.113.0/24")
)
)
java
Stack stack;
Flow flow = Flow.Builder.create(stack, "MyFlow")
.source(SourceConfiguration.rtp(SourceRtp.builder()
.flowSourceName("rtp-source")
.port(5000)
.network(NetworkConfiguration.publicNetwork("203.0.113.0/24"))
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
Stack stack;
var flow = new Flow(stack, "MyFlow", new FlowProps {
Source = SourceConfiguration.Rtp(new SourceRtp {
FlowSourceName = "rtp-source",
Port = 5000,
Network = NetworkConfiguration.PublicNetwork("203.0.113.0/24")
})
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
var stack Stack
flow := awsmediaconnectalpha.NewFlow(stack, jsii.String("MyFlow"), &FlowProps{
Source: awsmediaconnectalpha.SourceConfiguration_Rtp(&SourceRtp{
FlowSourceName: jsii.String("rtp-source"),
Port: jsii.Number(5000),
Network: awsmediaconnectalpha.NetworkConfiguration_PublicNetwork(jsii.String("203.0.113.0/24")),
}),
})
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#A description of the source.
Default: no description
This description appears only on the MediaConnect console and will not be seen by the end user.
flowSourceNameoptionalstringflow_source_nameoptionalstrflowSourceNameoptionalStringFlowSourceNameoptionalstringFlowSourceNameoptional*string#The name of the source.
Default: a name is generated automatically
maxBitrateoptionalBitratemax_bitrateoptionalBitratemaxBitrateoptionalBitrateMaxBitrateoptionalBitrateMaxBitrateoptionalBitrate#The maximum bitrate for RIST, RTP, and RTP-FEC streams.
Default: no maximum bitrate
networkNetworkConfigurationnetworkNetworkConfigurationnetworkNetworkConfigurationNetworkNetworkConfigurationNetworkNetworkConfigurationrequired#Defines networking configuration.
The port that the flow will be listening on for incoming content.