> **Experimental**
>
> `@aws-cdk/aws-mediaconnect-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# VpcInterfaceConfig

VPC Interface configuration.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/shared.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-mediaconnect-alpha/lib/shared.ts#L376)

## Example

```ts
declare const stack: Stack;
declare const gateway: Gateway;
declare const flow: Flow;
declare const vpcInterface: VpcInterfaceConfig;
declare const productionNetwork: GatewayNetwork;

const egressBridge = new Bridge(stack, 'MyEgressBridge', {
  bridgeName: 'my-egress-bridge',
  config: BridgeConfiguration.egress({
    maxBitrate: Bitrate.mbps(10),
    flowSources: [{
      name: 'cloud-source',
      source: {
        flow: flow,
        vpcInterface: vpcInterface,
      },
    }],
    networkOutputs: [{
      name: 'on-prem-output',
      output: BridgeOutputConfiguration.network({
        ipAddress: '192.168.1.200',
        port: 5001,
        network: productionNetwork,
        protocol: BridgeProtocol.RTP,
        ttl: 50,
      }),
    }],
  }),
  gateway: gateway,
});
```

## Properties

- `name`: string (required) — Unique name for this VPC interface within the flow.

  Cannot be changed after creation.

- `networkInterfaceIds`: string[] — IDs of the network interfaces.

  **Default:** MediaConnect creates network interfaces automatically

  Set this when importing existing ENIs via
  `VpcInterface.fromNetworkInterfaces()`; leave unset to have MediaConnect create them.

- `networkInterfaceType`: [NetworkInterface](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.NetworkInterface.html) — The type of network interface.

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

  Use `EFA` for CDI workflows.

- `role`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) (required) — IAM role that MediaConnect assumes to create ENIs in your account.

- `securityGroups`: [ISecurityGroup](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ISecurityGroup.html)[] (required) — Security groups to apply to the ENI.

- `subnet`: [ISubnet](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ISubnet.html) (required) — Subnet where the ENI is created.

  Must be in the same Availability Zone as the flow.
