GetSecurityPolicyRule class

Constructors

GetSecurityPolicyRule({required Input<String> action, required Input<String> description, required Input<List<GetSecurityPolicyRuleHeaderAction>> headerActions, required Input<List<GetSecurityPolicyRuleMatch>> matches, required Input<List<GetSecurityPolicyRulePreconfiguredWafConfig>> preconfiguredWafConfigs, required Input<bool> preview, required Input<int> priority, required Input<List<GetSecurityPolicyRuleRateLimitOption>> rateLimitOptions, required Input<List<GetSecurityPolicyRuleRedirectOption>> redirectOptions})
Creates a new GetSecurityPolicyRule. action Action to take when match matches the request. description An optional description of this rule. Max size is 64. headerActions Additional actions that are performed on headers. matches A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced. preconfiguredWafConfigs 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. preview When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such. priority 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. rateLimitOptions Rate limit threshold for this security policy. Must be specified if the action is "rateBasedBan" or "throttle". Cannot be specified for any other actions. redirectOptions Parameters defining the redirect action. Cannot be specified for any other actions.
const
GetSecurityPolicyRule.fromMap(Map<String, dynamic> map)
factory

Properties

action → Input<String>
Action to take when match matches the request.
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
headerActions → Input<List<GetSecurityPolicyRuleHeaderAction>>
Additional actions that are performed on headers.
final
matches → Input<List<GetSecurityPolicyRuleMatch>>
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding action is enforced.
final
preconfiguredWafConfigs → Input<List<GetSecurityPolicyRulePreconfiguredWafConfig>>
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.
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<List<GetSecurityPolicyRuleRateLimitOption>>
Rate limit threshold for this security policy. Must be specified if the action is "rateBasedBan" or "throttle". Cannot be specified for any other actions.
final
redirectOptions → Input<List<GetSecurityPolicyRuleRedirectOption>>
Parameters defining the redirect action. Cannot be specified for any other actions.
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