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: object

Properties 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 to true . Default: - true

  • device_index (Optional[str]) – The network interface’s position in the attachment order. For example, the first attached network interface has a DeviceIndex of 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfaceattachment.html

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 .

Default:
  • true

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfaceattachment.html#cfn-ec2-networkinterfaceattachment-deleteontermination

device_index

The network interface’s position in the attachment order.

For example, the first attached network interface has a DeviceIndex of 0.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfaceattachment.html#cfn-ec2-networkinterfaceattachment-deviceindex

ena_queue_count

The number of ENA queues created with the instance.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfaceattachment.html#cfn-ec2-networkinterfaceattachment-enaqueuecount

ena_srd_specification

Configures ENA Express for the network interface that this action attaches to the instance.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfaceattachment.html#cfn-ec2-networkinterfaceattachment-enasrdspecification

instance_id

The ID of the instance to which you will attach the ENI.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfaceattachment.html#cfn-ec2-networkinterfaceattachment-instanceid

network_interface_id

The ID of the ENI that you want to attach.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfaceattachment.html#cfn-ec2-networkinterfaceattachment-networkinterfaceid