@Stability(value=Stable) public static final class CfnLoadBalancerProps.Builder extends Object implements software.amazon.jsii.Builder<CfnLoadBalancerProps>
CfnLoadBalancerProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnLoadBalancerProps.Builder instancePort(Number instancePort)
CfnLoadBalancerProps.getInstancePort()instancePort - The port that the load balancer uses to direct traffic to your Lightsail instances. This parameter is required.
For HTTP traffic, specify port 80 . For HTTPS traffic, specify port 443 .this@Stability(value=Stable) public CfnLoadBalancerProps.Builder loadBalancerName(String loadBalancerName)
CfnLoadBalancerProps.getLoadBalancerName()loadBalancerName - The name of the load balancer. This parameter is required.this@Stability(value=Stable) public CfnLoadBalancerProps.Builder attachedInstances(List<String> attachedInstances)
CfnLoadBalancerProps.getAttachedInstances()attachedInstances - The Lightsail instances to attach to the load balancer.this@Stability(value=Stable) public CfnLoadBalancerProps.Builder healthCheckPath(String healthCheckPath)
CfnLoadBalancerProps.getHealthCheckPath()healthCheckPath - The path on the attached instance where the health check will be performed.
If no path is specified, the load balancer tries to make a request to the default (root) page ( /index.html ).this@Stability(value=Stable) public CfnLoadBalancerProps.Builder ipAddressType(String ipAddressType)
CfnLoadBalancerProps.getIpAddressType()ipAddressType - The IP address type of the load balancer.
The possible values are ipv4 for IPv4 only, and dualstack for both IPv4 and IPv6.this@Stability(value=Stable) public CfnLoadBalancerProps.Builder sessionStickinessEnabled(Boolean sessionStickinessEnabled)
CfnLoadBalancerProps.getSessionStickinessEnabled()sessionStickinessEnabled - A Boolean value indicating whether session stickiness is enabled.
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.this@Stability(value=Stable) public CfnLoadBalancerProps.Builder sessionStickinessEnabled(IResolvable sessionStickinessEnabled)
CfnLoadBalancerProps.getSessionStickinessEnabled()sessionStickinessEnabled - A Boolean value indicating whether session stickiness is enabled.
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.this@Stability(value=Stable) public CfnLoadBalancerProps.Builder sessionStickinessLbCookieDurationSeconds(String sessionStickinessLbCookieDurationSeconds)
CfnLoadBalancerProps.getSessionStickinessLbCookieDurationSeconds()sessionStickinessLbCookieDurationSeconds - The time period, in seconds, after which the load balancer session stickiness cookie should be considered stale.
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.this@Stability(value=Stable) public CfnLoadBalancerProps.Builder tags(List<? extends CfnTag> tags)
CfnLoadBalancerProps.getTags()tags - An array of key-value pairs to apply to this resource.
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
this@Stability(value=Stable) public CfnLoadBalancerProps.Builder tlsPolicyName(String tlsPolicyName)
CfnLoadBalancerProps.getTlsPolicyName()tlsPolicyName - The name of the TLS security policy for the load balancer.this@Stability(value=Stable) public CfnLoadBalancerProps build()
build in interface software.amazon.jsii.Builder<CfnLoadBalancerProps>CfnLoadBalancerPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.