public static final class LoadBalancer.Builder
extends java.lang.Object
LoadBalancer
.Modifier and Type | Method and Description |
---|---|
LoadBalancer.Builder |
accessLoggingPolicy(CfnLoadBalancer.AccessLoggingPolicyProperty accessLoggingPolicy)
Enable Loadbalancer access logs Can be used to avoid manual work as aws console Required S3 bucket name , enabled flag Can add interval for pushing log Can set bucket prefix in order to provide folder name inside bucket.
|
LoadBalancer |
build() |
static LoadBalancer.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
LoadBalancer.Builder |
crossZone(java.lang.Boolean crossZone)
Whether cross zone load balancing is enabled.
|
LoadBalancer.Builder |
healthCheck(HealthCheck healthCheck)
Health check settings for the load balancing targets.
|
LoadBalancer.Builder |
internetFacing(java.lang.Boolean internetFacing)
Whether this is an internet-facing Load Balancer.
|
LoadBalancer.Builder |
listeners(java.util.List<? extends LoadBalancerListener> listeners)
What listeners to set up for the load balancer.
|
LoadBalancer.Builder |
subnetSelection(SubnetSelection subnetSelection)
Which subnets to deploy the load balancer.
|
LoadBalancer.Builder |
targets(java.util.List<? extends ILoadBalancerTarget> targets)
What targets to load balance to.
|
LoadBalancer.Builder |
vpc(IVpc vpc)
VPC network of the fleet instances.
|
public static LoadBalancer.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.LoadBalancer.Builder
.public LoadBalancer.Builder vpc(IVpc vpc)
vpc
- VPC network of the fleet instances. This parameter is required.this
public LoadBalancer.Builder accessLoggingPolicy(CfnLoadBalancer.AccessLoggingPolicyProperty accessLoggingPolicy)
Default: - disabled
accessLoggingPolicy
- Enable Loadbalancer access logs Can be used to avoid manual work as aws console Required S3 bucket name , enabled flag Can add interval for pushing log Can set bucket prefix in order to provide folder name inside bucket. This parameter is required.this
public LoadBalancer.Builder crossZone(java.lang.Boolean crossZone)
This controls whether the load balancer evenly distributes requests across each availability zone
Default: true
crossZone
- Whether cross zone load balancing is enabled. This parameter is required.this
public LoadBalancer.Builder healthCheck(HealthCheck healthCheck)
Not required but recommended.
Default: - None.
healthCheck
- Health check settings for the load balancing targets. This parameter is required.this
public LoadBalancer.Builder internetFacing(java.lang.Boolean internetFacing)
This controls whether the LB has a public IP address assigned. It does not open up the Load Balancer's security groups to public internet access.
Default: false
internetFacing
- Whether this is an internet-facing Load Balancer. This parameter is required.this
public LoadBalancer.Builder listeners(java.util.List<? extends LoadBalancerListener> listeners)
Can also be added by .addListener()
Default: -
listeners
- What listeners to set up for the load balancer. This parameter is required.this
public LoadBalancer.Builder subnetSelection(SubnetSelection subnetSelection)
Can be used to define a specific set of subnets to deploy the load balancer to. Useful multiple public or private subnets are covering the same availability zone.
Default: - Public subnets if internetFacing, Private subnets otherwise
subnetSelection
- Which subnets to deploy the load balancer. This parameter is required.this
public LoadBalancer.Builder targets(java.util.List<? extends ILoadBalancerTarget> targets)
Can also be added by .addTarget()
Default: - None.
targets
- What targets to load balance to. This parameter is required.this
public LoadBalancer build()