PolicyCustomRuleArgs

data class PolicyCustomRuleArgs(val action: Output<String>, val enabled: Output<Boolean>? = null, val groupRateLimitBy: Output<String>? = null, val matchConditions: Output<List<PolicyCustomRuleMatchConditionArgs>>, val name: Output<String>? = null, val priority: Output<Int>, val rateLimitDuration: Output<String>? = null, val rateLimitThreshold: Output<Int>? = null, val ruleType: Output<String>) : ConvertibleToJava<PolicyCustomRuleArgs>

Constructors

Link copied to clipboard
constructor(action: Output<String>, enabled: Output<Boolean>? = null, groupRateLimitBy: Output<String>? = null, matchConditions: Output<List<PolicyCustomRuleMatchConditionArgs>>, name: Output<String>? = null, priority: Output<Int>, rateLimitDuration: Output<String>? = null, rateLimitThreshold: Output<Int>? = null, ruleType: Output<String>)

Properties

Link copied to clipboard
val action: Output<String>

Type of action. Possible values are Allow, Block, JSChallenge and Log.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Describes if the policy is in enabled state or disabled state. Defaults to true.

Link copied to clipboard
val groupRateLimitBy: Output<String>? = null

Specifies what grouping the rate limit will count requests by. Possible values are GeoLocation, ClientAddr and None.

Link copied to clipboard

One or more match_conditions blocks as defined below.

Link copied to clipboard
val name: Output<String>? = null

Gets name of the resource that is unique within a policy. This name can be used to access the resource.

Link copied to clipboard
val priority: Output<Int>

Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.

Link copied to clipboard
val rateLimitDuration: Output<String>? = null

Specifies the duration at which the rate limit policy will be applied. Should be used with RateLimitRule rule type. Possible values are FiveMins and OneMin.

Link copied to clipboard
val rateLimitThreshold: Output<Int>? = null

Specifies the threshold value for the rate limit policy. Must be greater than or equal to 1 if provided.

Link copied to clipboard
val ruleType: Output<String>

Describes the type of rule. Possible values are MatchRule, RateLimitRule and Invalid.

Functions

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