@Stability(value=Experimental) public static final class LoadBalancer.Builder extends Object implements software.amazon.jsii.Builder<LoadBalancer>
LoadBalancer.| Modifier and Type | Method and Description |
|---|---|
LoadBalancer.Builder |
accessLoggingPolicy(CfnLoadBalancer.AccessLoggingPolicyProperty accessLoggingPolicy)
(experimental) 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,
String id) |
LoadBalancer.Builder |
crossZone(Boolean crossZone)
(experimental) Whether cross zone load balancing is enabled.
|
LoadBalancer.Builder |
healthCheck(HealthCheck healthCheck)
(experimental) Health check settings for the load balancing targets.
|
LoadBalancer.Builder |
internetFacing(Boolean internetFacing)
(experimental) Whether this is an internet-facing Load Balancer.
|
LoadBalancer.Builder |
listeners(List<? extends LoadBalancerListener> listeners)
(experimental) What listeners to set up for the load balancer.
|
LoadBalancer.Builder |
subnetSelection(SubnetSelection subnetSelection)
(experimental) Which subnets to deploy the load balancer.
|
LoadBalancer.Builder |
targets(List<? extends ILoadBalancerTarget> targets)
(experimental) What targets to load balance to.
|
LoadBalancer.Builder |
vpc(IVpc vpc)
(experimental) VPC network of the fleet instances.
|
@Stability(value=Experimental) public static LoadBalancer.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.LoadBalancer.Builder.@Stability(value=Experimental) public LoadBalancer.Builder vpc(IVpc vpc)
vpc - VPC network of the fleet instances. This parameter is required.this@Stability(value=Experimental) 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@Stability(value=Experimental) public LoadBalancer.Builder crossZone(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@Stability(value=Experimental) 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@Stability(value=Experimental) public LoadBalancer.Builder internetFacing(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@Stability(value=Experimental) public LoadBalancer.Builder listeners(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@Stability(value=Experimental) 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@Stability(value=Experimental) public LoadBalancer.Builder targets(List<? extends ILoadBalancerTarget> targets)
Can also be added by .addTarget()
Default: - None.
targets - What targets to load balance to. This parameter is required.this@Stability(value=Experimental) public LoadBalancer build()
build in interface software.amazon.jsii.Builder<LoadBalancer>Copyright © 2021. All rights reserved.