java.lang.Object
java.lang.Enum<PrimarySource>
software.amazon.awscdk.services.mediaconnect.alpha.PrimarySource
All Implemented Interfaces:
Serializable, Comparable<PrimarySource>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-31T10:49:55.192Z") @Stability(Experimental) public enum PrimarySource extends Enum<PrimarySource>
(experimental) Identifies which protocol in a failover configuration's protocols array is primary.

Example:

 Stack stack;
 RouterNetworkInterface networkInterface;
 RouterInput input = RouterInput.Builder.create(stack, "FailoverInput")
         .routerInputName("failover-input")
         .maximumBitrate(Bitrate.mbps(10))
         .routingScope(RoutingScope.REGIONAL)
         .tier(RouterInputTier.INPUT_50)
         .configuration(RouterInputConfiguration.failover(FailoverConfigurationProps.builder()
                 .networkInterface(networkInterface)
                 .protocols(List.of(RouterInputProtocol.rist(RistProtocolProps.builder()
                         .port(5000)
                         .recoveryLatency(Duration.millis(1000))
                         .build()), RouterInputProtocol.rist(RistProtocolProps.builder()
                         .port(5002) // Must not be consecutive with primary port
                         .recoveryLatency(Duration.millis(1000))
                         .build())))
                 .sourcePriority(SourcePriorityConfig.primarySecondary(PrimarySource.FIRST_SOURCE))
                 .build()))
         .build();
 
  • Enum Constant Details

    • FIRST_SOURCE

      @Stability(Experimental) public static final PrimarySource FIRST_SOURCE
      (experimental) The first protocol in the failover protocols array.
    • SECOND_SOURCE

      @Stability(Experimental) public static final PrimarySource SECOND_SOURCE
      (experimental) The second protocol in the failover protocols array.
  • Method Details

    • values

      public static PrimarySource[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PrimarySource valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null