Interface CfnNetworkInterfaceAttachmentProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnNetworkInterfaceAttachmentProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.878Z") @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)
         .build();
 
  • Method Details

    • getDeviceIndex

      @Stability(Stable) @NotNull String getDeviceIndex()
      The network interface's position in the attachment order.

      For example, the first attached network interface has a DeviceIndex of 0.

    • getInstanceId

      @Stability(Stable) @NotNull String getInstanceId()
      The ID of the instance to which you will attach the ENI.
    • getNetworkInterfaceId

      @Stability(Stable) @NotNull String getNetworkInterfaceId()
      The ID of the ENI that you want to attach.
    • getDeleteOnTermination

      @Stability(Stable) @Nullable default Object getDeleteOnTermination()
      Whether to delete the network interface when the instance terminates.

      By default, this value is set to true .

    • builder

      @Stability(Stable) static CfnNetworkInterfaceAttachmentProps.Builder builder()
      Returns:
      a CfnNetworkInterfaceAttachmentProps.Builder of CfnNetworkInterfaceAttachmentProps