@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.065Z") @Stability(value=Stable) public interface BaseLoadBalancerProps extends software.amazon.jsii.JsiiSerializable
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
.deletionProtection(false)
.internetFacing(false)
.loadBalancerName("loadBalancerName")
.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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
BaseLoadBalancerProps.Builder
A builder for
BaseLoadBalancerProps |
static class |
BaseLoadBalancerProps.Jsii$Proxy
An implementation for
BaseLoadBalancerProps |
| Modifier and Type | Method and Description |
|---|---|
static BaseLoadBalancerProps.Builder |
builder() |
default Boolean |
getDeletionProtection()
Indicates whether deletion protection is enabled.
|
default Boolean |
getInternetFacing()
Whether the load balancer has an internet-routable address.
|
default String |
getLoadBalancerName()
Name of the load balancer.
|
IVpc |
getVpc()
The VPC network to place the load balancer in.
|
default SubnetSelection |
getVpcSubnets()
Which subnets place the load balancer in.
|
@Stability(value=Stable) @NotNull IVpc getVpc()
@Stability(value=Stable) @Nullable default Boolean getDeletionProtection()
Default: false
@Stability(value=Stable) @Nullable default Boolean getInternetFacing()
Default: false
@Stability(value=Stable) @Nullable default String getLoadBalancerName()
Default: - Automatically generated name.
@Stability(value=Stable) @Nullable default SubnetSelection getVpcSubnets()
Default: - the Vpc default strategy.
@Stability(value=Stable) static BaseLoadBalancerProps.Builder builder()
BaseLoadBalancerProps.Builder of BaseLoadBalancerPropsCopyright © 2022. All rights reserved.