VPC interfaces: add - AWS Elemental MediaConnect

VPC interfaces: add

URI

/v1/flows/flowArn/vpcInterfaces

HTTP methods

POST

Operation ID: AddFlowVpcInterfaces

Adds VPC interfaces to a flow.

A virtual private cloud (VPC) based on the Amazon Virtual Private Cloud service is your private, logically isolated network in the AWS Cloud. 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.

Path parameters
NameTypeRequiredDescription
flowArnStringTrue

The Amazon Resource Name (ARN) of the flow.

Responses
Status codeResponse modelDescription
201AddFlowVpcInterfacesResponse

MediaConnect created the new resource successfully.

400ResponseError

The request that you submitted is not valid.

403ResponseError

You don't have the required permissions to perform this operation.

404ResponseError

MediaConnect did not find the resource that you specified in the request.

429ResponseError

You have exceeded the service request rate limit for your MediaConnect account.

500ResponseError

MediaConnect can't fulfill your request because it encountered an unexpected condition.

503ResponseError

MediaConnect is currently unavailable. Try again later.

Schemas

Request bodies

{ "vpcInterfaces": [ { "subnetId": "string", "roleArn": "string", "securityGroupIds": [ "string" ], "name": "string", "networkInterfaceType": enum } ] }

Response bodies

{ "flowArn": "string", "vpcInterfaces": [ { "subnetId": "string", "roleArn": "string", "securityGroupIds": [ "string" ], "name": "string", "networkInterfaceType": enum, "networkInterfaceIds": [ "string" ] } ] }
{ "message": "string" }

Properties

AddFlowVpcInterfacesRequest

Adds VPC interfaces to an existing flow.

PropertyTypeRequiredDescription
vpcInterfaces

Array of type VpcInterfaceRequest

True

A list of VPC interfaces that you want to add.

AddFlowVpcInterfacesResponse

The result of a successful AddFlowVpcInterfaces request. The response includes the details of the newly added VPC interfaces.

PropertyTypeRequiredDescription
flowArn

string

True

The ARN of the flow that these VPC interfaces were added to.

vpcInterfaces

Array of type VpcInterface

True

The details of the newly added VPC interfaces.

ResponseError

An exception raised by MediaConnect when you submit a request that cannot be completed. For more information, see the error message and documentation for the operation.

PropertyTypeRequiredDescription
message

string

True

The specific error message that MediaConnect returns to help you understand the reason that the request did not succeed.

VpcInterface

The details of a VPC interface.

PropertyTypeRequiredDescription
name

string

True

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

networkInterfaceIds

Array of type string

True

The IDs of the network interfaces that MediaConnect created in your account.

networkInterfaceType

string

Values: ena | efa

True

The type of network interface.

roleArn

string

True

The ARN of the IAM role that you created when you set up MediaConnect as a trusted service.

securityGroupIds

Array of type string

True

A virtual firewall to control inbound and outbound traffic.

subnetId

string

True

The subnet IDs that you specified for your VPC interface.

A subnet ID is 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.

VpcInterfaceRequest

The details of the VPC interfaces that you want to add to the flow.

PropertyTypeRequiredDescription
name

string

True

The name of the VPC Interface. This value must be unique within the current flow.

networkInterfaceType

string

Values: ena | efa

False

The type of network adapter that you want MediaConnect to use on this interface. If you don't set this value, it defaults to ENA.

roleArn

string

True

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

securityGroupIds

Array of type string

True

The VPC security groups that you want MediaConnect to use for your VPC configuration. You must include at least one security group in the request.

subnetId

string

True

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.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

AddFlowVpcInterfaces