interface CfnNetworkInterfaceAttachmentProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnNetworkInterfaceAttachmentProps |
Java | software.amazon.awscdk.services.ec2.CfnNetworkInterfaceAttachmentProps |
Python | aws_cdk.aws_ec2.CfnNetworkInterfaceAttachmentProps |
TypeScript | @aws-cdk/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 * as ec2 from '@aws-cdk/aws-ec2';
const cfnNetworkInterfaceAttachmentProps: ec2.CfnNetworkInterfaceAttachmentProps = {
deviceIndex: 'deviceIndex',
instanceId: 'instanceId',
networkInterfaceId: 'networkInterfaceId',
// the properties below are optional
deleteOnTermination: 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. |
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)
Whether to delete the network interface when the instance terminates.
By default, this value is set to true .

.NET
Java
Python
TypeScript