Skip to content
v2.278.0

CfnRouterNetworkInterfaceProps Struct ​

Properties for defining a CfnRouterNetworkInterface.

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 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
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
// 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();
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"
    } }
};
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 ​

configurationIResolvable | CfnRouterNetworkInterface.RouterNetworkInterfaceConfigurationPropertyconfigurationtyping.Union[IResolvable, RouterNetworkInterfaceConfigurationProperty]configurationIResolvableConfigurationIResolvableConfigurationinterface{} required #
The configuration settings for a router network interface.
namestringnamestrnameStringNamestringName*string required #
The name of the router network interface.
regionNameoptionalstringregion_nameoptionalstrregionNameoptionalStringRegionNameoptionalstringRegionNameoptional*string #
The AWS Region where the router network interface is located.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Key-value pairs that can be used to tag and organize this router network interface.