AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::MediaConnect::FlowVpcInterface

CfnFlowVpcInterface

The `AWS::MediaConnect::FlowVpcInterface` resource is a connection between your AWS Elemental MediaConnect flow and a virtual private cloud (VPC) that you created using the Amazon Virtual Private Cloud service. To avoid streaming your content over the public internet, you can add up to two VPC interfaces to your flow and use those connections to transfer content between your VPC and MediaConnect. You can update an existing flow to add a VPC interface. If you haven’t created the flow yet, you must create the flow with a temporary standard source by doing the following: - Use CloudFormation to create a flow with a standard source that uses to the flow’s public IP address. - Use CloudFormation to create a VPC interface to add to this flow. This can also be done as part of the previous step. - After CloudFormation has created the flow and the VPC interface, update the source to point to the VPC interface that you created. > The previous steps must be undone before the CloudFormation stack can be deleted. Because the source is manually updated in step 3, CloudFormation is not aware of this change. The source must be returned to a standard source before CloudFormation stack deletion. > When configuring NDI outputs for your flow, define the VPC interface as a nested attribute within the `AWS::MediaConnect::Flow` resource. Do not use the top-level `AWS::MediaConnect::FlowVpcInterface` resource type to specify NDI configurations.

Import

import { CfnFlowVpcInterface } from 'aws-cdk-lib/aws-mediaconnect';

Or use the module namespace:

import * as mediaconnect from 'aws-cdk-lib/aws-mediaconnect';
// mediaconnect.CfnFlowVpcInterface

Properties

Configuration passed to the constructor as CfnFlowVpcInterfaceProps.

flowArnRequired
string

The Amazon Resource Name (ARN) of the flow.

nameRequired
string

The name for the VPC interface. This name must be unique within the flow.

roleArnRequired
string

The Amazon Resource Name (ARN) of the role that you created when you set up MediaConnect as a trusted service.

securityGroupIdsRequired
string[]

A virtual firewall to control inbound and outbound traffic.

subnetIdRequired
string

The subnet IDs that you want to use for your VPC interface. 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.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-mediaconnect
CFN TypeAWS::MediaConnect::FlowVpcInterface
Properties5

External Links