TargetGroupIpAddressType

class aws_cdk.aws_elasticloadbalancingv2.TargetGroupIpAddressType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

The IP address type of targets registered with a target group.

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc


ipv4_application_target_group = elbv2.ApplicationTargetGroup(self, "IPv4ApplicationTargetGroup",
    vpc=vpc,
    port=80,
    target_type=elbv2.TargetType.INSTANCE,
    ip_address_type=elbv2.TargetGroupIpAddressType.IPV4
)

ipv6_application_target_group = elbv2.ApplicationTargetGroup(self, "Ipv6ApplicationTargetGroup",
    vpc=vpc,
    port=80,
    target_type=elbv2.TargetType.INSTANCE,
    ip_address_type=elbv2.TargetGroupIpAddressType.IPV6
)

ipv4_network_target_group = elbv2.NetworkTargetGroup(self, "IPv4NetworkTargetGroup",
    vpc=vpc,
    port=80,
    target_type=elbv2.TargetType.INSTANCE,
    ip_address_type=elbv2.TargetGroupIpAddressType.IPV4
)

ipv6_network_target_group = elbv2.NetworkTargetGroup(self, "Ipv6NetworkTargetGroup",
    vpc=vpc,
    port=80,
    target_type=elbv2.TargetType.INSTANCE,
    ip_address_type=elbv2.TargetGroupIpAddressType.IPV6
)

Attributes

IPV4

IPv4 addresses.

IPV6

IPv6 addresses.