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

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-31T10:49:55.235Z") @Stability(Experimental) public enum State extends Enum<State>
(experimental) State configuration used across AWS Elemental MediaConnect.

Example:

 Stack stack;
 VpcInterfaceConfig ndiVpcInterface;
 VpcInterfaceConfig efaInterface;
 MediaStream videoStream;
 // NDI requires LARGE, an encoding profile, and at least one discovery server
 // NDI requires LARGE, an encoding profile, and at least one discovery server
 Flow.Builder.create(stack, "NdiFlow")
         .flowSize(FlowSize.LARGE)
         .ndiConfig(NdiConfig.builder()
                 .ndiState(State.ENABLED)
                 .ndiDiscoveryServers(List.of(NdiDiscoveryServerConfig.builder()
                         .discoveryServerAddress("10.0.0.10")
                         .vpcInterface(ndiVpcInterface)
                         .build()))
                 .build())
         .encodingConfig(EncodingConfig.builder()
                 .encodingProfile(EncodingProfile.CONTRIBUTION_H264_DEFAULT)
                 .build())
         .source(SourceConfiguration.ndi(SourceNdi.builder()
                 .flowSourceName("ndi-source")
                 .build()))
         .build();
 // CDI and JPEG XS require LARGE_4X
 // CDI and JPEG XS require LARGE_4X
 Flow.Builder.create(stack, "CdiFlow")
         .flowSize(FlowSize.LARGE_4X)
         .vpcInterfaces(List.of(efaInterface))
         .mediaStreams(List.of(videoStream))
         .source(SourceConfiguration.cdi(SourceCdi.builder()
                 .flowSourceName("cdi-source")
                 .vpcInterface(efaInterface)
                 .port(5000)
                 .maxSyncBuffer(100)
                 .mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationCdi.builder()
                         .encoding(Encoding.RAW)
                         .mediaStream(videoStream)
                         .build()))
                 .build()))
         .build();
 
  • Enum Constant Details

    • ENABLED

      @Stability(Experimental) public static final State ENABLED
      (experimental) Option for Enabled.
    • DISABLED

      @Stability(Experimental) public static final State DISABLED
      (experimental) Option for Disabled.
  • Method Details

    • values

      public static State[] 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 State 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