Class Bridge
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.mediaconnect.alpha.Bridge
- All Implemented Interfaces:
IEnvironmentAware,IBridgeRef,IResource,IBridge,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.129Z")
@Stability(Experimental)
public class Bridge
extends Resource
implements IBridge
(experimental) Defines a AWS Elemental MediaConnect Bridge.
Example:
Stack stack;
GatewayNetwork productionNetwork = GatewayNetwork.define(GatewayNetworkDefineProps.builder()
.cidrBlock("192.168.1.0/24")
.name("production-network")
.build());
Gateway gateway = Gateway.Builder.create(stack, "MyGateway")
.gatewayName("my-gateway")
.egressCidrBlocks(List.of("10.0.0.0/16"))
.networks(List.of(productionNetwork))
.build();
Bridge ingressBridge = Bridge.Builder.create(stack, "MyIngressBridge")
.bridgeName("my-ingress-bridge")
.config(BridgeConfiguration.ingress(IngressBridgeConfiguration.builder()
.maxBitrate(Bitrate.mbps(10))
.maxOutputs(2)
.networkSources(List.of(BridgeNetworkInput.builder()
.name("on-prem-source")
.source(BridgeNetworkSource.builder()
.protocol(BridgeProtocol.RTP)
.network(productionNetwork)
.multicastIp("239.1.1.1")
.port(5000)
.build())
.build()))
.build()))
.gateway(gateway)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.mediaconnect.alpha.IBridge
IBridge.Jsii$Default, IBridge.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBridge(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBridge(software.amazon.jsii.JsiiObjectRef objRef) Bridge(software.constructs.Construct scope, String id, BridgeProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddOutput(String id, BridgeNetworkOutput networkOutput) (experimental) Add a network output to this bridge (for egress bridges only).static IBridgefromBridgeArn(software.constructs.Construct scope, String id, String bridgeArn) (experimental) Import an existing Bridge from its ARN.static IBridgefromBridgeAttributes(software.constructs.Construct scope, String id, BridgeAttributes attrs) (experimental) Creates a Bridge construct that represents an external (imported) Bridge.(experimental) The Amazon Resource Name (ARN) of the bridge.(experimental) The name of the bridge.(experimental) A reference to this Bridge resource.(experimental) The current state of the bridge.(experimental) The type of bridge (ingress or egress).(experimental) Failover Configuration for Bridge.(experimental) Create a CloudWatch metric for this bridge.metric(String metricName, MetricOptions props) (experimental) Create a CloudWatch metric for this bridge.(experimental) Metric for the total number of times the bridge switches between sources when using theFAILOVERfailover mode.(experimental) Metric for the total number of times the bridge switches between sources when using theFAILOVERfailover mode.metricSourceBitrate(String bridgeSourceName) (experimental) Metric for the bitrate of a specific bridge source.metricSourceBitrate(String bridgeSourceName, MetricOptions props) (experimental) Metric for the bitrate of a specific bridge source.metricSourcePacketLossPercent(String bridgeSourceName) (experimental) Metric for the percentage of packets lost on a specific bridge source.metricSourcePacketLossPercent(String bridgeSourceName, MetricOptions props) (experimental) Metric for the percentage of packets lost on a specific bridge source.Methods inherited from class software.amazon.awscdk.Resource
applyCrossStackReferenceStrength, applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
Bridge
protected Bridge(software.amazon.jsii.JsiiObjectRef objRef) -
Bridge
protected Bridge(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Bridge
@Stability(Experimental) public Bridge(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull BridgeProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromBridgeArn
@Stability(Experimental) @NotNull public static IBridge fromBridgeArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String bridgeArn) (experimental) Import an existing Bridge from its ARN.Use
fromBridgeAttributes()instead if you need access tobridgeName,bridgeType(required foraddOutput()), orisFailoverEnabled.- Parameters:
scope- This parameter is required.id- This parameter is required.bridgeArn- This parameter is required.
-
fromBridgeAttributes
@Stability(Experimental) @NotNull public static IBridge fromBridgeAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull BridgeAttributes attrs) (experimental) Creates a Bridge construct that represents an external (imported) Bridge.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
addOutput
@Stability(Experimental) @NotNull public IBridgeOutput addOutput(@NotNull String id, @NotNull BridgeNetworkOutput networkOutput) (experimental) Add a network output to this bridge (for egress bridges only). -
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Create a CloudWatch metric for this bridge. -
metric
(experimental) Create a CloudWatch metric for this bridge. -
metricFailoverSwitches
@Stability(Experimental) @NotNull public Metric metricFailoverSwitches(@Nullable MetricOptions props) (experimental) Metric for the total number of times the bridge switches between sources when using theFAILOVERfailover mode.- Specified by:
metricFailoverSwitchesin interfaceIBridge- Parameters:
props-
-
metricFailoverSwitches
(experimental) Metric for the total number of times the bridge switches between sources when using theFAILOVERfailover mode.- Specified by:
metricFailoverSwitchesin interfaceIBridge
-
metricSourceBitrate
@Stability(Experimental) @NotNull public Metric metricSourceBitrate(@NotNull String bridgeSourceName, @Nullable MetricOptions props) (experimental) Metric for the bitrate of a specific bridge source.- Specified by:
metricSourceBitratein interfaceIBridge- Parameters:
bridgeSourceName- This parameter is required.props-
-
metricSourceBitrate
@Stability(Experimental) @NotNull public Metric metricSourceBitrate(@NotNull String bridgeSourceName) (experimental) Metric for the bitrate of a specific bridge source.- Specified by:
metricSourceBitratein interfaceIBridge- Parameters:
bridgeSourceName- This parameter is required.
-
metricSourcePacketLossPercent
@Stability(Experimental) @NotNull public Metric metricSourcePacketLossPercent(@NotNull String bridgeSourceName, @Nullable MetricOptions props) (experimental) Metric for the percentage of packets lost on a specific bridge source.- Specified by:
metricSourcePacketLossPercentin interfaceIBridge- Parameters:
bridgeSourceName- This parameter is required.props-
-
metricSourcePacketLossPercent
@Stability(Experimental) @NotNull public Metric metricSourcePacketLossPercent(@NotNull String bridgeSourceName) (experimental) Metric for the percentage of packets lost on a specific bridge source.- Specified by:
metricSourcePacketLossPercentin interfaceIBridge- Parameters:
bridgeSourceName- This parameter is required.
-
getBridgeArn
(experimental) The Amazon Resource Name (ARN) of the bridge.- Specified by:
getBridgeArnin interfaceIBridge
-
getBridgeName
(experimental) The name of the bridge.- Specified by:
getBridgeNamein interfaceIBridge
-
getBridgeRef
(experimental) A reference to this Bridge resource.- Specified by:
getBridgeRefin interfaceIBridgeRef
-
getBridgeType
(experimental) The type of bridge (ingress or egress).- Specified by:
getBridgeTypein interfaceIBridge
-
getBridgeState
(experimental) The current state of the bridge.- Specified by:
getBridgeStatein interfaceIBridge
-
getIsFailoverEnabled
(experimental) Failover Configuration for Bridge.- Specified by:
getIsFailoverEnabledin interfaceIBridge
-