Interface CfnEIPAssociationProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.552Z") @Stability(Stable) public interface CfnEIPAssociationProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnEIPAssociation.

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.*;
 CfnEIPAssociationProps cfnEIPAssociationProps = CfnEIPAssociationProps.builder()
         .allocationId("allocationId")
         .eip("eip")
         .instanceId("instanceId")
         .networkInterfaceId("networkInterfaceId")
         .privateIpAddress("privateIpAddress")
         .build();
 
  • Method Details

    • getAllocationId

      @Stability(Stable) @Nullable default String getAllocationId()
      The allocation ID.

      This is required.

    • getEip

      @Stability(Stable) @Nullable default String getEip()
      Deprecated.
    • getInstanceId

      @Stability(Stable) @Nullable default String getInstanceId()
      The ID of the instance.

      The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.

    • getNetworkInterfaceId

      @Stability(Stable) @Nullable default String getNetworkInterfaceId()
      The ID of the network interface.

      If the instance has more than one network interface, you must specify a network interface ID.

      You can specify either the instance ID or the network interface ID, but not both.

    • getPrivateIpAddress

      @Stability(Stable) @Nullable default String getPrivateIpAddress()
      The primary or secondary private IP address to associate with the Elastic IP address.

      If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

    • builder

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