WebAclRule

data class WebAclRule(val action: WebAclRuleAction? = null, val overrideAction: WebAclRuleOverrideAction? = null, val priority: Int, val ruleId: String, val type: String? = null)

Constructors

Link copied to clipboard
constructor(action: WebAclRuleAction? = null, overrideAction: WebAclRuleOverrideAction? = null, priority: Int, ruleId: String, type: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Configuration block of the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if type is GROUP. Detailed below.

Link copied to clipboard

Configuration block of the override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if type is GROUP. Detailed below.

Link copied to clipboard

Specifies the order in which the rules in a WebACL are evaluated. Rules with a lower value are evaluated before rules with a higher value.

Link copied to clipboard

ID of the associated WAF (Regional) rule (e.g., aws.wafregional.Rule). WAF (Global) rules cannot be used.

Link copied to clipboard
val type: String? = null

The rule type, either REGULAR, as defined by Rule, RATE_BASED, as defined by RateBasedRule, or GROUP, as defined by RuleGroup. The default is REGULAR. If you add a RATE_BASED rule, you need to set type as RATE_BASED. If you add a GROUP rule, you need to set type as GROUP.