LoadBalancerRuleArgs

data class LoadBalancerRuleArgs(val condition: Output<String>? = null, val disabled: Output<Boolean>? = null, val fixedResponse: Output<LoadBalancerRuleFixedResponseArgs>? = null, val name: Output<String>? = null, val overrides: Output<LoadBalancerRuleOverridesArgs>? = null, val priority: Output<Int>? = null, val terminates: Output<Boolean>? = null) : ConvertibleToJava<LoadBalancerRuleArgs>

Constructors

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

Properties

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

The condition expressions to evaluate. If the condition evaluates to true, the overrides or fixed_response in this rule will be applied. An empty condition is always true. For more details on condition expressions, please see https://developers.cloudflare.com/load-balancing/understand-basics/load-balancing-rules/expressions.

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

Disable this specific rule. It will no longer be evaluated by this load balancer.

Link copied to clipboard

A collection of fields used to directly respond to the eyeball instead of routing to a pool. If a fixed*response is supplied the rule will be marked as terminates.

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

Name of this rule. Only used for human readability.

Link copied to clipboard

A collection of overrides to apply to the load balancer when this rule's condition is true. All fields are optional.

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

The order in which rules should be executed in relation to each other. Lower values are executed first. Values do not need to be sequential. If no value is provided for any rule the array order of the rules field will be used to assign a priority.

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

If this rule's condition is true, this causes rule evaluation to stop after processing this rule.

Functions

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