@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-20T22:19:59.117Z")
public interface CfnNetworkInterfaceAttachmentProps
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) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnNetworkInterfaceAttachmentProps.Builder
A builder for
CfnNetworkInterfaceAttachmentProps |
static class |
CfnNetworkInterfaceAttachmentProps.Jsii$Proxy
An implementation for
CfnNetworkInterfaceAttachmentProps |
Modifier and Type | Method and Description |
---|---|
static CfnNetworkInterfaceAttachmentProps.Builder |
builder() |
default java.lang.Object |
getDeleteOnTermination()
Whether to delete the network interface when the instance terminates.
|
java.lang.String |
getDeviceIndex()
The network interface's position in the attachment order.
|
java.lang.String |
getInstanceId()
The ID of the instance to which you will attach the ENI.
|
java.lang.String |
getNetworkInterfaceId()
The ID of the ENI that you want to attach.
|
java.lang.String getDeviceIndex()
For example, the first attached network interface has a DeviceIndex
of 0.
java.lang.String getInstanceId()
java.lang.String getNetworkInterfaceId()
default java.lang.Object getDeleteOnTermination()
By default, this value is set to true
.
static CfnNetworkInterfaceAttachmentProps.Builder builder()