Enum Class IpAddressType

java.lang.Object
java.lang.Enum<IpAddressType>
software.amazon.awscdk.services.elasticloadbalancingv2.IpAddressType
All Implemented Interfaces:
Serializable, Comparable<IpAddressType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:08.209Z") @Stability(Stable) public enum IpAddressType extends Enum<IpAddressType>
What kind of addresses to allocate to the load balancer.

Example:

 Vpc vpc;
 ApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, "LB")
         .vpc(vpc)
         .ipAddressType(IpAddressType.DUAL_STACK)
         .build();
 
  • Enum Constant Details

    • IPV4

      @Stability(Stable) public static final IpAddressType IPV4
      Allocate IPv4 addresses.
    • DUAL_STACK

      @Stability(Stable) public static final IpAddressType DUAL_STACK
      Allocate both IPv4 and IPv6 addresses.
    • DUAL_STACK_WITHOUT_PUBLIC_IPV4

      @Stability(Stable) public static final IpAddressType DUAL_STACK_WITHOUT_PUBLIC_IPV4
      IPv6 only public addresses, with private IPv4 and IPv6 addresses.
  • Method Details

    • values

      public static IpAddressType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IpAddressType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null