Interface NetworkLoadBalancerProps
- All Superinterfaces:
BaseLoadBalancerProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkLoadBalancerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.384Z")
@Stability(Stable)
public interface NetworkLoadBalancerProps
extends software.amazon.jsii.JsiiSerializable, BaseLoadBalancerProps
Properties for a network load balancer.
Example:
import software.amazon.awscdk.services.apigatewayv2.integrations.HttpNlbIntegration; Vpc vpc = new Vpc(this, "VPC"); NetworkLoadBalancer lb = NetworkLoadBalancer.Builder.create(this, "lb").vpc(vpc).build(); NetworkListener listener = lb.addListener("listener", BaseNetworkListenerProps.builder().port(80).build()); listener.addTargets("target", AddNetworkTargetsProps.builder() .port(80) .build()); HttpApi httpEndpoint = HttpApi.Builder.create(this, "HttpProxyPrivateApi") .defaultIntegration(new HttpNlbIntegration("DefaultIntegration", listener)) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forNetworkLoadBalancerProps
static final class
An implementation forNetworkLoadBalancerProps
-
Method Summary
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
-
getCrossZoneEnabled
Indicates whether cross-zone load balancing is enabled.Default: false
-
builder
- Returns:
- a
NetworkLoadBalancerProps.Builder
ofNetworkLoadBalancerProps
-