LoadBalancerSessionAffinityAttributeArgs

data class LoadBalancerSessionAffinityAttributeArgs(val drainDuration: Output<Int>? = null, val headers: Output<List<String>>? = null, val requireAllHeaders: Output<Boolean>? = null, val samesite: Output<String>? = null, val secure: Output<String>? = null, val zeroDowntimeFailover: Output<String>? = null) : ConvertibleToJava<LoadBalancerSessionAffinityAttributeArgs>

Constructors

Link copied to clipboard
constructor(drainDuration: Output<Int>? = null, headers: Output<List<String>>? = null, requireAllHeaders: Output<Boolean>? = null, samesite: Output<String>? = null, secure: Output<String>? = null, zeroDowntimeFailover: Output<String>? = null)

Properties

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

Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer. Defaults to 0.

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

Configures the HTTP header names to use when header session affinity is enabled.

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

Configures how headers are used when header session affinity is enabled. Set to true to require all headers to be present on requests in order for sessions to be created or false to require at least one header to be present. Defaults to false.

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

Configures the SameSite attribute on session affinity cookie. Value Auto will be translated to Lax or None depending if Always Use HTTPS is enabled. Note: when using value None, then you can not set secure="Never". Available values: Auto, Lax, None, Strict. Defaults to Auto.

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

Configures the Secure attribute on session affinity cookie. Value Always indicates the Secure attribute will be set in the Set-Cookie header, Never indicates the Secure attribute will not be set, and Auto will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: Auto, Always, Never. Defaults to Auto.

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

Configures the zero-downtime failover between origins within a pool when session affinity is enabled. Value none means no failover takes place for sessions pinned to the origin. Value temporary means traffic will be sent to another other healthy origin until the originally pinned origin is available; note that this can potentially result in heavy origin flapping. Value sticky means the session affinity cookie is updated and subsequent requests are sent to the new origin. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. Available values: none, temporary, sticky. Defaults to none.

Functions

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