Interface NetworkLoadBalancerProps
- All Superinterfaces:
BaseLoadBalancerProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkLoadBalancerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:26.543Z")
@Stability(Stable)
public interface NetworkLoadBalancerProps
extends software.amazon.jsii.JsiiSerializable, BaseLoadBalancerProps
Properties for a network load balancer.
Example:
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
Vpc vpc = new Vpc(this, "VPC");
NetworkLoadBalancer nlb = NetworkLoadBalancer.Builder.create(this, "NLB")
.vpc(vpc)
.build();
VpcLink link = VpcLink.Builder.create(this, "link")
.targets(List.of(nlb))
.build();
Integration integration = Integration.Builder.create()
.type(IntegrationType.HTTP_PROXY)
.integrationHttpMethod("ANY")
.options(IntegrationOptions.builder()
.connectionType(ConnectionType.VPC_LINK)
.vpcLink(link)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forNetworkLoadBalancerPropsstatic final classAn implementation forNetworkLoadBalancerProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanIndicates whether cross-zone load balancing is enabled.default IpAddressTypeThe type of IP addresses to use.default List<ISecurityGroup>Security groups 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
-
getCrossZoneEnabled
Indicates whether cross-zone load balancing is enabled.Default: false
-
getIpAddressType
The type of IP addresses to use.If you want to add a UDP or TCP_UDP listener to the load balancer, you must choose IPv4.
Default: IpAddressType.IPV4
-
getSecurityGroups
Security groups to associate with this load balancer.Default: - No security groups associated with the load balancer.
-
builder
- Returns:
- a
NetworkLoadBalancerProps.BuilderofNetworkLoadBalancerProps
-