CfnNetworkInterfaceAttachmentMixinProps
- class aws_cdk.mixins_preview.aws_ec2.mixins.CfnNetworkInterfaceAttachmentMixinProps(*, delete_on_termination=None, device_index=None, ena_queue_count=None, ena_srd_specification=None, instance_id=None, network_interface_id=None)
Bases:
objectProperties for CfnNetworkInterfaceAttachmentPropsMixin.
- Parameters:
delete_on_termination (
Union[bool,IResolvable,None]) – Whether to delete the network interface when the instance terminates. By default, this value is set totrue. Default: - truedevice_index (
Optional[str]) – The network interface’s position in the attachment order. For example, the first attached network interface has aDeviceIndexof 0.ena_queue_count (
Union[int,float,None]) – The number of ENA queues created with the instance.ena_srd_specification (
Union[IResolvable,EnaSrdSpecificationProperty,Dict[str,Any],None]) – Configures ENA Express for the network interface that this action attaches to the instance.instance_id (
Optional[str]) – The ID of the instance to which you will attach the ENI.network_interface_id (
Optional[str]) – The ID of the ENI that you want to attach.
- 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 cfn_network_interface_attachment_mixin_props = 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" )
Attributes
- delete_on_termination
Whether to delete the network interface when the instance terminates.
By default, this value is set to
true.
- device_index
The network interface’s position in the attachment order.
For example, the first attached network interface has a
DeviceIndexof 0.
- ena_queue_count
The number of ENA queues created with the instance.
- ena_srd_specification
Configures ENA Express for the network interface that this action attaches to the instance.
- instance_id
The ID of the instance to which you will attach the ENI.
- network_interface_id
The ID of the ENI that you want to attach.