@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.668Z") @Stability(value=Stable) public interface CfnLoadBalancerProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lightsail.*;
CfnLoadBalancerProps cfnLoadBalancerProps = CfnLoadBalancerProps.builder()
.instancePort(123)
.loadBalancerName("loadBalancerName")
// the properties below are optional
.attachedInstances(List.of("attachedInstances"))
.healthCheckPath("healthCheckPath")
.ipAddressType("ipAddressType")
.sessionStickinessEnabled(false)
.sessionStickinessLbCookieDurationSeconds("sessionStickinessLbCookieDurationSeconds")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.tlsPolicyName("tlsPolicyName")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLoadBalancerProps.Builder
A builder for
CfnLoadBalancerProps |
static class |
CfnLoadBalancerProps.Jsii$Proxy
An implementation for
CfnLoadBalancerProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnLoadBalancerProps.Builder |
builder() |
default List<String> |
getAttachedInstances()
The Lightsail instances to attach to the load balancer.
|
default String |
getHealthCheckPath()
The path on the attached instance where the health check will be performed.
|
Number |
getInstancePort()
The port that the load balancer uses to direct traffic to your Lightsail instances.
|
default String |
getIpAddressType()
The IP address type of the load balancer.
|
String |
getLoadBalancerName()
The name of the load balancer.
|
default Object |
getSessionStickinessEnabled()
A Boolean value indicating whether session stickiness is enabled.
|
default String |
getSessionStickinessLbCookieDurationSeconds()
The time period, in seconds, after which the load balancer session stickiness cookie should be considered stale.
|
default List<CfnTag> |
getTags()
An array of key-value pairs to apply to this resource.
|
default String |
getTlsPolicyName()
The name of the TLS security policy for the load balancer.
|
@Stability(value=Stable) @NotNull Number getInstancePort()
For HTTP traffic, specify port 80 . For HTTPS traffic, specify port 443 .
@Stability(value=Stable) @NotNull String getLoadBalancerName()
@Stability(value=Stable) @Nullable default List<String> getAttachedInstances()
@Stability(value=Stable) @Nullable default String getHealthCheckPath()
If no path is specified, the load balancer tries to make a request to the default (root) page ( /index.html ).
@Stability(value=Stable) @Nullable default String getIpAddressType()
The possible values are ipv4 for IPv4 only, and dualstack for both IPv4 and IPv6.
@Stability(value=Stable) @Nullable default Object getSessionStickinessEnabled()
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.
@Stability(value=Stable) @Nullable default String getSessionStickinessLbCookieDurationSeconds()
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.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
@Stability(value=Stable) @Nullable default String getTlsPolicyName()
@Stability(value=Stable) static CfnLoadBalancerProps.Builder builder()
CfnLoadBalancerProps.Builder of CfnLoadBalancerPropsCopyright © 2022. All rights reserved.