Class: AWSCDK::NetworkFirewall::CfnRuleGroup::StatelessRulesAndCustomActionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnRuleGroup::StatelessRulesAndCustomActionsProperty
- Defined in:
- network_firewall/cfn_rule_group.rb
Overview
Stateless inspection criteria.
Each stateless rule group uses exactly one of these data types to define its stateless rules.
Instance Attribute Summary collapse
-
#custom_actions ⇒ AWSCDK::IResolvable, ...
readonly
Defines an array of individual custom action definitions that are available for use by the stateless rules in this
StatelessRulesAndCustomActionsspecification. -
#stateless_rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::NetworkFirewall::CfnRuleGroup::StatelessRuleProperty>
readonly
Defines the set of stateless rules for use in a stateless rule group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(stateless_rules:, custom_actions: nil) ⇒ StatelessRulesAndCustomActionsProperty
constructor
A new instance of StatelessRulesAndCustomActionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(stateless_rules:, custom_actions: nil) ⇒ StatelessRulesAndCustomActionsProperty
Returns a new instance of StatelessRulesAndCustomActionsProperty.
1743 1744 1745 1746 1747 1748 |
# File 'network_firewall/cfn_rule_group.rb', line 1743 def initialize(stateless_rules:, custom_actions: nil) @stateless_rules = stateless_rules Jsii::Type.check_type(@stateless_rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbmV0d29ya2ZpcmV3YWxsLkNmblJ1bGVHcm91cC5TdGF0ZWxlc3NSdWxlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "statelessRules") @custom_actions = custom_actions Jsii::Type.check_type(@custom_actions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbmV0d29ya2ZpcmV3YWxsLkNmblJ1bGVHcm91cC5DdXN0b21BY3Rpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "customActions") unless @custom_actions.nil? end |
Instance Attribute Details
#custom_actions ⇒ AWSCDK::IResolvable, ... (readonly)
Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions specification.
You name each custom action that you define, and then you can use it by name in your stateless rule definition Actions specification.
1761 1762 1763 |
# File 'network_firewall/cfn_rule_group.rb', line 1761 def custom_actions @custom_actions end |
#stateless_rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::NetworkFirewall::CfnRuleGroup::StatelessRuleProperty> (readonly)
Defines the set of stateless rules for use in a stateless rule group.
1754 1755 1756 |
# File 'network_firewall/cfn_rule_group.rb', line 1754 def stateless_rules @stateless_rules end |
Class Method Details
.jsii_properties ⇒ Object
1763 1764 1765 1766 1767 1768 |
# File 'network_firewall/cfn_rule_group.rb', line 1763 def self.jsii_properties { :stateless_rules => "statelessRules", :custom_actions => "customActions", } end |
Instance Method Details
#to_jsii ⇒ Object
1770 1771 1772 1773 1774 1775 1776 1777 |
# File 'network_firewall/cfn_rule_group.rb', line 1770 def to_jsii result = {} result.merge!({ "statelessRules" => @stateless_rules, "customActions" => @custom_actions, }) result.compact end |