CfnNetworkInterfaceAttachmentProps Struct
Properties for defining a CfnNetworkInterfaceAttachment.
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
deleteOnTerminationboolean | IResolvabledelete_on_terminationtyping.Union[bool, IResolvable]deleteOnTerminationBooleanDeleteOnTerminationboolDeleteOnTerminationinterface{}= true#Whether to delete the network interface when the instance terminates.
By default, this value is set to true .
The network interface's position in the attachment order.
For example, the first attached network interface has a DeviceIndex of 0.
enaQueueCountnumberena_queue_countint | floatenaQueueCountNumberEnaQueueCountdoubleEnaQueueCount*float64#The number of ENA queues created with the instance.
enaSrdSpecificationIResolvable | CfnNetworkInterfaceAttachment.EnaSrdSpecificationPropertyena_srd_specificationtyping.Union[IResolvable, EnaSrdSpecificationProperty]enaSrdSpecificationIResolvableEnaSrdSpecificationIResolvableEnaSrdSpecificationinterface{}#Configures ENA Express for the network interface that this action attaches to the instance.
The ID of the instance to which you will attach the ENI.
networkInterfaceIdstringnetwork_interface_idstrnetworkInterfaceIdStringNetworkInterfaceIdstringNetworkInterfaceId*stringrequired#The ID of the ENI that you want to attach.