Enum Class IpAddressType

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

@Generated(value="jsii-pacmak/1.110.0 (build 336b265)", date="2025-04-22T23:08:11.269Z") @Stability(Stable) public enum IpAddressType extends Enum<IpAddressType>
IP address types supported for VPC endpoint service.

Example:

 NetworkLoadBalancer networkLoadBalancer;
 VpcEndpointService.Builder.create(this, "EndpointService")
         .vpcEndpointServiceLoadBalancers(List.of(networkLoadBalancer))
         // Support both IPv4 and IPv6 connections to the endpoint service
         .supportedIpAddressTypes(List.of(IpAddressType.IPV4, IpAddressType.IPV6))
         .build();
 
  • Enum Constant Details

    • IPV4

      @Stability(Stable) public static final IpAddressType IPV4
      ipv4 address type.
    • IPV6

      @Stability(Stable) public static final IpAddressType IPV6
      ipv6 address type.
  • 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