# PublicRouterNetworkInterfaceConfigurationProperty

The configuration settings for a public router network interface, including the list of allowed CIDR blocks.

- Source: Generated at build time
- Type last changed: v2.225.0 · 17 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediaconnect as mediaconnect } from 'aws-cdk-lib';
const publicRouterNetworkInterfaceConfigurationProperty: mediaconnect.CfnRouterNetworkInterface.PublicRouterNetworkInterfaceConfigurationProperty = {
  allowRules: [{
    cidr: 'cidr',
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediaconnect as mediaconnect

public_router_network_interface_configuration_property = mediaconnect.CfnRouterNetworkInterface.PublicRouterNetworkInterfaceConfigurationProperty(
    allow_rules=[mediaconnect.CfnRouterNetworkInterface.PublicRouterNetworkInterfaceRuleProperty(
        cidr="cidr"
    )]
)
```

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.*;

PublicRouterNetworkInterfaceConfigurationProperty publicRouterNetworkInterfaceConfigurationProperty = PublicRouterNetworkInterfaceConfigurationProperty.builder()
        .allowRules(List.of(PublicRouterNetworkInterfaceRuleProperty.builder()
                .cidr("cidr")
                .build()))
        .build();
```

C# / .NET:

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

var publicRouterNetworkInterfaceConfigurationProperty = new PublicRouterNetworkInterfaceConfigurationProperty {
    AllowRules = new [] { new PublicRouterNetworkInterfaceRuleProperty {
        Cidr = "cidr"
    } }
};
```

Golang:

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

publicRouterNetworkInterfaceConfigurationProperty := &PublicRouterNetworkInterfaceConfigurationProperty{
	AllowRules: []interface{}{
		&PublicRouterNetworkInterfaceRuleProperty{
			Cidr: jsii.String("cidr"),
		},
	},
}
```

## Properties

- `allowRules`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRouterNetworkInterface.PublicRouterNetworkInterfaceRuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnRouterNetworkInterface.PublicRouterNetworkInterfaceRuleProperty.html)[] (required) — The list of allowed CIDR blocks for the public router network interface.
