Skip to content
v2.278.0

CfnFlowVpcInterfaceProps Struct ​

Properties for defining a CfnFlowVpcInterface.

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 cfnFlowVpcInterfaceProps: mediaconnect.CfnFlowVpcInterfaceProps = {
  flowArn: 'flowArn',
  name: 'name',
  roleArn: 'roleArn',
  securityGroupIds: ['securityGroupIds'],
  subnetId: 'subnetId',

  // the properties below are optional
  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_flow_vpc_interface_props = mediaconnect.CfnFlowVpcInterfaceProps(
    flow_arn="flowArn",
    name="name",
    role_arn="roleArn",
    security_group_ids=["securityGroupIds"],
    subnet_id="subnetId",

    # the properties below are optional
    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.*;

CfnFlowVpcInterfaceProps cfnFlowVpcInterfaceProps = CfnFlowVpcInterfaceProps.builder()
        .flowArn("flowArn")
        .name("name")
        .roleArn("roleArn")
        .securityGroupIds(List.of("securityGroupIds"))
        .subnetId("subnetId")

        // the properties below are optional
        .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 cfnFlowVpcInterfaceProps = new CfnFlowVpcInterfaceProps {
    FlowArn = "flowArn",
    Name = "name",
    RoleArn = "roleArn",
    SecurityGroupIds = new [] { "securityGroupIds" },
    SubnetId = "subnetId",

    // the properties below are optional
    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"

cfnFlowVpcInterfaceProps := &CfnFlowVpcInterfaceProps{
	FlowArn: jsii.String("flowArn"),
	Name: jsii.String("name"),
	RoleArn: jsii.String("roleArn"),
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	SubnetId: jsii.String("subnetId"),

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

Properties ​

flowArnstringflow_arnstrflowArnStringFlowArnstringFlowArn*string required #
The Amazon Resource Name (ARN) of the flow.
namestringnamestrnameStringNamestringName*string required #
The name for the VPC interface.

This name must be unique within the flow.

roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*string required #
The Amazon Resource Name (ARN) of the role that you created when you set up MediaConnect as a trusted service.
securityGroupIdsstring[]security_group_idstyping.List[str]securityGroupIdsList<String>SecurityGroupIdsstring[]SecurityGroupIds*[]*string required #
A virtual firewall to control inbound and outbound traffic.
subnetIdstringsubnet_idstrsubnetIdStringSubnetIdstringSubnetId*string required #
The subnet IDs that you want to use for your VPC interface.
notes

A range of IP addresses in your VPC. When you create your VPC, you specify a range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16. This is the primary CIDR block for your VPC. When you create a subnet for your VPC, you specify the CIDR block for the subnet, which is a subset of the VPC CIDR block. The subnets that you use across all VPC interfaces on the flow must be in the same Availability Zone as the flow.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Key-value pairs that can be used to tag and organize this VPC network interface.