Interface CfnLoadBalancerMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLoadBalancerMixinProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.lightsail.*;
CfnLoadBalancerMixinProps cfnLoadBalancerMixinProps = CfnLoadBalancerMixinProps.builder()
.attachedInstances(List.of("attachedInstances"))
.healthCheckPath("healthCheckPath")
.instancePort(123)
.ipAddressType("ipAddressType")
.loadBalancerName("loadBalancerName")
.sessionStickinessEnabled(false)
.sessionStickinessLbCookieDurationSeconds("sessionStickinessLbCookieDurationSeconds")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.tlsPolicyName("tlsPolicyName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLoadBalancerMixinPropsstatic final classAn implementation forCfnLoadBalancerMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The Lightsail instances to attach to the load balancer.default StringThe path on the attached instance where the health check will be performed.default NumberThe port that the load balancer uses to direct traffic to your Lightsail instances.default StringThe IP address type of the load balancer.default StringThe name of the load balancer.default ObjectA Boolean value indicating whether session stickiness is enabled.default StringThe time period, in seconds, after which the load balancer session stickiness cookie should be considered stale.getTags()An array of key-value pairs to apply to this resource.default StringThe name of the TLS security policy for the load balancer.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAttachedInstances
The Lightsail instances to attach to the load balancer.- See Also:
-
getHealthCheckPath
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).- See Also:
-
getInstancePort
The port that the load balancer uses to direct traffic to your Lightsail instances.For HTTP traffic, specify port
80. For HTTPS traffic, specify port443.- See Also:
-
getIpAddressType
The IP address type of the load balancer.The possible values are
ipv4for IPv4 only, anddualstackfor both IPv4 and IPv6.- See Also:
-
getLoadBalancerName
The name of the load balancer.- See Also:
-
getSessionStickinessEnabled
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.
Returns union: either
BooleanorIResolvable- See Also:
-
getSessionStickinessLbCookieDurationSeconds
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.
- See Also:
-
getTags
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.- See Also:
-
getTlsPolicyName
The name of the TLS security policy for the load balancer.- See Also:
-
builder
- Returns:
- a
CfnLoadBalancerMixinProps.BuilderofCfnLoadBalancerMixinProps
-