SecurityPolicyRule class

Constructors

SecurityPolicyRule({required Input<String> action, Input<String?>? description, Input<SecurityPolicyRuleHeaderAction?>? headerAction, required Input<SecurityPolicyRuleMatch> match, Input<SecurityPolicyRulePreconfiguredWafConfig?>? preconfiguredWafConfig, Input<bool?>? preview, required Input<int> priority, Input<SecurityPolicyRuleRateLimitOptions?>? rateLimitOptions, Input<SecurityPolicyRuleRedirectOptions?>? redirectOptions})
Creates a new SecurityPolicyRule. action Action to take when match matches the request. Valid values: description An optional description of this rule. Max size is 64. headerAction Additional actions that are performed on headers. Structure is documented below. match A match condition that incoming traffic is evaluated against. preconfiguredWafConfig 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. preview When set to true, the action specified above is not enforced. priority An unique positive integer indicating the priority of evaluation for a rule. rateLimitOptions Must be specified if the action is rateBasedBan or throttle. Cannot be specified for other actions. Structure is documented below. redirectOptions Can be specified if the action is redirect. Cannot be specified for other actions. Structure is documented below.
const
SecurityPolicyRule.fromMap(Map<String, dynamic> map)
factory

Properties

action → Input<String>
Action to take when match matches the request. Valid values:
final
description → Input<String?>?
An optional description of this rule. Max size is 64.
final
hashCode → int
The hash code for this object.
no setterinherited
headerAction → Input<SecurityPolicyRuleHeaderAction?>?
Additional actions that are performed on headers. Structure is documented below.
final
match → Input<SecurityPolicyRuleMatch>
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced. Structure is documented below.
final
preconfiguredWafConfig → Input<SecurityPolicyRulePreconfiguredWafConfig?>?
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.
final
preview → Input<bool?>?
When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such.
final
priority → Input<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.
final
rateLimitOptions → Input<SecurityPolicyRuleRateLimitOptions?>?
Must be specified if the action is rateBasedBan or throttle. Cannot be specified for other actions. Structure is documented below.
final
redirectOptions → Input<SecurityPolicyRuleRedirectOptions?>?
Can be specified if the action is redirect. Cannot be specified for other actions. Structure is documented below.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited