Interface ICfnNetworkInterfaceAttachmentProps
Properties for defining a CfnNetworkInterfaceAttachment
.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnNetworkInterfaceAttachmentProps
Syntax (vb)
Public Interface 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,
EnaSrdSpecification = new EnaSrdSpecificationProperty {
EnaSrdEnabled = false,
EnaSrdUdpSpecification = new EnaSrdUdpSpecificationProperty {
EnaSrdUdpEnabled = false
}
}
};
Synopsis
Properties
DeleteOnTermination | Whether to delete the network interface when the instance terminates. |
DeviceIndex | The network interface's position in the attachment order. |
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. |
Properties
DeleteOnTermination
Whether to delete the network interface when the instance terminates.
virtual object DeleteOnTermination { get; }
Property Value
System.Object
Remarks
By default, this value is set to true
.
Default: - true
DeviceIndex
The network interface's position in the attachment order.
string DeviceIndex { get; }
Property Value
System.String
Remarks
For example, the first attached network interface has a DeviceIndex
of 0.
EnaSrdSpecification
Configures ENA Express for the network interface that this action attaches to the instance.
virtual object EnaSrdSpecification { get; }
Property Value
System.Object
Remarks
InstanceId
The ID of the instance to which you will attach the ENI.
string InstanceId { get; }
Property Value
System.String
Remarks
NetworkInterfaceId
The ID of the ENI that you want to attach.
string NetworkInterfaceId { get; }
Property Value
System.String