Experimental
@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
BridgeSourceConfiguration Class
Factory class for creating bridge source configurations.
Example
ts
declare const stack: Stack;
declare const bridge: Bridge;
declare const flow: Flow;
// Add a flow source to an egress bridge (requires failover to be enabled)
const additionalSource = new BridgeSource(stack, 'AdditionalSource', {
bridgeSourceName: 'backup-source',
bridge: bridge,
source: BridgeSourceConfiguration.flow({
flow: flow,
}),
});
python
# stack: Stack
# bridge: Bridge
# flow: Flow
# Add a flow source to an egress bridge (requires failover to be enabled)
additional_source = BridgeSource(stack, "AdditionalSource",
bridge_source_name="backup-source",
bridge=bridge,
source=BridgeSourceConfiguration.flow(
flow=flow
)
)
java
Stack stack;
Bridge bridge;
Flow flow;
// Add a flow source to an egress bridge (requires failover to be enabled)
BridgeSource additionalSource = BridgeSource.Builder.create(stack, "AdditionalSource")
.bridgeSourceName("backup-source")
.bridge(bridge)
.source(BridgeSourceConfiguration.flow(BridgeFlowSource.builder()
.flow(flow)
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
Stack stack;
Bridge bridge;
Flow flow;
// Add a flow source to an egress bridge (requires failover to be enabled)
var additionalSource = new BridgeSource(stack, "AdditionalSource", new BridgeSourceProps {
BridgeSourceName = "backup-source",
Bridge = bridge,
Source = BridgeSourceConfiguration.Flow(new BridgeFlowSource {
Flow = flow
})
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
var stack Stack
var bridge Bridge
var flow Flow
// Add a flow source to an egress bridge (requires failover to be enabled)
additionalSource := awsmediaconnectalpha.NewBridgeSource(stack, jsii.String("AdditionalSource"), &BridgeSourceProps{
BridgeSourceName: jsii.String("backup-source"),
Bridge: bridge,
Source: awsmediaconnectalpha.BridgeSourceConfiguration_Flow(&BridgeFlowSource{
Flow: flow,
}),
})
Methods
flow(source: BridgeFlowSource): BridgeSourceConfiguration // chainable@staticmethod def flow(source: BridgeFlowSource) -> BridgeSourceConfigurationpublic static BridgeSourceConfiguration flow(BridgeFlowSource source)public static BridgeSourceConfiguration Flow(BridgeFlowSource source)func Flow(Source BridgeFlowSource) BridgeSourceConfigurationstatic#Create a flow source configuration for a bridge source.
1 parameter · returns
Parameters
sourcesourcesourcesourceSource— Flow source configuration.
Returns: Bridge source configuration with flow source
network(source: BridgeNetworkSource): BridgeSourceConfiguration // chainable@staticmethod def network(source: BridgeNetworkSource) -> BridgeSourceConfigurationpublic static BridgeSourceConfiguration network(BridgeNetworkSource source)public static BridgeSourceConfiguration Network(BridgeNetworkSource source)func Network(Source BridgeNetworkSource) BridgeSourceConfigurationstatic#Create a network source configuration for a bridge source.
1 parameter · returns
Parameters
sourcesourcesourcesourceSource— Network source configuration.
Returns: Bridge source configuration with network source