CfnNetworkInterfaceAttachmentProps

class aws_cdk.aws_ec2.CfnNetworkInterfaceAttachmentProps(*, device_index, instance_id, network_interface_id, delete_on_termination=None, ena_srd_specification=None)

Bases: object

Properties for defining a CfnNetworkInterfaceAttachment.

Parameters:
  • device_index (str) – The network interface’s position in the attachment order. For example, the first attached network interface has a DeviceIndex of 0.

  • instance_id (str) – The ID of the instance to which you will attach the ENI.

  • network_interface_id (str) – The ID of the ENI that you want to attach.

  • 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

  • ena_srd_specification (Union[IResolvable, EnaSrdSpecificationProperty, Dict[str, Any], None]) – 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

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 import aws_ec2 as ec2

cfn_network_interface_attachment_props = ec2.CfnNetworkInterfaceAttachmentProps(
    device_index="deviceIndex",
    instance_id="instanceId",
    network_interface_id="networkInterfaceId",

    # the properties below are optional
    delete_on_termination=False,
    ena_srd_specification=ec2.CfnNetworkInterfaceAttachment.EnaSrdSpecificationProperty(
        ena_srd_enabled=False,
        ena_srd_udp_specification=ec2.CfnNetworkInterfaceAttachment.EnaSrdUdpSpecificationProperty(
            ena_srd_udp_enabled=False
        )
    )
)

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_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