Skip to content
v2.278.0

RouterNetworkInterfaceConfigurationProperty Struct ​

Example ​

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 routerNetworkInterfaceConfigurationProperty: mediaconnect.CfnRouterNetworkInterface.RouterNetworkInterfaceConfigurationProperty = {
  public: {
    allowRules: [{
      cidr: 'cidr',
    }],
  },
  vpc: {
    securityGroupIds: ['securityGroupIds'],
    subnetId: 'subnetId',
  },
};
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

router_network_interface_configuration_property = 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"
    )
)
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.*;

RouterNetworkInterfaceConfigurationProperty routerNetworkInterfaceConfigurationProperty = 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();
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 routerNetworkInterfaceConfigurationProperty = new RouterNetworkInterfaceConfigurationProperty {
    Public = new PublicRouterNetworkInterfaceConfigurationProperty {
        AllowRules = new [] { new PublicRouterNetworkInterfaceRuleProperty {
            Cidr = "cidr"
        } }
    },
    Vpc = new VpcRouterNetworkInterfaceConfigurationProperty {
        SecurityGroupIds = new [] { "securityGroupIds" },
        SubnetId = "subnetId"
    }
};
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"

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

Properties ​

The configuration settings for a public router network interface, including the list of allowed CIDR blocks.
The configuration settings for a router network interface within a VPC, including the security group IDs and subnet ID.