@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.272Z") @Stability(value=Stable) public interface CfnNetworkInterfaceAttachmentProps extends software.amazon.jsii.JsiiSerializable
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 Object |
getDeleteOnTermination()
Whether to delete the network interface when the instance terminates.
|
String |
getDeviceIndex()
The network interface's position in the attachment order.
|
String |
getInstanceId()
The ID of the instance to which you will attach the ENI.
|
String |
getNetworkInterfaceId()
The ID of the ENI that you want to attach.
|
@Stability(value=Stable) @NotNull String getDeviceIndex()
For example, the first attached network interface has a DeviceIndex of 0.
@Stability(value=Stable) @NotNull String getInstanceId()
@Stability(value=Stable) @NotNull String getNetworkInterfaceId()
@Stability(value=Stable) @Nullable default Object getDeleteOnTermination()
By default, this value is set to true .
@Stability(value=Stable) static CfnNetworkInterfaceAttachmentProps.Builder builder()
Copyright © 2022. All rights reserved.