VpcInterfaceDefineProps

class aws_cdk.aws_mediaconnect_alpha.VpcInterfaceDefineProps(*, role, security_groups, subnet, vpc_interface_name, network_interface_type=None)

Bases: object

(experimental) Properties for defining a new VPC Interface configuration.

Parameters:
  • role (IRole) – (experimental) IAM role that MediaConnect assumes to create ENIs in your account.

  • security_groups (Sequence[ISecurityGroup]) – (experimental) Security groups to apply to the ENI.

  • subnet (ISubnet) – (experimental) Subnet where the ENI is created. Must be in the same Availability Zone as the flow.

  • vpc_interface_name (str) – (experimental) Unique name for this VPC interface within the flow. Cannot be changed after creation.

  • network_interface_type (Optional[NetworkInterface]) – (experimental) The type of network interface. Use EFA for CDI workflows. Default: - undefined; when omitted, MediaConnect applies NetworkInterface.ENA at deploy time

Stability:

experimental

ExampleMetadata:

infused

Example:

from aws_cdk.aws_mediaconnect_alpha import FmtpVideo, MediaStreamSourceConfigurationCdi
# stack: Stack
# role: iam.IRole
# security_group: ec2.ISecurityGroup
# subnet: ec2.ISubnet


efa_interface = VpcInterface.define(
    vpc_interface_name="efa-interface",
    role=role,
    security_groups=[security_group],
    subnet=subnet,
    network_interface_type=NetworkInterface.EFA
)

video_stream = MediaStream.video(
    media_stream_id=1,
    media_stream_name="video",
    video_format=MediaVideoFormat.HD_1080P,
    fmtp=FmtpVideo(
        exact_framerate=Framerate.FPS_29_97,
        par=PixelAspectRatio.SQUARE
    )
)

flow = Flow(stack, "MyCdiFlow",
    flow_size=FlowSize.LARGE_4X,  # Required for CDI and JPEG XS
    vpc_interfaces=[efa_interface],
    media_streams=[video_stream],
    source=SourceConfiguration.cdi(
        flow_source_name="cdi-source",
        vpc_interface=efa_interface,
        port=5000,
        max_sync_buffer=100,
        media_stream_source_configurations=[MediaStreamSourceConfigurationCdi(
            encoding=Encoding.RAW,
            media_stream=video_stream
        )]
    )
)

Attributes

network_interface_type

(experimental) The type of network interface.

Use EFA for CDI workflows.

Default:
  • undefined; when omitted, MediaConnect applies NetworkInterface.ENA at deploy time

Stability:

experimental

role

(experimental) IAM role that MediaConnect assumes to create ENIs in your account.

Stability:

experimental

security_groups

(experimental) Security groups to apply to the ENI.

Stability:

experimental

subnet

(experimental) Subnet where the ENI is created.

Must be in the same Availability Zone as the flow.

Stability:

experimental

vpc_interface_name

(experimental) Unique name for this VPC interface within the flow.

Cannot be changed after creation.

Stability:

experimental