Class: AWSCDK::WAFv2::CfnWebACL::OverrideActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::OverrideActionProperty
- Defined in:
- wa_fv2/cfn_web_acl.rb
Overview
The action to use in the place of the action that results from the rule group evaluation.
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 use the rule action override option, with
Countaction, in your rule group reference statement settings.
Instance Attribute Summary collapse
-
#count ⇒ Object?
readonly
Override the rule group evaluation result to count only.
-
#none ⇒ Object?
readonly
Don't override the rule group evaluation result.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(count: nil, none: nil) ⇒ OverrideActionProperty
constructor
A new instance of OverrideActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(count: nil, none: nil) ⇒ OverrideActionProperty
Returns a new instance of OverrideActionProperty.
3936 3937 3938 3939 3940 3941 |
# File 'wa_fv2/cfn_web_acl.rb', line 3936 def initialize(count: nil, none: nil) @count = count Jsii::Type.check_type(@count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "count") unless @count.nil? @none = none Jsii::Type.check_type(@none, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "none") unless @none.nil? end |
Instance Attribute Details
#count ⇒ Object? (readonly)
Override the rule group evaluation result to count only.
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 use the rule action override option, with
Countaction, in your rule group reference statement settings.
3949 3950 3951 |
# File 'wa_fv2/cfn_web_acl.rb', line 3949 def count @count end |
#none ⇒ Object? (readonly)
Don't override the rule group evaluation result.
This is the most common setting.
3956 3957 3958 |
# File 'wa_fv2/cfn_web_acl.rb', line 3956 def none @none end |
Class Method Details
.jsii_properties ⇒ Object
3958 3959 3960 3961 3962 3963 |
# File 'wa_fv2/cfn_web_acl.rb', line 3958 def self.jsii_properties { :count => "count", :none => "none", } end |
Instance Method Details
#to_jsii ⇒ Object
3965 3966 3967 3968 3969 3970 3971 3972 |
# File 'wa_fv2/cfn_web_acl.rb', line 3965 def to_jsii result = {} result.merge!({ "count" => @count, "none" => @none, }) result.compact end |