IpAddressType

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

Bases: Enum

What kind of addresses to allocate to the load balancer.

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc


lb = elbv2.ApplicationLoadBalancer(self, "LB",
    vpc=vpc,
    ip_address_type=elbv2.IpAddressType.DUAL_STACK
)

Attributes

DUAL_STACK

Allocate both IPv4 and IPv6 addresses.

DUAL_STACK_WITHOUT_PUBLIC_IPV4

IPv6 only public addresses, with private IPv4 and IPv6 addresses.

IPV4

Allocate IPv4 addresses.