TargetGroupStickinessArgs

data class TargetGroupStickinessArgs(val cookieDuration: Output<Int>? = null, val cookieName: Output<String>? = null, val enabled: Output<Boolean>? = null, val type: Output<String>) : ConvertibleToJava<TargetGroupStickinessArgs>

Constructors

Link copied to clipboard
constructor(cookieDuration: Output<Int>? = null, cookieName: Output<String>? = null, enabled: Output<Boolean>? = null, type: Output<String>)

Properties

Link copied to clipboard
val cookieDuration: Output<Int>? = null

Only used when the type is lb_cookie. The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).

Link copied to clipboard
val cookieName: Output<String>? = null

Name of the application based cookie. AWSALB, AWSALBAPP, and AWSALBTG prefixes are reserved and cannot be used. Only needed when type is app_cookie.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Boolean to enable / disable stickiness. Default is true.

Link copied to clipboard
val type: Output<String>

The type of sticky sessions. The only current possible values are lb_cookie, app_cookie for ALBs, source_ip for NLBs, and source_ip_dest_ip, source_ip_dest_ip_proto for GWLBs.

Functions

Link copied to clipboard
open override fun toJava(): TargetGroupStickinessArgs