Class: AWSCDK::NetworkFirewall::CfnRuleGroup::RuleOptionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnRuleGroup::RuleOptionProperty
- Defined in:
- network_firewall/cfn_rule_group.rb
Overview
Additional settings for a stateful rule.
Instance Attribute Summary collapse
-
#keyword ⇒ String
readonly
The Suricata rule option keywords.
-
#settings ⇒ Array<String>?
readonly
The Suricata rule option settings.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(keyword:, settings: nil) ⇒ RuleOptionProperty
constructor
A new instance of RuleOptionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(keyword:, settings: nil) ⇒ RuleOptionProperty
Returns a new instance of RuleOptionProperty.
1356 1357 1358 1359 1360 1361 |
# File 'network_firewall/cfn_rule_group.rb', line 1356 def initialize(keyword:, settings: nil) @keyword = keyword Jsii::Type.check_type(@keyword, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyword") @settings = settings Jsii::Type.check_type(@settings, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "settings") unless @settings.nil? end |
Instance Attribute Details
#keyword ⇒ String (readonly)
The Suricata rule option keywords.
For Network Firewall , the keyword signature ID (sid) is required in the format sid:112233 . The sid must be unique within the rule group. For information about Suricata rule option keywords, see Rule options .
1369 1370 1371 |
# File 'network_firewall/cfn_rule_group.rb', line 1369 def keyword @keyword end |
#settings ⇒ Array<String>? (readonly)
The Suricata rule option settings.
Settings have zero or more values, and the number of possible settings and required settings depends on the keyword. The format for Settings is number . For information about Suricata rule option settings, see Rule options .
1376 1377 1378 |
# File 'network_firewall/cfn_rule_group.rb', line 1376 def settings @settings end |
Class Method Details
.jsii_properties ⇒ Object
1378 1379 1380 1381 1382 1383 |
# File 'network_firewall/cfn_rule_group.rb', line 1378 def self.jsii_properties { :keyword => "keyword", :settings => "settings", } end |
Instance Method Details
#to_jsii ⇒ Object
1385 1386 1387 1388 1389 1390 1391 1392 |
# File 'network_firewall/cfn_rule_group.rb', line 1385 def to_jsii result = {} result.merge!({ "keyword" => @keyword, "settings" => @settings, }) result.compact end |