Interface ApplicationLoadBalancerProps
- All Superinterfaces:
BaseLoadBalancerProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApplicationLoadBalancerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:26.440Z")
@Stability(Stable)
public interface ApplicationLoadBalancerProps
extends software.amazon.jsii.JsiiSerializable, BaseLoadBalancerProps
Properties for defining an Application Load Balancer.
Example:
Cluster cluster;
TaskDefinition taskDefinition;
Vpc vpc;
FargateService service = FargateService.Builder.create(this, "Service").cluster(cluster).taskDefinition(taskDefinition).build();
ApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, "LB").vpc(vpc).internetFacing(true).build();
ApplicationListener listener = lb.addListener("Listener", BaseApplicationListenerProps.builder().port(80).build());
service.registerLoadBalancerTargets(EcsTarget.builder()
.containerName("web")
.containerPort(80)
.newTargetGroupId("ECS")
.listener(ListenerConfig.applicationListener(listener, AddApplicationTargetsProps.builder()
.protocol(ApplicationProtocol.HTTPS)
.build()))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApplicationLoadBalancerPropsstatic final classAn implementation forApplicationLoadBalancerProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default DesyncMitigationModeDetermines how the load balancer handles requests that might pose a security risk to your application.default BooleanIndicates whether HTTP headers with invalid header fields are removed by the load balancer (true) or routed to targets (false).default BooleanIndicates whether HTTP/2 is enabled.default DurationThe load balancer idle timeout, in seconds.default IpAddressTypeThe type of IP addresses to use.default ISecurityGroupSecurity group to associate with this load balancer.Methods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.BaseLoadBalancerProps
getDeletionProtection, getInternetFacing, getLoadBalancerName, getVpc, getVpcSubnetsMethods 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.Default: IpAddressType.IPV4
-
getSecurityGroup
Security group to associate with this load balancer.Default: A security group is created
-
builder
-