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();
 
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Experimental) public static final String 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 to bridgeName, bridgeType (required for addOutput()), or isFailoverEnabled.

      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).

      Specified by:
      addOutput in interface IBridge
      Parameters:
      id - Construct id for the new BridgeOutput. This parameter is required.
      networkOutput - The named output to add. This parameter is required.
    • metric

      @Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
      (experimental) Create a CloudWatch metric for this bridge.

      Specified by:
      metric in interface IBridge
      Parameters:
      metricName - This parameter is required.
      props -
    • metric

      @Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName)
      (experimental) Create a CloudWatch metric for this bridge.

      Specified by:
      metric in interface IBridge
      Parameters:
      metricName - This parameter is required.
    • 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 the FAILOVER failover mode.

      Specified by:
      metricFailoverSwitches in interface IBridge
      Parameters:
      props -
    • metricFailoverSwitches

      @Stability(Experimental) @NotNull public Metric metricFailoverSwitches()
      (experimental) Metric for the total number of times the bridge switches between sources when using the FAILOVER failover mode.
      Specified by:
      metricFailoverSwitches in interface IBridge
    • 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:
      metricSourceBitrate in interface IBridge
      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:
      metricSourceBitrate in interface IBridge
      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:
      metricSourcePacketLossPercent in interface IBridge
      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:
      metricSourcePacketLossPercent in interface IBridge
      Parameters:
      bridgeSourceName - This parameter is required.
    • getBridgeArn

      @Stability(Experimental) @NotNull public String getBridgeArn()
      (experimental) The Amazon Resource Name (ARN) of the bridge.
      Specified by:
      getBridgeArn in interface IBridge
    • getBridgeName

      @Stability(Experimental) @NotNull public String getBridgeName()
      (experimental) The name of the bridge.
      Specified by:
      getBridgeName in interface IBridge
    • getBridgeRef

      @Stability(Experimental) @NotNull public BridgeReference getBridgeRef()
      (experimental) A reference to this Bridge resource.
      Specified by:
      getBridgeRef in interface IBridgeRef
    • getBridgeType

      @Stability(Experimental) @NotNull public BridgeType getBridgeType()
      (experimental) The type of bridge (ingress or egress).
      Specified by:
      getBridgeType in interface IBridge
    • getBridgeState

      @Stability(Experimental) @Nullable public String getBridgeState()
      (experimental) The current state of the bridge.
      Specified by:
      getBridgeState in interface IBridge
    • getIsFailoverEnabled

      @Stability(Experimental) @Nullable public Boolean getIsFailoverEnabled()
      (experimental) Failover Configuration for Bridge.
      Specified by:
      getIsFailoverEnabled in interface IBridge