Interface BaseLoadBalancerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ApplicationLoadBalancerProps,NetworkLoadBalancerProps
- All Known Implementing Classes:
ApplicationLoadBalancerProps.Jsii$Proxy,BaseLoadBalancerProps.Jsii$Proxy,NetworkLoadBalancerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:10.267Z")
@Stability(Stable)
public interface BaseLoadBalancerProps
extends software.amazon.jsii.JsiiSerializable
Shared properties of both Application and Network Load Balancers.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
BaseLoadBalancerProps baseLoadBalancerProps = BaseLoadBalancerProps.builder()
.vpc(vpc)
// the properties below are optional
.crossZoneEnabled(false)
.deletionProtection(false)
.denyAllIgwTraffic(false)
.internetFacing(false)
.loadBalancerName("loadBalancerName")
.minimumCapacityUnit(123)
.vpcSubnets(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnets(List.of(subnet))
.subnetType(SubnetType.PRIVATE_ISOLATED)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBaseLoadBalancerPropsstatic final classAn implementation forBaseLoadBalancerProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanIndicates whether cross-zone load balancing is enabled.default BooleanIndicates whether deletion protection is enabled.default BooleanIndicates whether the load balancer blocks traffic through the Internet Gateway (IGW).default BooleanWhether the load balancer has an internet-routable address.default StringName of the load balancer.default NumberThe minimum capacity (LCU) for a load balancer.getVpc()The VPC network to place the load balancer in.default SubnetSelectionWhich subnets place the load balancer in.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
The VPC network to place the load balancer in. -
getCrossZoneEnabled
Indicates whether cross-zone load balancing is enabled.Default: - false for Network Load Balancers and true for Application Load Balancers. This can not be `false` for Application Load Balancers.
- See Also:
-
getDeletionProtection
Indicates whether deletion protection is enabled.Default: false
-
getDenyAllIgwTraffic
Indicates whether the load balancer blocks traffic through the Internet Gateway (IGW).Default: - false for internet-facing load balancers and true for internal load balancers
-
getInternetFacing
Whether the load balancer has an internet-routable address.Default: false
-
getLoadBalancerName
Name of the load balancer.Default: - Automatically generated name.
-
getMinimumCapacityUnit
The minimum capacity (LCU) for a load balancer.Default: undefined - ELB default is 0 LCU
- See Also:
-
getVpcSubnets
Which subnets place the load balancer in.Default: - the Vpc default strategy.
-
builder
- Returns:
- a
BaseLoadBalancerProps.BuilderofBaseLoadBalancerProps
-