# CfnRouterNetworkInterfaceProps

Properties for defining a `CfnRouterNetworkInterface`.

Used as props by: [CfnRouterNetworkInterface](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnRouterNetworkInterface.html)

- 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 cfnRouterNetworkInterfaceProps: mediaconnect.CfnRouterNetworkInterfaceProps = {
  configuration: {
    public: {
      allowRules: [{
        cidr: 'cidr',
      }],
    },
    vpc: {
      securityGroupIds: ['securityGroupIds'],
      subnetId: 'subnetId',
    },
  },
  name: 'name',

  // the properties below are optional
  regionName: 'regionName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_router_network_interface_props = mediaconnect.CfnRouterNetworkInterfaceProps(
    configuration=mediaconnect.CfnRouterNetworkInterface.RouterNetworkInterfaceConfigurationProperty(
        public=mediaconnect.CfnRouterNetworkInterface.PublicRouterNetworkInterfaceConfigurationProperty(
            allow_rules=[mediaconnect.CfnRouterNetworkInterface.PublicRouterNetworkInterfaceRuleProperty(
                cidr="cidr"
            )]
        ),
        vpc=mediaconnect.CfnRouterNetworkInterface.VpcRouterNetworkInterfaceConfigurationProperty(
            security_group_ids=["securityGroupIds"],
            subnet_id="subnetId"
        )
    ),
    name="name",

    # the properties below are optional
    region_name="regionName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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

CfnRouterNetworkInterfaceProps cfnRouterNetworkInterfaceProps = CfnRouterNetworkInterfaceProps.builder()
        .configuration(RouterNetworkInterfaceConfigurationProperty.builder()
                .public(PublicRouterNetworkInterfaceConfigurationProperty.builder()
                        .allowRules(List.of(PublicRouterNetworkInterfaceRuleProperty.builder()
                                .cidr("cidr")
                                .build()))
                        .build())
                .vpc(VpcRouterNetworkInterfaceConfigurationProperty.builder()
                        .securityGroupIds(List.of("securityGroupIds"))
                        .subnetId("subnetId")
                        .build())
                .build())
        .name("name")

        // the properties below are optional
        .regionName("regionName")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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 cfnRouterNetworkInterfaceProps = new CfnRouterNetworkInterfaceProps {
    Configuration = new RouterNetworkInterfaceConfigurationProperty {
        Public = new PublicRouterNetworkInterfaceConfigurationProperty {
            AllowRules = new [] { new PublicRouterNetworkInterfaceRuleProperty {
                Cidr = "cidr"
            } }
        },
        Vpc = new VpcRouterNetworkInterfaceConfigurationProperty {
            SecurityGroupIds = new [] { "securityGroupIds" },
            SubnetId = "subnetId"
        }
    },
    Name = "name",

    // the properties below are optional
    RegionName = "regionName",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnRouterNetworkInterfaceProps := &CfnRouterNetworkInterfaceProps{
	Configuration: &RouterNetworkInterfaceConfigurationProperty{
		Public: &PublicRouterNetworkInterfaceConfigurationProperty{
			AllowRules: []interface{}{
				&PublicRouterNetworkInterfaceRuleProperty{
					Cidr: jsii.String("cidr"),
				},
			},
		},
		Vpc: &VpcRouterNetworkInterfaceConfigurationProperty{
			SecurityGroupIds: []*string{
				jsii.String("securityGroupIds"),
			},
			SubnetId: jsii.String("subnetId"),
		},
	},
	Name: jsii.String("name"),

	// the properties below are optional
	RegionName: jsii.String("regionName"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `configuration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRouterNetworkInterface.RouterNetworkInterfaceConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnRouterNetworkInterface.RouterNetworkInterfaceConfigurationProperty.html) (required) — The configuration settings for a router network interface.

- `name`: string (required) — The name of the router network interface.

- `regionName`: string — The AWS Region where the router network interface is located.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Key-value pairs that can be used to tag and organize this router network interface.
