GetRegionSecurityPolicyRuleRateLimitOption class

Constructors

GetRegionSecurityPolicyRuleRateLimitOption({required Input<int> banDurationSec, required Input<List<GetRegionSecurityPolicyRuleRateLimitOptionBanThreshold>> banThresholds, required Input<String> conformAction, required Input<String> enforceOnKey, required Input<List<GetRegionSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig>> enforceOnKeyConfigs, required Input<String> enforceOnKeyName, required Input<String> exceedAction, required Input<List<GetRegionSecurityPolicyRuleRateLimitOptionRateLimitThreshold>> rateLimitThresholds})
Creates a new GetRegionSecurityPolicyRuleRateLimitOption. banDurationSec Can only be specified if the action for the rule is "rateBasedBan". banThresholds 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 deny with a specified HTTP response code. rateLimitThresholds Threshold at which to begin ratelimiting.
const
GetRegionSecurityPolicyRuleRateLimitOption.fromMap(Map<String, dynamic> map)
factory

Properties

banDurationSec → Input<int>
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.
final
banThresholds → Input<List<GetRegionSecurityPolicyRuleRateLimitOptionBanThreshold>>
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'.
final
conformAction → Input<String>
Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only.
final
enforceOnKey → Input<String>
Determines the key to enforce the rateLimitThreshold on. Possible values are:
final
enforceOnKeyConfigs → Input<List<GetRegionSecurityPolicyRuleRateLimitOptionEnforceOnKeyConfig>>
If specified, any combination of values of enforceOnKeyType/enforceOnKeyName is treated as the key on which ratelimit threshold/action is enforced. You can specify up to 3 enforceOnKeyConfigs. If enforceOnKeyConfigs is specified, enforceOnKey must not be specified.
final
enforceOnKeyName → Input<String>
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.
final
exceedAction → Input<String>
Action to take for requests that are above the configured rate limit threshold, to deny with a specified HTTP response code. Valid options are deny(STATUS), where valid values for STATUS are 403, 404, 429, and 502.
final
hashCode → int
The hash code for this object.
no setterinherited
rateLimitThresholds → Input<List<GetRegionSecurityPolicyRuleRateLimitOptionRateLimitThreshold>>
Threshold at which to begin ratelimiting.
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