Class: Aws::WAFV2::Types::LoggingFilter

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

{
  filters: [ # required
    {
      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
          },
        },
      ],
    },
  ],
  default_behavior: "KEEP", # required, accepts KEEP, DROP
}

Filtering that specifies which web requests are kept in the logs and which are dropped, defined for a web ACL's LoggingConfiguration.

You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#default_behaviorString

Default handling for logs that don't match any of the specified filtering conditions.

Returns:

  • (String)


5722
5723
5724
5725
5726
5727
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 5722

class LoggingFilter < Struct.new(
  :filters,
  :default_behavior)
  SENSITIVE = []
  include Aws::Structure
end

#filtersArray<Types::Filter>

The filters that you want to apply to the logs.

Returns:



5722
5723
5724
5725
5726
5727
# File 'gems/aws-sdk-wafv2/lib/aws-sdk-wafv2/types.rb', line 5722

class LoggingFilter < Struct.new(
  :filters,
  :default_behavior)
  SENSITIVE = []
  include Aws::Structure
end