SecurityPolicyRule constructor

const SecurityPolicyRule({
  1. required Input<String> action,
  2. Input<String?>? description,
  3. Input<SecurityPolicyRuleHeaderAction?>? headerAction,
  4. required Input<SecurityPolicyRuleMatch> match,
  5. Input<SecurityPolicyRulePreconfiguredWafConfig?>? preconfiguredWafConfig,
  6. Input<bool?>? preview,
  7. required Input<int> priority,
  8. Input<SecurityPolicyRuleRateLimitOptions?>? rateLimitOptions,
  9. 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.

Implementation

const SecurityPolicyRule({
  required this.action,
  this.description,
  this.headerAction,
  required this.match,
  this.preconfiguredWafConfig,
  this.preview,
  required this.priority,
  this.rateLimitOptions,
  this.redirectOptions,
});