LoadBalancerSessionAffinityAttributesArgs

data class LoadBalancerSessionAffinityAttributesArgs(val drainDuration: Output<Double>? = 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<LoadBalancerSessionAffinityAttributesArgs>

Constructors

constructor(drainDuration: Output<Double>? = 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<Double>? = null

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

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

Configures the names of HTTP headers to base session affinity on when header session_affinity is enabled. At least one HTTP header name must be provided. To specify the exact cookies to be used, include an item in the following format: "cookie:<cookie-name-1>,<cookie-name-2>" (example) where everything after the colon is a comma-separated list of cookie names. Providing only "cookie" will result in all cookies being used. The default max number of HTTP header names that can be provided depends on your plan: 5 for Enterprise, 1 for all other plans.

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

When header session_affinity is enabled, this option can be used to specify how HTTP headers on load balancing requests will be used. The supported values are:

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", the secure attribute can not be set to "Never". Available values: "Auto", "Lax", "None", "Strict".

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".

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

Configures the zero-downtime failover between origins within a pool when session affinity is enabled. This feature is currently incompatible with Argo, Tiered Cache, and Bandwidth Alliance. The supported values are:

Functions

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