Class: AWSCDK::NetworkFirewall::CfnRuleGroup::RuleOptionProperty

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

Overview

Additional settings for a stateful rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyword:, settings: nil) ⇒ RuleOptionProperty

Returns a new instance of RuleOptionProperty.

Parameters:

  • keyword (String)

    The Suricata rule option keywords.

  • settings (Array<String>, nil) (defaults to: nil)

    The Suricata rule option settings.



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

#keywordString (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

#settingsArray<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_propertiesObject



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_jsiiObject



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