SecurityPolicyRuleRateLimitOptions constructor

const SecurityPolicyRuleRateLimitOptions({
  1. Input<int?>? banDurationSec,
  2. Input<SecurityPolicyRuleRateLimitOptionsBanThreshold?>? banThreshold,
  3. Input<String?>? conformAction,
  4. Input<String?>? enforceOnKey,
  5. Input<List<SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig>?>? enforceOnKeyConfigs,
  6. Input<String?>? enforceOnKeyName,
  7. Input<String?>? exceedAction,
  8. Input<SecurityPolicyRuleRateLimitOptionsExceedRedirectOptions?>? exceedRedirectOptions,
  9. Input<SecurityPolicyRuleRateLimitOptionsRateLimitThreshold?>? rateLimitThreshold,
})

Creates a new SecurityPolicyRuleRateLimitOptions. banDurationSec Can only be specified if the action for the rule is "rateBasedBan". banThreshold Can only be specified if the action for the rule is "rateBasedBan". conformAction Action to take for requests that are under the configured rate limit threshold. enforceOnKey Determines the key to enforce the rateLimitThreshold on. Possible values are: enforceOnKeyConfigs If specified, any combination of values of enforceOnKeyType/enforceOnKeyName is treated as the key on which ratelimit threshold/action is enforced. enforceOnKeyName Rate limit key name applicable only for the following key types: exceedAction Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. exceedRedirectOptions Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security Policies of type CLOUD_ARMOR. rateLimitThreshold Threshold at which to begin ratelimiting.

Implementation

const SecurityPolicyRuleRateLimitOptions({
  this.banDurationSec,
  this.banThreshold,
  this.conformAction,
  this.enforceOnKey,
  this.enforceOnKeyConfigs,
  this.enforceOnKeyName,
  this.exceedAction,
  this.exceedRedirectOptions,
  this.rateLimitThreshold,
});