action

@JvmName(name = "jjdjxctobenacspl")
suspend fun action(value: Output<WebAclRuleActionArgs>)
@JvmName(name = "urtcdodubawxiodi")
suspend fun action(value: WebAclRuleActionArgs?)

Parameters

value

The action that AWS WAF should take on a web request when it matches the rule's statement. Settings at the web ACL level can override the rule action setting. This is used only for rules whose statements don't reference a rule group. Rule statements that reference a rule group are RuleGroupReferenceStatement and ManagedRuleGroupStatement . You must set either this Action setting or the rule's OverrideAction , but not both:

  • If the rule statement doesn't reference a rule group, you must set this rule action setting and you must not set the rule's override action setting.

  • If the rule statement references a rule group, you must not set this action setting, because the actions are already set on the rules inside the rule group. You must set the rule's override action setting to indicate specifically whether to override the actions that are set on the rules in the rule group.


@JvmName(name = "bbupciflrkemthcw")
suspend fun action(argument: suspend WebAclRuleActionArgsBuilder.() -> Unit)

Parameters

argument

The action that AWS WAF should take on a web request when it matches the rule's statement. Settings at the web ACL level can override the rule action setting. This is used only for rules whose statements don't reference a rule group. Rule statements that reference a rule group are RuleGroupReferenceStatement and ManagedRuleGroupStatement . You must set either this Action setting or the rule's OverrideAction , but not both:

  • If the rule statement doesn't reference a rule group, you must set this rule action setting and you must not set the rule's override action setting.

  • If the rule statement references a rule group, you must not set this action setting, because the actions are already set on the rules inside the rule group. You must set the rule's override action setting to indicate specifically whether to override the actions that are set on the rules in the rule group.