Interface ApplicationLoadBalancerProps
- All Superinterfaces:
BaseLoadBalancerProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApplicationLoadBalancerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.92.0 (build db7f27d)",
date="2023-12-01T19:06:32.039Z")
@Stability(Stable)
public interface ApplicationLoadBalancerProps
extends software.amazon.jsii.JsiiSerializable, BaseLoadBalancerProps
Properties for defining an Application Load Balancer.
Example:
import software.amazon.awscdk.services.apigatewayv2.integrations.alpha.HttpAlbIntegration; Vpc vpc = new Vpc(this, "VPC"); ApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, "lb").vpc(vpc).build(); ApplicationListener listener = lb.addListener("listener", BaseApplicationListenerProps.builder().port(80).build()); listener.addTargets("target", AddApplicationTargetsProps.builder() .port(80) .build()); HttpApi httpEndpoint = HttpApi.Builder.create(this, "HttpProxyPrivateApi") .defaultIntegration(new HttpAlbIntegration("DefaultIntegration", listener)) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forApplicationLoadBalancerProps
static final class
An implementation forApplicationLoadBalancerProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default DesyncMitigationMode
Determines how the load balancer handles requests that might pose a security risk to your application.default Boolean
Indicates whether HTTP headers with invalid header fields are removed by the load balancer (true) or routed to targets (false).default Boolean
Indicates whether HTTP/2 is enabled.default Duration
The load balancer idle timeout, in seconds.default IpAddressType
The type of IP addresses to use.default ISecurityGroup
Security group to associate with this load balancer.Methods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.BaseLoadBalancerProps
getDeletionProtection, getInternetFacing, getLoadBalancerName, getVpc, getVpcSubnets
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDesyncMitigationMode
Determines how the load balancer handles requests that might pose a security risk to your application.Default: DesyncMitigationMode.DEFENSIVE
-
getDropInvalidHeaderFields
Indicates whether HTTP headers with invalid header fields are removed by the load balancer (true) or routed to targets (false).Default: false
-
getHttp2Enabled
Indicates whether HTTP/2 is enabled.Default: true
-
getIdleTimeout
The load balancer idle timeout, in seconds.Default: 60
-
getIpAddressType
The type of IP addresses to use.Only applies to application load balancers.
Default: IpAddressType.Ipv4
-
getSecurityGroup
Security group to associate with this load balancer.Default: A security group is created
-
builder
-