---
type: resource-type
title: NetworkInterfaceAttachment
description: aws resource type AWS::EC2::NetworkInterfaceAttachment
name: NetworkInterfaceAttachment
lexicon: aws
resource_type: AWS::EC2::NetworkInterfaceAttachment
---
`AWS::EC2::NetworkInterfaceAttachment`, a resource type of the aws lexicon.

## Properties

- `DeviceIndex` (`string`, required): The network interface's position in the attachment order. For example, the first attached network interface has a ``DeviceIndex`` of 0.
- `InstanceId` (`string`, required): The ID of the instance to which you will attach the ENI.
- `NetworkInterfaceId` (`string`, required): The ID of the ENI that you want to attach.
- `AttachmentId` (`string`, optional)
- `DeleteOnTermination` (`boolean`, optional): Whether to delete the network interface when the instance terminates. By default, this value is set to ``true``.
- `EnaQueueCount` (`number`, optional): The number of ENA queues created with the instance.
- `EnaSrdSpecification` (`NetworkInterfaceAttachment_EnaSrdSpecification`, optional): Configures ENA Express for the network interface that this action attaches to the instance.

## Attributes

- `AttachmentId`
