Interface NetworkLoadBalancerProps
- All Superinterfaces:
BaseLoadBalancerProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkLoadBalancerProps.Jsii$Proxy
Example:
Vpc vpc;
NetworkLoadBalancer lb = NetworkLoadBalancer.Builder.create(this, "LB")
.vpc(vpc)
.ipAddressType(IpAddressType.DUAL_STACK)
.enablePrefixForIpv6SourceNat(true)
.build();
NetworkListener listener = lb.addListener("Listener", BaseNetworkListenerProps.builder()
.port(1229)
.protocol(Protocol.UDP)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forNetworkLoadBalancerPropsstatic final classAn implementation forNetworkLoadBalancerProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ClientRoutingPolicyThe AZ affinity routing policy.default BooleanCreate a Network Load Balancer without security groups.default BooleanIndicates whether to use an IPv6 prefix from each subnet for source NAT.default BooleanIndicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through AWS PrivateLink.default IpAddressTypeThe type of IP addresses to use.default List<ISecurityGroup> Security groups to associate with this load balancer.default List<SubnetMapping> Subnet information for the load balancer.default BooleanIndicates whether zonal shift is enabled.Methods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.BaseLoadBalancerProps
getCrossZoneEnabled, getDeletionProtection, getDenyAllIgwTraffic, getInternetFacing, getLoadBalancerName, getMinimumCapacityUnit, getVpc, getVpcSubnetsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClientRoutingPolicy
The AZ affinity routing policy.Default: - AZ affinity is disabled.
- See Also:
-
getDisableSecurityGroups
Create a Network Load Balancer without security groups.When true, creates an NLB that cannot have security groups attached. This is useful when you need to create a traditional NLB without security group associations.
This property only takes effect when the feature flag
@aws-cdk/aws-elasticloadbalancingv2:networkLoadBalancerWithSecurityGroupByDefaultis enabled.Default: false
-
getEnablePrefixForIpv6SourceNat
Indicates whether to use an IPv6 prefix from each subnet for source NAT.The IP address type must be IpAddressType.DUALSTACK.
Default: undefined - NLB default behavior is false
-
getEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic
@Stability(Stable) @Nullable default Boolean getEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic()Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through AWS PrivateLink.Default: true
-
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.
-
getSubnetMappings
Subnet information for the load balancer.Default: undefined - The VPC default strategy for subnets is used
-
getZonalShift
Indicates whether zonal shift is enabled.Default: false
- See Also:
-
builder
- Returns:
- a
NetworkLoadBalancerProps.BuilderofNetworkLoadBalancerProps
-