GetSecurityPolicyRuleRateLimitOption constructor
- required Input<
int> banDurationSec, - required Input<
List< banThresholds,GetSecurityPolicyRuleRateLimitOptionBanThreshold> > - required Input<
String> conformAction, - required Input<
String> enforceOnKey, - required Input<
List< enforceOnKeyConfigs,GetSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig> > - required Input<
String> enforceOnKeyName, - required Input<
String> exceedAction, - required Input<
List< exceedRedirectOptions,GetSecurityPolicyRuleRateLimitOptionExceedRedirectOption> > - required Input<
List< rateLimitThresholds,GetSecurityPolicyRuleRateLimitOptionRateLimitThreshold> >
Creates a new GetSecurityPolicyRuleRateLimitOption.
banDurationSec Can only be specified if the action for the rule is "rateBasedBan". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold.
banThresholds Can only be specified if the action for the rule is "rateBasedBan". If specified, the key will be banned for the configured 'banDurationSec' when the number of requests that exceed the 'rateLimitThreshold' also exceed this 'banThreshold'.
conformAction Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
enforceOnKey Determines the key to enforce the rateLimitThreshold on
enforceOnKeyConfigs Enforce On Key Config of this security policy
enforceOnKeyName Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value.
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. Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.
exceedRedirectOptions Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect.
rateLimitThresholds Threshold at which to begin ratelimiting.
Implementation
const GetSecurityPolicyRuleRateLimitOption({
required this.banDurationSec,
required this.banThresholds,
required this.conformAction,
required this.enforceOnKey,
required this.enforceOnKeyConfigs,
required this.enforceOnKeyName,
required this.exceedAction,
required this.exceedRedirectOptions,
required this.rateLimitThresholds,
});