FirewallPolicyCustomRule

data class FirewallPolicyCustomRule(val action: String, val enabled: Boolean? = null, val matchConditions: List<FirewallPolicyCustomRuleMatchCondition>? = null, val name: String, val priority: Int? = null, val rateLimitDurationInMinutes: Int? = null, val rateLimitThreshold: Int? = null, val type: String)

Constructors

Link copied to clipboard
constructor(action: String, enabled: Boolean? = null, matchConditions: List<FirewallPolicyCustomRuleMatchCondition>? = null, name: String, priority: Int? = null, rateLimitDurationInMinutes: Int? = null, rateLimitThreshold: Int? = null, type: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The action to perform when the rule is matched. Possible values are Allow, Block, Log, or Redirect.

Link copied to clipboard
val enabled: Boolean? = null

Is the rule is enabled or disabled? Defaults to true.

Link copied to clipboard

One or more match_condition block defined below. Can support up to 10 match_condition blocks.

Link copied to clipboard

Gets name of the resource that is unique within a policy. This name can be used to access the resource.

Link copied to clipboard
val priority: Int? = null

The priority of the rule. Rules with a lower value will be evaluated before rules with a higher value. Defaults to 1.

Link copied to clipboard

The rate limit duration in minutes. Defaults to 1.

Link copied to clipboard
val rateLimitThreshold: Int? = null

The rate limit threshold. Defaults to 10.

Link copied to clipboard

The type of rule. Possible values are MatchRule or RateLimitRule.