interface CfnNetworkInterfaceAttachmentProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnNetworkInterfaceAttachmentProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnNetworkInterfaceAttachmentProps |
Java | software.amazon.awscdk.services.ec2.CfnNetworkInterfaceAttachmentProps |
Python | aws_cdk.aws_ec2.CfnNetworkInterfaceAttachmentProps |
TypeScript | aws-cdk-lib » aws_ec2 » CfnNetworkInterfaceAttachmentProps |
Properties for defining a CfnNetworkInterfaceAttachment.
Example
// 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
| Name | Type | Description |
|---|---|---|
| device | string | The network interface's position in the attachment order. |
| instance | string | The ID of the instance to which you will attach the ENI. |
| network | string | The ID of the ENI that you want to attach. |
| delete | boolean | IResolvable | Whether to delete the network interface when the instance terminates. |
| ena | number | The number of ENA queues created with the instance. |
| ena | IResolvable | Ena | Configures ENA Express for the network interface that this action attaches to the instance. |
deviceIndex
Type:
string
The network interface's position in the attachment order.
For example, the first attached network interface has a DeviceIndex of 0.
instanceId
Type:
string
The ID of the instance to which you will attach the ENI.
networkInterfaceId
Type:
string
The ID of the ENI that you want to attach.
deleteOnTermination?
Type:
boolean | IResolvable
(optional, default: true)
Whether to delete the network interface when the instance terminates.
By default, this value is set to true .
enaQueueCount?
Type:
number
(optional)
The number of ENA queues created with the instance.
enaSrdSpecification?
Type:
IResolvable | Ena
(optional)
Configures ENA Express for the network interface that this action attaches to the instance.

.NET
Go
Java
Python
TypeScript