Experimental
@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
BridgeFlowInput Struct
A named flow source for an egress bridge.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediaconnect_alpha from '@aws-cdk/aws-mediaconnect-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const flow: mediaconnect_alpha.Flow;
declare const networkInterface: mediaconnect_alpha.NetworkInterface;
declare const role: iam.Role;
declare const securityGroup: ec2.SecurityGroup;
declare const subnet: ec2.Subnet;
const bridgeFlowInput: mediaconnect_alpha.BridgeFlowInput = {
name: 'name',
source: {
flow: flow,
// the properties below are optional
vpcInterface: {
name: 'name',
role: role,
securityGroups: [securityGroup],
subnet: subnet,
// the properties below are optional
networkInterfaceIds: ['networkInterfaceIds'],
networkInterfaceType: networkInterface,
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediaconnect_alpha as mediaconnect_alpha
from aws_cdk import aws_ec2 as ec2
from aws_cdk import aws_iam as iam
# flow: mediaconnect_alpha.Flow
# network_interface: mediaconnect_alpha.NetworkInterface
# role: iam.Role
# security_group: ec2.SecurityGroup
# subnet: ec2.Subnet
bridge_flow_input = mediaconnect_alpha.BridgeFlowInput(
name="name",
source=mediaconnect_alpha.BridgeFlowSource(
flow=flow,
# the properties below are optional
vpc_interface=mediaconnect_alpha.VpcInterfaceConfig(
name="name",
role=role,
security_groups=[security_group],
subnet=subnet,
# the properties below are optional
network_interface_ids=["networkInterfaceIds"],
network_interface_type=network_interface
)
)
)
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.alpha.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.iam.*;
Flow flow;
NetworkInterface networkInterface;
Role role;
SecurityGroup securityGroup;
Subnet subnet;
BridgeFlowInput bridgeFlowInput = BridgeFlowInput.builder()
.name("name")
.source(BridgeFlowSource.builder()
.flow(flow)
// the properties below are optional
.vpcInterface(VpcInterfaceConfig.builder()
.name("name")
.role(role)
.securityGroups(List.of(securityGroup))
.subnet(subnet)
// the properties below are optional
.networkInterfaceIds(List.of("networkInterfaceIds"))
.networkInterfaceType(networkInterface)
.build())
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect.Alpha;
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.IAM;
Flow flow;
NetworkInterface networkInterface;
Role role;
SecurityGroup securityGroup;
Subnet subnet;
var bridgeFlowInput = new BridgeFlowInput {
Name = "name",
Source = new BridgeFlowSource {
Flow = flow,
// the properties below are optional
VpcInterface = new VpcInterfaceConfig {
Name = "name",
Role = role,
SecurityGroups = new [] { securityGroup },
Subnet = subnet,
// the properties below are optional
NetworkInterfaceIds = new [] { "networkInterfaceIds" },
NetworkInterfaceType = networkInterface
}
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import mediaconnect_alpha "github.com/aws/aws-cdk-go/awsmediaconnectalpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var flow Flow
var networkInterface NetworkInterface
var role Role
var securityGroup SecurityGroup
var subnet Subnet
bridgeFlowInput := &BridgeFlowInput{
Name: jsii.String("name"),
Source: &BridgeFlowSource{
Flow: flow,
// the properties below are optional
VpcInterface: &VpcInterfaceConfig{
Name: jsii.String("name"),
Role: role,
SecurityGroups: []ISecurityGroup{
securityGroup,
},
Subnet: subnet,
// the properties below are optional
NetworkInterfaceIds: []*string{
jsii.String("networkInterfaceIds"),
},
NetworkInterfaceType: networkInterface,
},
},
}
Properties
The name of the flow source.
Must be unique among sources on the bridge.
sourceBridgeFlowSourcesourceBridgeFlowSourcesourceBridgeFlowSourceSourceBridgeFlowSourceSourceBridgeFlowSourcerequired#The flow source configuration describing where the bridge consumes content from.