Class: AWSCDK::NetworkFirewall::CfnRuleGroup::StatelessRulesAndCustomActionsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stateless_rules:, custom_actions: nil) ⇒ StatelessRulesAndCustomActionsProperty

Returns a new instance of StatelessRulesAndCustomActionsProperty.

Parameters:



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_actionsAWSCDK::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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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