LoadBalancerRule

data class LoadBalancerRule(val condition: String? = null, val disabled: Boolean? = null, val fixedResponse: LoadBalancerRuleFixedResponse? = null, val name: String, val overrides: List<LoadBalancerRuleOverride>? = null, val priority: Int? = null, val terminates: Boolean? = null)

Constructors

Link copied to clipboard
constructor(condition: String? = null, disabled: Boolean? = null, fixedResponse: LoadBalancerRuleFixedResponse? = null, name: String, overrides: List<LoadBalancerRuleOverride>? = null, priority: Int? = null, terminates: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val condition: String? = null

The statement to evaluate to determine if this rule's effects should be applied. An empty condition is always true. See load balancing rules.

Link copied to clipboard
val disabled: Boolean? = null

A disabled rule will not be executed.

Link copied to clipboard

Settings for a HTTP response to return directly to the eyeball if the condition is true. Note: overrides or fixed_response must be set.

Link copied to clipboard

Human readable name for this rule.

Link copied to clipboard

The load balancer settings to alter if this rule's condition is true. Note: overrides or fixed_response must be set.

Link copied to clipboard
val priority: Int? = null

Priority used when determining the order of rule execution. Lower values are executed first. If not provided, the list order will be used.

Link copied to clipboard
val terminates: Boolean? = null

Terminates indicates that if this rule is true no further rules should be executed. Note: setting a fixed_response forces this field to true.