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

NDI Configuration.

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/flow.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-mediaconnect-alpha/lib/flow.ts#L403)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediaconnect_alpha from '@aws-cdk/aws-mediaconnect-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const networkInterface: mediaconnect_alpha.NetworkInterface;
declare const role: iam.Role;
declare const securityGroup: ec2.SecurityGroup;
declare const subnet: ec2.Subnet;
const ndiDiscoveryServerConfig: mediaconnect_alpha.NdiDiscoveryServerConfig = {
  discoveryServerAddress: 'discoveryServerAddress',
  vpcInterface: {
    name: 'name',
    role: role,
    securityGroups: [securityGroup],
    subnet: subnet,

    // the properties below are optional
    networkInterfaceIds: ['networkInterfaceIds'],
    networkInterfaceType: networkInterface,
  },

  // the properties below are optional
  discoveryServerPort: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediaconnect_alpha as mediaconnect_alpha
from aws_cdk import aws_ec2 as ec2
from aws_cdk import aws_iam as iam

# network_interface: mediaconnect_alpha.NetworkInterface
# role: iam.Role
# security_group: ec2.SecurityGroup
# subnet: ec2.Subnet

ndi_discovery_server_config = mediaconnect_alpha.NdiDiscoveryServerConfig(
    discovery_server_address="discoveryServerAddress",
    vpc_interface=mediaconnect_alpha.VpcInterfaceConfig(
        name="name",
        role=role,
        security_groups=[security_group],
        subnet=subnet,

        # the properties below are optional
        network_interface_ids=["networkInterfaceIds"],
        network_interface_type=network_interface
    ),

    # the properties below are optional
    discovery_server_port=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediaconnect.alpha.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.iam.*;

NetworkInterface networkInterface;
Role role;
SecurityGroup securityGroup;
Subnet subnet;

NdiDiscoveryServerConfig ndiDiscoveryServerConfig = NdiDiscoveryServerConfig.builder()
        .discoveryServerAddress("discoveryServerAddress")
        .vpcInterface(VpcInterfaceConfig.builder()
                .name("name")
                .role(role)
                .securityGroups(List.of(securityGroup))
                .subnet(subnet)

                // the properties below are optional
                .networkInterfaceIds(List.of("networkInterfaceIds"))
                .networkInterfaceType(networkInterface)
                .build())

        // the properties below are optional
        .discoveryServerPort(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect.Alpha;
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.IAM;

NetworkInterface networkInterface;
Role role;
SecurityGroup securityGroup;
Subnet subnet;

var ndiDiscoveryServerConfig = new NdiDiscoveryServerConfig {
    DiscoveryServerAddress = "discoveryServerAddress",
    VpcInterface = new VpcInterfaceConfig {
        Name = "name",
        Role = role,
        SecurityGroups = new [] { securityGroup },
        Subnet = subnet,

        // the properties below are optional
        NetworkInterfaceIds = new [] { "networkInterfaceIds" },
        NetworkInterfaceType = networkInterface
    },

    // the properties below are optional
    DiscoveryServerPort = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import mediaconnect_alpha "github.com/aws/aws-cdk-go/awsmediaconnectalpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var networkInterface NetworkInterface
var role Role
var securityGroup SecurityGroup
var subnet Subnet

ndiDiscoveryServerConfig := &NdiDiscoveryServerConfig{
	DiscoveryServerAddress: jsii.String("discoveryServerAddress"),
	VpcInterface: &VpcInterfaceConfig{
		Name: jsii.String("name"),
		Role: role,
		SecurityGroups: []ISecurityGroup{
			securityGroup,
		},
		Subnet: subnet,

		// the properties below are optional
		NetworkInterfaceIds: []*string{
			jsii.String("networkInterfaceIds"),
		},
		NetworkInterfaceType: networkInterface,
	},

	// the properties below are optional
	DiscoveryServerPort: jsii.Number(123),
}
```

## Properties

- `discoveryServerAddress`: string (required) — The unique network address of the NDI discovery server.

- `discoveryServerPort`: number — The port for the NDI discovery server.

  **Default:** undefined; when omitted, MediaConnect applies 5959 at deploy time

  Defaults to 5959 if a custom port isn't specified.

- `vpcInterface`: [VpcInterfaceConfig](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.VpcInterfaceConfig.html) (required) — The VPC interface that the NDI discovery server uses to reach the flow.
