Class: AWSCDK::WAFv2::CfnLoggingConfiguration::ActionConditionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_logging_configuration.rb

Overview

A single action condition for a condition in a logging filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:) ⇒ ActionConditionProperty

Returns a new instance of ActionConditionProperty.

Parameters:

  • action (String)

    The action setting that a log record must contain in order to meet the condition.



561
562
563
564
# File 'wa_fv2/cfn_logging_configuration.rb', line 561

def initialize(action:)
  @action = action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action")
end

Instance Attribute Details

#actionString (readonly)

The action setting that a log record must contain in order to meet the condition.

This is the action that AWS WAF applied to the web request.

For rule groups, this is either the configured rule action setting, or if you've applied a rule action override to the rule, it's the override action. The value EXCLUDED_AS_COUNT matches on excluded rules and also on rules that have a rule action override of Count.



574
575
576
# File 'wa_fv2/cfn_logging_configuration.rb', line 574

def action
  @action
end

Class Method Details

.jsii_propertiesObject



576
577
578
579
580
# File 'wa_fv2/cfn_logging_configuration.rb', line 576

def self.jsii_properties
  {
    :action => "action",
  }
end

Instance Method Details

#to_jsiiObject



582
583
584
585
586
587
588
# File 'wa_fv2/cfn_logging_configuration.rb', line 582

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
  })
  result.compact
end