Enum Class TargetGroupIpAddressType
java.lang.Object
java.lang.Enum<TargetGroupIpAddressType>
software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupIpAddressType
- All Implemented Interfaces:
Serializable,Comparable<TargetGroupIpAddressType>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:13.008Z")
@Stability(Stable)
public enum TargetGroupIpAddressType
extends Enum<TargetGroupIpAddressType>
The IP address type of targets registered with a target group.
Example:
Vpc vpc;
ApplicationTargetGroup ipv4ApplicationTargetGroup = ApplicationTargetGroup.Builder.create(this, "IPv4ApplicationTargetGroup")
.vpc(vpc)
.port(80)
.targetType(TargetType.INSTANCE)
.ipAddressType(TargetGroupIpAddressType.IPV4)
.build();
ApplicationTargetGroup ipv6ApplicationTargetGroup = ApplicationTargetGroup.Builder.create(this, "Ipv6ApplicationTargetGroup")
.vpc(vpc)
.port(80)
.targetType(TargetType.INSTANCE)
.ipAddressType(TargetGroupIpAddressType.IPV6)
.build();
NetworkTargetGroup ipv4NetworkTargetGroup = NetworkTargetGroup.Builder.create(this, "IPv4NetworkTargetGroup")
.vpc(vpc)
.port(80)
.targetType(TargetType.INSTANCE)
.ipAddressType(TargetGroupIpAddressType.IPV4)
.build();
NetworkTargetGroup ipv6NetworkTargetGroup = NetworkTargetGroup.Builder.create(this, "Ipv6NetworkTargetGroup")
.vpc(vpc)
.port(80)
.targetType(TargetType.INSTANCE)
.ipAddressType(TargetGroupIpAddressType.IPV6)
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetGroupIpAddressTypeReturns the enum constant of this class with the specified name.static TargetGroupIpAddressType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IPV4
IPv4 addresses. -
IPV6
IPv6 addresses.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-