AWS::EC2::NetworkInterfaceAttachmentAttaches an elastic network interface (ENI) to an Amazon EC2 instance. You can use this resource type to attach additional network interfaces to an instance without interruption.
import { CfnNetworkInterfaceAttachment } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnNetworkInterfaceAttachmentConfiguration passed to the constructor as CfnNetworkInterfaceAttachmentProps.
deviceIndexRequiredstringThe network interface's position in the attachment order. For example, the first attached network interface has a `DeviceIndex` of 0.
instanceIdRequiredstringThe ID of the instance to which you will attach the ENI.
networkInterfaceIdRequiredstringThe ID of the ENI that you want to attach.
deleteOnTerminationOptionalboolean | IResolvableWhether to delete the network interface when the instance terminates. By default, this value is set to `true` .
Default: - true
enaQueueCountOptionalnumberThe number of ENA queues created with the instance.
enaSrdSpecificationOptionalIResolvable | EnaSrdSpecificationPropertyConfigures ENA Express for the network interface that this action attaches to the instance.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2AWS::EC2::NetworkInterfaceAttachment