CfnNetworkInterfaceAttachmentPropsMixin
- class aws_cdk.mixins_preview.aws_ec2.mixins.CfnNetworkInterfaceAttachmentPropsMixin(props, *, strategy=None)
Bases:
MixinAttaches an elastic network interface (ENI) to an Amazon EC2 instance.
You can use this resource type to attach additional network interfaces to an instance without interruption.
- See:
- CloudformationResource:
AWS::EC2::NetworkInterfaceAttachment
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins cfn_network_interface_attachment_props_mixin = ec2_mixins.CfnNetworkInterfaceAttachmentPropsMixin(ec2_mixins.CfnNetworkInterfaceAttachmentMixinProps( delete_on_termination=False, device_index="deviceIndex", ena_queue_count=123, ena_srd_specification=ec2_mixins.CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdSpecificationProperty( ena_srd_enabled=False, ena_srd_udp_specification=ec2_mixins.CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdUdpSpecificationProperty( ena_srd_udp_enabled=False ) ), instance_id="instanceId", network_interface_id="networkInterfaceId" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::EC2::NetworkInterfaceAttachment.- Parameters:
props (
Union[CfnNetworkInterfaceAttachmentMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['deleteOnTermination', 'deviceIndex', 'enaQueueCount', 'enaSrdSpecification', 'instanceId', 'networkInterfaceId']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
EnaSrdSpecificationProperty
- class CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdSpecificationProperty(*, ena_srd_enabled=None, ena_srd_udp_specification=None)
Bases:
objectENA Express uses AWS Scalable Reliable Datagram (SRD) technology to increase the maximum bandwidth used per stream and minimize tail latency of network traffic between EC2 instances.
With ENA Express, you can communicate between two EC2 instances in the same subnet within the same account, or in different accounts. Both sending and receiving instances must have ENA Express enabled.
To improve the reliability of network packet delivery, ENA Express reorders network packets on the receiving end by default. However, some UDP-based applications are designed to handle network packets that are out of order to reduce the overhead for packet delivery at the network layer. When ENA Express is enabled, you can specify whether UDP network traffic uses it.
- Parameters:
ena_srd_enabled (
Union[bool,IResolvable,None]) – Indicates whether ENA Express is enabled for the network interface.ena_srd_udp_specification (
Union[IResolvable,EnaSrdUdpSpecificationProperty,Dict[str,Any],None]) – Configures ENA Express for UDP network traffic.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins ena_srd_specification_property = ec2_mixins.CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdSpecificationProperty( ena_srd_enabled=False, ena_srd_udp_specification=ec2_mixins.CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdUdpSpecificationProperty( ena_srd_udp_enabled=False ) )
Attributes
- ena_srd_enabled
Indicates whether ENA Express is enabled for the network interface.
- ena_srd_udp_specification
Configures ENA Express for UDP network traffic.
EnaSrdUdpSpecificationProperty
- class CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdUdpSpecificationProperty(*, ena_srd_udp_enabled=None)
Bases:
objectENA Express is compatible with both TCP and UDP transport protocols.
When it’s enabled, TCP traffic automatically uses it. However, some UDP-based applications are designed to handle network packets that are out of order, without a need for retransmission, such as live video broadcasting or other near-real-time applications. For UDP traffic, you can specify whether to use ENA Express, based on your application environment needs.
- Parameters:
ena_srd_udp_enabled (
Union[bool,IResolvable,None]) – Indicates whether UDP traffic to and from the instance uses ENA Express. To specify this setting, you must first enable ENA Express.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins ena_srd_udp_specification_property = ec2_mixins.CfnNetworkInterfaceAttachmentPropsMixin.EnaSrdUdpSpecificationProperty( ena_srd_udp_enabled=False )
Attributes
- ena_srd_udp_enabled
Indicates whether UDP traffic to and from the instance uses ENA Express.
To specify this setting, you must first enable ENA Express.