RateLimitRuleArgs

data class RateLimitRuleArgs(val action: Output<Either<String, ActionType>>, val enabledState: Output<Either<String, CustomRuleEnabledState>>? = null, val matchConditions: Output<List<MatchConditionArgs>>, val name: Output<String>, val priority: Output<Int>, val rateLimitDurationInMinutes: Output<Int>, val rateLimitThreshold: Output<Int>) : ConvertibleToJava<RateLimitRuleArgs>

Defines a rate limiting rule that can be included in a waf policy

Constructors

Link copied to clipboard
constructor(action: Output<Either<String, ActionType>>, enabledState: Output<Either<String, CustomRuleEnabledState>>? = null, matchConditions: Output<List<MatchConditionArgs>>, name: Output<String>, priority: Output<Int>, rateLimitDurationInMinutes: Output<Int>, rateLimitThreshold: Output<Int>)

Properties

Link copied to clipboard
val action: Output<Either<String, ActionType>>

Describes what action to be applied when rule matches

Link copied to clipboard
val enabledState: Output<Either<String, CustomRuleEnabledState>>? = null

Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.

Link copied to clipboard

List of match conditions.

Link copied to clipboard
val name: Output<String>

Defines the name of the custom rule

Link copied to clipboard
val priority: Output<Int>

Defines in what order this rule be evaluated in the overall list of custom rules

Link copied to clipboard

Defines rate limit duration. Default is 1 minute.

Link copied to clipboard
val rateLimitThreshold: Output<Int>

Defines rate limit threshold.

Functions

Link copied to clipboard
open override fun toJava(): RateLimitRuleArgs