GetSecurityPolicyRule constructor

const GetSecurityPolicyRule({
  1. required Input<String> action,
  2. required Input<String> description,
  3. required Input<List<GetSecurityPolicyRuleHeaderAction>> headerActions,
  4. required Input<List<GetSecurityPolicyRuleMatch>> matches,
  5. required Input<List<GetSecurityPolicyRulePreconfiguredWafConfig>> preconfiguredWafConfigs,
  6. required Input<bool> preview,
  7. required Input<int> priority,
  8. required Input<List<GetSecurityPolicyRuleRateLimitOption>> rateLimitOptions,
  9. 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.

Implementation

const GetSecurityPolicyRule({
  required this.action,
  required this.description,
  required this.headerActions,
  required this.matches,
  required this.preconfiguredWafConfigs,
  required this.preview,
  required this.priority,
  required this.rateLimitOptions,
  required this.redirectOptions,
});