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

Defines network configuration for a source — either a public network with a CIDR allowlist, or a VPC interface.

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

## Example

```ts
declare const stack: Stack;

const flow = new Flow(stack, 'MyFlow', {
  source: SourceConfiguration.srtListener({
    flowSourceName: 'live-encoder-source',
    description: 'Live encoder feed',
    port: 5000,
    minLatency: Duration.millis(2000),
    network: NetworkConfiguration.publicNetwork('203.0.113.0/24'),
  }),
});
```

## Properties

- `allowlistCidr`: string — The CIDR allowlist for public internet sources, or undefined if using VPC.

- `vpcInterfaceName`: string — The VPC interface name, or undefined if using public internet.

## Methods

- `publicNetwork(allowlistCidr: string): NetworkConfiguration // chainable` (static) — Use a public network with a CIDR allowlist.

- `vpc(vpcInterface: VpcInterfaceConfig): NetworkConfiguration // chainable` (static) — Use a VPC interface.
