Package com.pulumi.cloudflare.outputs
Class LoadBalancerSessionAffinityAttribute
- java.lang.Object
-
- com.pulumi.cloudflare.outputs.LoadBalancerSessionAffinityAttribute
-
public final class LoadBalancerSessionAffinityAttribute extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoadBalancerSessionAffinityAttribute.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadBalancerSessionAffinityAttribute.Builder
builder()
static LoadBalancerSessionAffinityAttribute.Builder
builder(LoadBalancerSessionAffinityAttribute defaults)
java.util.Optional<java.lang.Integer>
drainDuration()
java.util.List<java.lang.String>
headers()
java.util.Optional<java.lang.Boolean>
requireAllHeaders()
java.util.Optional<java.lang.String>
samesite()
java.util.Optional<java.lang.String>
secure()
java.util.Optional<java.lang.String>
zeroDowntimeFailover()
-
-
-
Method Detail
-
drainDuration
public java.util.Optional<java.lang.Integer> drainDuration()
- Returns:
- Configures the drain duration in seconds. This field is only used when session affinity is enabled on the load balancer. Defaults to `0`.
-
headers
public java.util.List<java.lang.String> headers()
- Returns:
- Configures the HTTP header names to use when header session affinity is enabled.
-
requireAllHeaders
public java.util.Optional<java.lang.Boolean> requireAllHeaders()
- Returns:
- 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`.
-
samesite
public java.util.Optional<java.lang.String> samesite()
- Returns:
- 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`.
-
secure
public java.util.Optional<java.lang.String> secure()
- Returns:
- 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`.
-
zeroDowntimeFailover
public java.util.Optional<java.lang.String> zeroDowntimeFailover()
- Returns:
- 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`.
-
builder
public static LoadBalancerSessionAffinityAttribute.Builder builder()
-
builder
public static LoadBalancerSessionAffinityAttribute.Builder builder(LoadBalancerSessionAffinityAttribute defaults)
-
-