VpcInterface
- class aws_cdk.aws_mediaconnect_alpha.VpcInterface
Bases:
object(experimental) Factory class for creating VPC Interface configurations.
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# 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 vpc_interface = mediaconnect_alpha.VpcInterface()
- Stability:
experimental
Static Methods
- classmethod define(*, role, security_groups, subnet, vpc_interface_name, network_interface_type=None)
(experimental) Define a new VPC Interface configuration.
MediaConnect will create network interfaces automatically.
- 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. UseEFAfor CDI workflows. Default: - undefined; when omitted, MediaConnect applies NetworkInterface.ENA at deploy time
- Return type:
- Returns:
VpcInterfaceConfig configuration object
- Stability:
experimental
- classmethod from_network_interfaces(*, network_interface_ids, role, security_groups, subnet, vpc_interface_name)
(experimental) Create a VPC Interface configuration using existing network interfaces.
- Parameters:
network_interface_ids (
Sequence[str]) – (experimental) IDs of the pre-created network interfaces to reuse.role (
IRole) – (experimental) IAM role that MediaConnect assumes to access the ENIs.security_groups (
Sequence[ISecurityGroup]) – (experimental) Security groups applied to the existing ENIs.subnet (
ISubnet) – (experimental) Subnet where the existing ENIs live. 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.
- Return type:
- Returns:
VpcInterfaceConfig configuration object
- Stability:
experimental