Class CfnNetworkInterfaceAttachmentProps
Properties for defining a CfnNetworkInterfaceAttachment.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnNetworkInterfaceAttachmentProps : ICfnNetworkInterfaceAttachmentProps
Syntax (vb)
Public Class CfnNetworkInterfaceAttachmentProps Implements ICfnNetworkInterfaceAttachmentProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnNetworkInterfaceAttachmentProps = new CfnNetworkInterfaceAttachmentProps {
DeviceIndex = "deviceIndex",
InstanceId = "instanceId",
NetworkInterfaceId = "networkInterfaceId",
// the properties below are optional
DeleteOnTermination = false,
EnaQueueCount = 123,
EnaSrdSpecification = new EnaSrdSpecificationProperty {
EnaSrdEnabled = false,
EnaSrdUdpSpecification = new EnaSrdUdpSpecificationProperty {
EnaSrdUdpEnabled = false
}
}
};
Synopsis
Constructors
| CfnNetworkInterfaceAttachmentProps() | Properties for defining a |
Properties
| DeleteOnTermination | Whether to delete the network interface when the instance terminates. |
| DeviceIndex | The network interface's position in the attachment order. |
| EnaQueueCount | The number of ENA queues created with the instance. |
| EnaSrdSpecification | Configures ENA Express for the network interface that this action attaches to the instance. |
| InstanceId | The ID of the instance to which you will attach the ENI. |
| NetworkInterfaceId | The ID of the ENI that you want to attach. |
Constructors
CfnNetworkInterfaceAttachmentProps()
Properties for defining a CfnNetworkInterfaceAttachment.
public CfnNetworkInterfaceAttachmentProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnNetworkInterfaceAttachmentProps = new CfnNetworkInterfaceAttachmentProps {
DeviceIndex = "deviceIndex",
InstanceId = "instanceId",
NetworkInterfaceId = "networkInterfaceId",
// the properties below are optional
DeleteOnTermination = false,
EnaQueueCount = 123,
EnaSrdSpecification = new EnaSrdSpecificationProperty {
EnaSrdEnabled = false,
EnaSrdUdpSpecification = new EnaSrdUdpSpecificationProperty {
EnaSrdUdpEnabled = false
}
}
};
Properties
DeleteOnTermination
Whether to delete the network interface when the instance terminates.
public object? DeleteOnTermination { get; set; }
Property Value
Remarks
DeviceIndex
The network interface's position in the attachment order.
public string DeviceIndex { get; set; }
Property Value
Remarks
For example, the first attached network interface has a DeviceIndex of 0.
EnaQueueCount
The number of ENA queues created with the instance.
public double? EnaQueueCount { get; set; }
Property Value
Remarks
EnaSrdSpecification
Configures ENA Express for the network interface that this action attaches to the instance.
public object? EnaSrdSpecification { get; set; }
Property Value
Remarks
InstanceId
The ID of the instance to which you will attach the ENI.
public string InstanceId { get; set; }
Property Value
Remarks
NetworkInterfaceId
The ID of the ENI that you want to attach.
public string NetworkInterfaceId { get; set; }