@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.044Z") @Stability(value=Stable) public interface LoadBalancerProps extends software.amazon.jsii.JsiiSerializable
Example:
Cluster cluster; TaskDefinition taskDefinition; Vpc vpc; Ec2Service service = Ec2Service.Builder.create(this, "Service").cluster(cluster).taskDefinition(taskDefinition).build(); LoadBalancer lb = LoadBalancer.Builder.create(this, "LB").vpc(vpc).build(); lb.addListener(LoadBalancerListener.builder().externalPort(80).build()); lb.addTarget(service);
| Modifier and Type | Interface and Description |
|---|---|
static class |
LoadBalancerProps.Builder
A builder for
LoadBalancerProps |
static class |
LoadBalancerProps.Jsii$Proxy
An implementation for
LoadBalancerProps |
| Modifier and Type | Method and Description |
|---|---|
static LoadBalancerProps.Builder |
builder() |
default CfnLoadBalancer.AccessLoggingPolicyProperty |
getAccessLoggingPolicy()
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.
|
default Boolean |
getCrossZone()
Whether cross zone load balancing is enabled.
|
default HealthCheck |
getHealthCheck()
Health check settings for the load balancing targets.
|
default Boolean |
getInternetFacing()
Whether this is an internet-facing Load Balancer.
|
default List<LoadBalancerListener> |
getListeners()
What listeners to set up for the load balancer.
|
default SubnetSelection |
getSubnetSelection()
Which subnets to deploy the load balancer.
|
default List<ILoadBalancerTarget> |
getTargets()
What targets to load balance to.
|
IVpc |
getVpc()
VPC network of the fleet instances.
|
@Stability(value=Stable) @NotNull IVpc getVpc()
@Stability(value=Stable) @Nullable default CfnLoadBalancer.AccessLoggingPolicyProperty getAccessLoggingPolicy()
Default: - disabled
@Stability(value=Stable) @Nullable default Boolean getCrossZone()
This controls whether the load balancer evenly distributes requests across each availability zone
Default: true
@Stability(value=Stable) @Nullable default HealthCheck getHealthCheck()
Not required but recommended.
Default: - None.
@Stability(value=Stable) @Nullable default Boolean getInternetFacing()
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
@Stability(value=Stable) @Nullable default List<LoadBalancerListener> getListeners()
Can also be added by .addListener()
Default: -
@Stability(value=Stable) @Nullable default SubnetSelection getSubnetSelection()
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
@Stability(value=Stable) @Nullable default List<ILoadBalancerTarget> getTargets()
Can also be added by .addTarget()
Default: - None.
@Stability(value=Stable) static LoadBalancerProps.Builder builder()
LoadBalancerProps.Builder of LoadBalancerPropsCopyright © 2022. All rights reserved.