interface VpcInterfaceDefineProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.VpcInterfaceDefineProps |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#VpcInterfaceDefineProps |
Java | software.amazon.awscdk.services.mediaconnect.alpha.VpcInterfaceDefineProps |
Python | aws_cdk.aws_mediaconnect_alpha.VpcInterfaceDefineProps |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป VpcInterfaceDefineProps |
Properties for defining a new VPC Interface configuration.
Example
declare const stack: Stack;
declare const role: iam.IRole;
declare const securityGroup: ec2.ISecurityGroup;
declare const subnet: ec2.ISubnet;
const efaInterface = VpcInterface.define({
vpcInterfaceName: 'efa-interface',
role: role,
securityGroups: [securityGroup],
subnet: subnet,
networkInterfaceType: NetworkInterface.EFA, // Required for CDI
});
const videoStream = MediaStream.video({
mediaStreamId: 1,
mediaStreamName: 'video',
videoFormat: MediaVideoFormat.HD_1080P,
fmtp: {
exactFramerate: Framerate.FPS_29_97,
par: PixelAspectRatio.SQUARE,
},
});
const flow = new Flow(stack, 'MyCdiFlow', {
flowSize: FlowSize.LARGE_4X, // Required for CDI and JPEG XS
vpcInterfaces: [efaInterface],
mediaStreams: [videoStream],
source: SourceConfiguration.cdi({
flowSourceName: 'cdi-source',
vpcInterface: efaInterface,
port: 5000,
maxSyncBuffer: 100,
mediaStreamSourceConfigurations: [{
encoding: Encoding.RAW,
mediaStream: videoStream,
}],
}),
});
Properties
| Name | Type | Description |
|---|---|---|
| role | IRole | IAM role that MediaConnect assumes to create ENIs in your account. |
| security | ISecurity[] | Security groups to apply to the ENI. |
| subnet | ISubnet | Subnet where the ENI is created. |
| vpc | string | Unique name for this VPC interface within the flow. |
| network | Network | The type of network interface. |
role
Type:
IRole
IAM role that MediaConnect assumes to create ENIs in your account.
securityGroups
Type:
ISecurity[]
Security groups to apply to the ENI.
subnet
Type:
ISubnet
Subnet where the ENI is created.
Must be in the same Availability Zone as the flow.
vpcInterfaceName
Type:
string
Unique name for this VPC interface within the flow.
Cannot be changed after creation.
networkInterfaceType?
Type:
Network
(optional, default: undefined; when omitted, MediaConnect applies NetworkInterface.ENA at deploy time)
The type of network interface.
Use EFA for CDI workflows.

.NET
Go
Java
Python
TypeScript (