SecurityPolicyRuleArgs

data class SecurityPolicyRuleArgs(val action: Output<String>, val description: Output<String>? = null, val headerAction: Output<SecurityPolicyRuleHeaderActionArgs>? = null, val match: Output<SecurityPolicyRuleMatchArgs>, val preconfiguredWafConfig: Output<SecurityPolicyRulePreconfiguredWafConfigArgs>? = null, val preview: Output<Boolean>? = null, val priority: Output<Int>, val rateLimitOptions: Output<SecurityPolicyRuleRateLimitOptionsArgs>? = null, val redirectOptions: Output<SecurityPolicyRuleRedirectOptionsArgs>? = null) : ConvertibleToJava<SecurityPolicyRuleArgs>

Constructors

Link copied to clipboard
constructor(action: Output<String>, description: Output<String>? = null, headerAction: Output<SecurityPolicyRuleHeaderActionArgs>? = null, match: Output<SecurityPolicyRuleMatchArgs>, preconfiguredWafConfig: Output<SecurityPolicyRulePreconfiguredWafConfigArgs>? = null, preview: Output<Boolean>? = null, priority: Output<Int>, rateLimitOptions: Output<SecurityPolicyRuleRateLimitOptionsArgs>? = null, redirectOptions: Output<SecurityPolicyRuleRedirectOptionsArgs>? = null)

Properties

Link copied to clipboard
val action: Output<String>

Action to take when match matches the request. Valid values:

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

An optional description of this rule. Max size is 64.

Link copied to clipboard

Additional actions that are performed on headers. Structure is documented below.

Link copied to clipboard

A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced. Structure is documented below.

Link copied to clipboard

Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect. Structure is documented below.

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

When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.

Link copied to clipboard
val priority: Output<Int>

An unique positive integer indicating the priority of evaluation for a rule. Rules are evaluated from highest priority (lowest numerically) to lowest priority (highest numerically) in order.

Link copied to clipboard

Must be specified if the action is rate_based_ban or throttle. Cannot be specified for other actions. Structure is documented below.

Link copied to clipboard

Can be specified if the action is redirect. Cannot be specified for other actions. Structure is documented below.

Functions

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