Interface VpcInterfaceDefineProps

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

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-31T10:49:55.238Z") @Stability(Experimental) public interface VpcInterfaceDefineProps extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for defining a new VPC Interface configuration.

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

    • getRole

      @Stability(Experimental) @NotNull IRole getRole()
      (experimental) IAM role that MediaConnect assumes to create ENIs in your account.
    • getSecurityGroups

      @Stability(Experimental) @NotNull List<ISecurityGroup> getSecurityGroups()
      (experimental) Security groups to apply to the ENI.
    • getSubnet

      @Stability(Experimental) @NotNull ISubnet getSubnet()
      (experimental) Subnet where the ENI is created.

      Must be in the same Availability Zone as the flow.

    • getVpcInterfaceName

      @Stability(Experimental) @NotNull String getVpcInterfaceName()
      (experimental) Unique name for this VPC interface within the flow.

      Cannot be changed after creation.

    • getNetworkInterfaceType

      @Stability(Experimental) @Nullable default NetworkInterface getNetworkInterfaceType()
      (experimental) The type of network interface.

      Use EFA for CDI workflows.

      Default: - undefined; when omitted, MediaConnect applies NetworkInterface.ENA at deploy time

    • builder

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