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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVpcInterfaceDefinePropsstatic final classAn implementation forVpcInterfaceDefineProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NetworkInterface(experimental) The type of network interface.getRole()(experimental) IAM role that MediaConnect assumes to create ENIs in your account.(experimental) Security groups to apply to the ENI.(experimental) Subnet where the ENI is created.(experimental) Unique name for this VPC interface within the flow.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRole
(experimental) IAM role that MediaConnect assumes to create ENIs in your account. -
getSecurityGroups
(experimental) Security groups to apply to the ENI. -
getSubnet
(experimental) Subnet where the ENI is created.Must be in the same Availability Zone as the flow.
-
getVpcInterfaceName
(experimental) Unique name for this VPC interface within the flow.Cannot be changed after creation.
-
getNetworkInterfaceType
(experimental) The type of network interface.Use
EFAfor CDI workflows.Default: - undefined; when omitted, MediaConnect applies NetworkInterface.ENA at deploy time
-
builder
- Returns:
- a
VpcInterfaceDefineProps.BuilderofVpcInterfaceDefineProps
-