# CfnNetworkInterfaceAttachmentProps

Properties for defining a `CfnNetworkInterfaceAttachment`.

Extends: CfnNetworkInterfaceAttachmentProps
Used as props by: CfnNetworkInterfaceAttachment

- Source: Generated code
- Type last changed: v2.217.0 · 25 Sep 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnNetworkInterfaceAttachmentProps: ec2.CfnNetworkInterfaceAttachmentProps = {
  deviceIndex: 'deviceIndex',
  instanceId: 'instanceId',
  networkInterfaceId: 'networkInterfaceId',

  // the properties below are optional
  deleteOnTermination: false,
  enaQueueCount: 123,
  enaSrdSpecification: {
    enaSrdEnabled: false,
    enaSrdUdpSpecification: {
      enaSrdUdpEnabled: false,
    },
  },
};
```

## Properties

- `deleteOnTermination`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = true — Whether to delete the network interface when the instance terminates.

  By default, this value is set to `true` .

- `deviceIndex`: string (required) — The network interface's position in the attachment order.

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

- `enaQueueCount`: number — The number of ENA queues created with the instance.

- `enaSrdSpecification`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkInterfaceAttachment.EnaSrdSpecificationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkInterfaceAttachment.EnaSrdSpecificationProperty.html) — Configures ENA Express for the network interface that this action attaches to the instance.

- `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.
