@Stability(value=Stable)
public static interface CfnWebACL.OverrideActionProperty
extends software.amazon.jsii.JsiiSerializable
Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.
You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement and ManagedRuleGroupStatement .
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead exclude those rules in your rule group reference statement settings.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wafv2.*;
Object count;
Object none;
OverrideActionProperty overrideActionProperty = OverrideActionProperty.builder()
.count(count)
.none(none)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnWebACL.OverrideActionProperty.Builder
A builder for
CfnWebACL.OverrideActionProperty |
static class |
CfnWebACL.OverrideActionProperty.Jsii$Proxy
An implementation for
CfnWebACL.OverrideActionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnWebACL.OverrideActionProperty.Builder |
builder() |
default Object |
getCount()
Override the rule group evaluation result to count only.
|
default Object |
getNone()
Don't override the rule group evaluation result.
|
@Stability(value=Stable) @Nullable default Object getCount()
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead exclude those rules in your rule group reference statement settings.
@Stability(value=Stable) @Nullable default Object getNone()
This is the most common setting.
@Stability(value=Stable) static CfnWebACL.OverrideActionProperty.Builder builder()
Copyright © 2022. All rights reserved.