Class: AWSCDK::WAFv2::CfnWebACL::OverrideActionProperty

Inherits:
Jsii::Struct
  • Object
show all
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 Count action, in your rule group reference statement settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(count: nil, none: nil) ⇒ OverrideActionProperty

Returns a new instance of OverrideActionProperty.

Parameters:

  • count (Object, nil) (defaults to: nil)

    Override the rule group evaluation result to count only.

  • none (Object, nil) (defaults to: nil)

    Don't override the rule group evaluation result.



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

#countObject? (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 Count action, in your rule group reference statement settings.



3949
3950
3951
# File 'wa_fv2/cfn_web_acl.rb', line 3949

def count
  @count
end

#noneObject? (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_propertiesObject



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_jsiiObject



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