enum IpAddressType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.IpAddressType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#IpAddressType |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.IpAddressType |
Python | aws_cdk.aws_elasticloadbalancingv2.IpAddressType |
TypeScript (source) | aws-cdk-lib » aws_elasticloadbalancingv2 » IpAddressType |
What kind of addresses to allocate to the load balancer.
Example
declare const vpc: ec2.Vpc;
const lb = new elbv2.ApplicationLoadBalancer(this, 'LB', {
vpc,
internetFacing: true,
// Whether HTTP/2 is enabled
http2Enabled: false,
// The idle timeout value, in seconds
idleTimeout: Duration.seconds(1000),
// Whether HTTP headers with header fields thatare not valid
// are removed by the load balancer (true), or routed to targets
dropInvalidHeaderFields: true,
// How the load balancer handles requests that might
// pose a security risk to your application
desyncMitigationMode: elbv2.DesyncMitigationMode.DEFENSIVE,
// The type of IP addresses to use.
ipAddressType: elbv2.IpAddressType.IPV4,
});
Members
Name | Description |
---|---|
IPV4 | Allocate IPv4 addresses. |
DUAL_STACK | Allocate both IPv4 and IPv6 addresses. |
IPV4
Allocate IPv4 addresses.
DUAL_STACK
Allocate both IPv4 and IPv6 addresses.