@Stability(value=Stable) public static final class CfnLoadBalancer.Builder extends Object implements software.amazon.jsii.Builder<CfnLoadBalancer>
CfnLoadBalancer.| Modifier and Type | Method and Description |
|---|---|
CfnLoadBalancer.Builder |
attachedInstances(List<String> attachedInstances)
The Lightsail instances to attach to the load balancer.
|
CfnLoadBalancer |
build() |
static CfnLoadBalancer.Builder |
create(software.constructs.Construct scope,
String id) |
CfnLoadBalancer.Builder |
healthCheckPath(String healthCheckPath)
The path on the attached instance where the health check will be performed.
|
CfnLoadBalancer.Builder |
instancePort(Number instancePort)
The port that the load balancer uses to direct traffic to your Lightsail instances.
|
CfnLoadBalancer.Builder |
ipAddressType(String ipAddressType)
The IP address type of the load balancer.
|
CfnLoadBalancer.Builder |
loadBalancerName(String loadBalancerName)
The name of the load balancer.
|
CfnLoadBalancer.Builder |
sessionStickinessEnabled(Boolean sessionStickinessEnabled)
A Boolean value indicating whether session stickiness is enabled.
|
CfnLoadBalancer.Builder |
sessionStickinessEnabled(IResolvable sessionStickinessEnabled)
A Boolean value indicating whether session stickiness is enabled.
|
CfnLoadBalancer.Builder |
sessionStickinessLbCookieDurationSeconds(String sessionStickinessLbCookieDurationSeconds)
The time period, in seconds, after which the load balancer session stickiness cookie should be considered stale.
|
CfnLoadBalancer.Builder |
tags(List<? extends CfnTag> tags)
An array of key-value pairs to apply to this resource.
|
CfnLoadBalancer.Builder |
tlsPolicyName(String tlsPolicyName)
The name of the TLS security policy for the load balancer.
|
@Stability(value=Stable) public static CfnLoadBalancer.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnLoadBalancer.Builder.@Stability(value=Stable) public CfnLoadBalancer.Builder instancePort(Number instancePort)
For HTTP traffic, specify port 80 . For HTTPS traffic, specify port 443 .
instancePort - The port that the load balancer uses to direct traffic to your Lightsail instances. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder loadBalancerName(String loadBalancerName)
loadBalancerName - The name of the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder attachedInstances(List<String> attachedInstances)
attachedInstances - The Lightsail instances to attach to the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder healthCheckPath(String healthCheckPath)
If no path is specified, the load balancer tries to make a request to the default (root) page ( /index.html ).
healthCheckPath - The path on the attached instance where the health check will be performed. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder ipAddressType(String ipAddressType)
The possible values are ipv4 for IPv4 only, and dualstack for both IPv4 and IPv6.
ipAddressType - The IP address type of the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder sessionStickinessEnabled(Boolean sessionStickinessEnabled)
Enable session stickiness (also known as session affinity ) to bind a user's session to a specific instance. This ensures that all requests from the user during the session are sent to the same instance.
sessionStickinessEnabled - A Boolean value indicating whether session stickiness is enabled. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder sessionStickinessEnabled(IResolvable sessionStickinessEnabled)
Enable session stickiness (also known as session affinity ) to bind a user's session to a specific instance. This ensures that all requests from the user during the session are sent to the same instance.
sessionStickinessEnabled - A Boolean value indicating whether session stickiness is enabled. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder sessionStickinessLbCookieDurationSeconds(String sessionStickinessLbCookieDurationSeconds)
If you do not specify this parameter, the default value is 0, which indicates that the sticky session should last for the duration of the browser session.
sessionStickinessLbCookieDurationSeconds - The time period, in seconds, after which the load balancer session stickiness cookie should be considered stale. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder tags(List<? extends CfnTag> tags)
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
tags - An array of key-value pairs to apply to this resource. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer.Builder tlsPolicyName(String tlsPolicyName)
tlsPolicyName - The name of the TLS security policy for the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancer build()
build in interface software.amazon.jsii.Builder<CfnLoadBalancer>Copyright © 2022. All rights reserved.