NetworkConfiguration
- class aws_cdk.aws_mediaconnect_alpha.NetworkConfiguration(*args: Any, **kwargs)
Bases:
object(experimental) Defines network configuration for a source — either a public network with a CIDR allowlist, or a VPC interface.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# stack: Stack flow = Flow(stack, "MyFlow", source=SourceConfiguration.srt_listener( flow_source_name="live-encoder-source", description="Live encoder feed", port=5000, min_latency=Duration.millis(2000), network=NetworkConfiguration.public_network("203.0.113.0/24") ) )
Attributes
- allowlist_cidr
(experimental) The CIDR allowlist for public internet sources, or undefined if using VPC.
- Stability:
experimental
- vpc_interface_name
(experimental) The VPC interface name, or undefined if using public internet.
- Stability:
experimental
Static Methods
- classmethod public_network(allowlist_cidr)
(experimental) Use a public network with a CIDR allowlist.
- Parameters:
allowlist_cidr (
str)- Stability:
experimental
- Return type:
- classmethod vpc(*, name, role, security_groups, subnet, network_interface_ids=None, network_interface_type=None)
(experimental) Use a VPC interface.
- Parameters:
name (
str) – (experimental) Unique name for this VPC interface within the flow. Cannot be changed after creation.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.network_interface_ids (
Optional[Sequence[str]]) – (experimental) IDs of the network interfaces. Set this when importing existing ENIs viaVpcInterface.fromNetworkInterfaces(); leave unset to have MediaConnect create them. Default: - MediaConnect creates network interfaces automaticallynetwork_interface_type (
Optional[NetworkInterface]) – (experimental) The type of network interface. UseEFAfor CDI workflows. Default: - undefined; when omitted, MediaConnect applies NetworkInterface.ENA at deploy time
- Stability:
experimental
- Return type: