All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
SourceCdi.Jsii$Proxy

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-31T10:49:55.225Z") @Stability(Experimental) public interface SourceCdi extends software.amazon.jsii.JsiiSerializable
(experimental) Configuration for CDI.

Example:

 Stack stack;
 IRole role;
 ISecurityGroup securityGroup;
 ISubnet subnet;
 VpcInterfaceConfig efaInterface = VpcInterface.define(VpcInterfaceDefineProps.builder()
         .vpcInterfaceName("efa-interface")
         .role(role)
         .securityGroups(List.of(securityGroup))
         .subnet(subnet)
         .networkInterfaceType(NetworkInterface.EFA)
         .build());
 MediaStream videoStream = MediaStream.video(MediaStreamVideo.builder()
         .mediaStreamId(1)
         .mediaStreamName("video")
         .videoFormat(MediaVideoFormat.HD_1080P)
         .fmtp(FmtpVideo.builder()
                 .exactFramerate(Framerate.FPS_29_97)
                 .par(PixelAspectRatio.SQUARE)
                 .build())
         .build());
 Flow flow = Flow.Builder.create(stack, "MyCdiFlow")
         .flowSize(FlowSize.LARGE_4X) // Required for CDI and JPEG XS
         .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();
 
  • Method Details

    • getMaxSyncBuffer

      @Stability(Experimental) @NotNull Number getMaxSyncBuffer()
      (experimental) The size of the buffer (in ms) to use to sync incoming source data.

      Required by the MediaConnect service for CDI sources.

    • getMediaStreamSourceConfigurations

      @Stability(Experimental) @NotNull List<MediaStreamSourceConfigurationCdi> getMediaStreamSourceConfigurations()
      (experimental) The media stream that is associated with the source, and the parameters for that association.
    • getPort

      @Stability(Experimental) @NotNull Number getPort()
      (experimental) The port that the flow will be listening on for incoming content.
    • getVpcInterface

      @Stability(Experimental) @NotNull VpcInterfaceConfig getVpcInterface()
      (experimental) The VPC interface attachment to use for this bridge source.
    • getFlowSourceName

      @Stability(Experimental) @Nullable default String getFlowSourceName()
      (experimental) The name of the source.

      Default: - a name is generated automatically

    • builder

      @Stability(Experimental) static SourceCdi.Builder builder()
      Returns:
      a SourceCdi.Builder of SourceCdi