Class: Aws::WAFV2::Types::OverrideAction

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb

Overview

Note:

When making an API call, you may pass OverrideAction data as a hash:

{
  count: {
    custom_request_handling: {
      insert_headers: [ # required
        {
          name: "CustomHTTPHeaderName", # required
          value: "CustomHTTPHeaderValue", # required
        },
      ],
    },
  },
  none: {
  },
}

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 exclude those rules in your rule group reference statement settings.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#countTypes::CountAction

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 exclude those rules in your rule group reference statement settings.

Returns:



7069
7070
7071
7072
7073
7074
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 7069

class OverrideAction < Struct.new(
  :count,
  :none)
  SENSITIVE = []
  include Aws::Structure
end

#noneTypes::NoneAction

Don't override the rule group evaluation result. This is the most common setting.

Returns:

  • (Types::NoneAction)


7069
7070
7071
7072
7073
7074
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 7069

class OverrideAction < Struct.new(
  :count,
  :none)
  SENSITIVE = []
  include Aws::Structure
end