Class: AWSCDK::NetworkFirewall::CfnFirewallPolicy::StatefulRuleGroupOverrideProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_firewall/cfn_firewall_policy.rb

Overview

The setting that allows the policy owner to change the behavior of the rule group within a policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action: nil) ⇒ StatefulRuleGroupOverrideProperty

Returns a new instance of StatefulRuleGroupOverrideProperty.

Parameters:

  • action (String, nil) (defaults to: nil)

    The action that changes the rule group from DROP to ALERT .



1056
1057
1058
1059
# File 'network_firewall/cfn_firewall_policy.rb', line 1056

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

Instance Attribute Details

#actionString? (readonly)

The action that changes the rule group from DROP to ALERT .

This only applies to managed rule groups.



1067
1068
1069
# File 'network_firewall/cfn_firewall_policy.rb', line 1067

def action
  @action
end

Class Method Details

.jsii_propertiesObject



1069
1070
1071
1072
1073
# File 'network_firewall/cfn_firewall_policy.rb', line 1069

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

Instance Method Details

#to_jsiiObject



1075
1076
1077
1078
1079
1080
1081
# File 'network_firewall/cfn_firewall_policy.rb', line 1075

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