Class: Aws::WAFV2::Types::Filter

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 Filter data as a hash:

{
  behavior: "KEEP", # required, accepts KEEP, DROP
  requirement: "MEETS_ALL", # required, accepts MEETS_ALL, MEETS_ANY
  conditions: [ # required
    {
      action_condition: {
        action: "ALLOW", # required, accepts ALLOW, BLOCK, COUNT, CAPTCHA, EXCLUDED_AS_COUNT
      },
      label_name_condition: {
        label_name: "LabelName", # required
      },
    },
  ],
}

A single logging filter, used in LoggingFilter.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#behaviorString

How to handle logs that satisfy the filter's conditions and requirement.

Returns:

  • (String)


3447
3448
3449
3450
3451
3452
3453
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 3447

class Filter < Struct.new(
  :behavior,
  :requirement,
  :conditions)
  SENSITIVE = []
  include Aws::Structure
end

#conditionsArray<Types::Condition>

Match conditions for the filter.

Returns:



3447
3448
3449
3450
3451
3452
3453
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 3447

class Filter < Struct.new(
  :behavior,
  :requirement,
  :conditions)
  SENSITIVE = []
  include Aws::Structure
end

#requirementString

Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.

Returns:

  • (String)


3447
3448
3449
3450
3451
3452
3453
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 3447

class Filter < Struct.new(
  :behavior,
  :requirement,
  :conditions)
  SENSITIVE = []
  include Aws::Structure
end