WebAclRuleArgs

data class WebAclRuleArgs(val action: Output<WebAclRuleActionArgs>? = null, val overrideAction: Output<WebAclRuleOverrideActionArgs>? = null, val priority: Output<Int>, val ruleId: Output<String>, val type: Output<String>? = null) : ConvertibleToJava<WebAclRuleArgs>

Constructors

Link copied to clipboard
constructor(action: Output<WebAclRuleActionArgs>? = null, overrideAction: Output<WebAclRuleOverrideActionArgs>? = null, priority: Output<Int>, ruleId: Output<String>, type: Output<String>? = null)

Properties

Link copied to clipboard
val action: Output<WebAclRuleActionArgs>? = null

The action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if type is GROUP.

Link copied to clipboard

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.

Link copied to clipboard
val priority: Output<Int>

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
val ruleId: Output<String>

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

Link copied to clipboard
val type: Output<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.

Functions

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