Interface CfnNetworkInterfaceAttachmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnNetworkInterfaceAttachmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:24:58.102Z")
@Stability(Stable)
public interface CfnNetworkInterfaceAttachmentProps
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.ec2.*; CfnNetworkInterfaceAttachmentProps cfnNetworkInterfaceAttachmentProps = CfnNetworkInterfaceAttachmentProps.builder() .deviceIndex("deviceIndex") .instanceId("instanceId") .networkInterfaceId("networkInterfaceId") // the properties below are optional .deleteOnTermination(false) .enaSrdSpecification(EnaSrdSpecificationProperty.builder() .enaSrdEnabled(false) .enaSrdUdpSpecification(EnaSrdUdpSpecificationProperty.builder() .enaSrdUdpEnabled(false) .build()) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnNetworkInterfaceAttachmentProps
static final class
An implementation forCfnNetworkInterfaceAttachmentProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Whether to delete the network interface when the instance terminates.The network interface's position in the attachment order.default Object
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.The ID of the ENI that you want to attach.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeviceIndex
The network interface's position in the attachment order.For example, the first attached network interface has a
DeviceIndex
of 0.- See Also:
-
getInstanceId
The ID of the instance to which you will attach the ENI.- See Also:
-
getNetworkInterfaceId
The ID of the ENI that you want to attach.- See Also:
-
getDeleteOnTermination
Whether to delete the network interface when the instance terminates.By default, this value is set to
true
.Default: - true
- See Also:
-
getEnaSrdSpecification
Configures ENA Express for the network interface that this action attaches to the instance.- See Also:
-
builder
-