IpAddressType
- class aws_cdk.aws_elasticloadbalancingv2.IpAddressType(value)
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, internet_facing=True, # Whether HTTP/2 is enabled http2_enabled=False, # The idle timeout value, in seconds idle_timeout=Duration.seconds(1000), # Whether HTTP headers with header fields thatare not valid # are removed by the load balancer (true), or routed to targets drop_invalid_header_fields=True, # How the load balancer handles requests that might # pose a security risk to your application desync_mitigation_mode=elbv2.DesyncMitigationMode.DEFENSIVE, # The type of IP addresses to use. ip_address_type=elbv2.IpAddressType.IPV4 )
Attributes
- DUAL_STACK
Allocate both IPv4 and IPv6 addresses.
- IPV4
Allocate IPv4 addresses.