Experimental
@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
BridgeNetworkOutputProps Struct
Properties for a bridge network output.
Example
ts
declare const stack: Stack;
declare const gateway: Gateway;
declare const flow: Flow;
declare const vpcInterface: VpcInterfaceConfig;
declare const productionNetwork: GatewayNetwork;
const egressBridge = new Bridge(stack, 'MyEgressBridge', {
bridgeName: 'my-egress-bridge',
config: BridgeConfiguration.egress({
maxBitrate: Bitrate.mbps(10),
flowSources: [{
name: 'cloud-source',
source: {
flow: flow,
vpcInterface: vpcInterface,
},
}],
networkOutputs: [{
name: 'on-prem-output',
output: BridgeOutputConfiguration.network({
ipAddress: '192.168.1.200',
port: 5001,
network: productionNetwork,
protocol: BridgeProtocol.RTP,
ttl: 50,
}),
}],
}),
gateway: gateway,
});
python
from aws_cdk.aws_mediaconnect_alpha import BridgeFlowInput, BridgeFlowSource, BridgeNetworkOutput
# stack: Stack
# gateway: Gateway
# flow: Flow
# vpc_interface: VpcInterfaceConfig
# production_network: GatewayNetwork
egress_bridge = Bridge(stack, "MyEgressBridge",
bridge_name="my-egress-bridge",
config=BridgeConfiguration.egress(
max_bitrate=Bitrate.mbps(10),
flow_sources=[BridgeFlowInput(
name="cloud-source",
source=BridgeFlowSource(
flow=flow,
vpc_interface=vpc_interface
)
)],
network_outputs=[BridgeNetworkOutput(
name="on-prem-output",
output=BridgeOutputConfiguration.network(
ip_address="192.168.1.200",
port=5001,
network=production_network,
protocol=BridgeProtocol.RTP,
ttl=50
)
)]
),
gateway=gateway
)
java
Stack stack;
Gateway gateway;
Flow flow;
VpcInterfaceConfig vpcInterface;
GatewayNetwork productionNetwork;
Bridge egressBridge = Bridge.Builder.create(stack, "MyEgressBridge")
.bridgeName("my-egress-bridge")
.config(BridgeConfiguration.egress(EgressBridgeConfiguration.builder()
.maxBitrate(Bitrate.mbps(10))
.flowSources(List.of(BridgeFlowInput.builder()
.name("cloud-source")
.source(BridgeFlowSource.builder()
.flow(flow)
.vpcInterface(vpcInterface)
.build())
.build()))
.networkOutputs(List.of(BridgeNetworkOutput.builder()
.name("on-prem-output")
.output(BridgeOutputConfiguration.network(BridgeNetworkOutputProps.builder()
.ipAddress("192.168.1.200")
.port(5001)
.network(productionNetwork)
.protocol(BridgeProtocol.RTP)
.ttl(50)
.build()))
.build()))
.build()))
.gateway(gateway)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
Stack stack;
Gateway gateway;
Flow flow;
VpcInterfaceConfig vpcInterface;
GatewayNetwork productionNetwork;
var egressBridge = new Bridge(stack, "MyEgressBridge", new BridgeProps {
BridgeName = "my-egress-bridge",
Config = BridgeConfiguration.Egress(new EgressBridgeConfiguration {
MaxBitrate = Bitrate.Mbps(10),
FlowSources = new [] { new BridgeFlowInput {
Name = "cloud-source",
Source = new BridgeFlowSource {
Flow = flow,
VpcInterface = vpcInterface
}
} },
NetworkOutputs = new [] { new BridgeNetworkOutput {
Name = "on-prem-output",
Output = BridgeOutputConfiguration.Network(new BridgeNetworkOutputProps {
IpAddress = "192.168.1.200",
Port = 5001,
Network = productionNetwork,
Protocol = BridgeProtocol.RTP,
Ttl = 50
})
} }
}),
Gateway = gateway
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
var stack Stack
var gateway Gateway
var flow Flow
var vpcInterface VpcInterfaceConfig
var productionNetwork GatewayNetwork
egressBridge := awsmediaconnectalpha.NewBridge(stack, jsii.String("MyEgressBridge"), &BridgeProps{
BridgeName: jsii.String("my-egress-bridge"),
Config: awsmediaconnectalpha.BridgeConfiguration_Egress(&EgressBridgeConfiguration{
MaxBitrate: awscdk.Bitrate_Mbps(jsii.Number(10)),
FlowSources: []BridgeFlowInput{
&BridgeFlowInput{
Name: jsii.String("cloud-source"),
Source: &BridgeFlowSource{
Flow: flow,
VpcInterface: vpcInterface,
},
},
},
NetworkOutputs: []BridgeNetworkOutput{
&BridgeNetworkOutput{
Name: jsii.String("on-prem-output"),
Output: awsmediaconnectalpha.BridgeOutputConfiguration_Network(&BridgeNetworkOutputProps{
IpAddress: jsii.String("192.168.1.200"),
Port: jsii.Number(5001),
Network: productionNetwork,
Protocol: awsmediaconnectalpha.BridgeProtocol_RTP(),
Ttl: jsii.Number(50),
}),
},
},
}),
Gateway: gateway,
})
Properties
The IP address where the output will send content.
networkGatewayNetworknetworkGatewayNetworknetworkGatewayNetworkNetworkGatewayNetworkNetworkGatewayNetworkrequired#The gateway network this output sends content out of.
Use {@link GatewayNetwork.define} to create the network and pass the same instance to the gateway and to each output that uses it.
The port to use for the output.
protocolBridgeProtocolprotocolBridgeProtocolprotocolBridgeProtocolProtocolBridgeProtocolProtocolBridgeProtocolrequired#The protocol to use for the output.
Time to live (TTL) for the output packets in hops (1-255).
TTL represents the maximum number of network hops a packet can traverse before being discarded.