Class: AWSCDK::NetworkFirewall::CfnRuleGroup::RuleVariablesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnRuleGroup::RuleVariablesProperty
- Defined in:
- network_firewall/cfn_rule_group.rb
Overview
Settings that are available for use in the rules in the rule group where this is defined.
Instance Attribute Summary collapse
-
#ip_sets ⇒ AWSCDK::IResolvable, ...
readonly
A list of IP addresses and address ranges, in CIDR notation.
-
#port_sets ⇒ AWSCDK::IResolvable, ...
readonly
A list of port ranges.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ip_sets: nil, port_sets: nil) ⇒ RuleVariablesProperty
constructor
A new instance of RuleVariablesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ip_sets: nil, port_sets: nil) ⇒ RuleVariablesProperty
Returns a new instance of RuleVariablesProperty.
1403 1404 1405 1406 1407 1408 |
# File 'network_firewall/cfn_rule_group.rb', line 1403 def initialize(ip_sets: nil, port_sets: nil) @ip_sets = ip_sets Jsii::Type.check_type(@ip_sets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbmV0d29ya2ZpcmV3YWxsLkNmblJ1bGVHcm91cC5JUFNldFByb3BlcnR5In1dfX0sImtpbmQiOiJtYXAifX1dfX0=")), "ipSets") unless @ip_sets.nil? @port_sets = port_sets Jsii::Type.check_type(@port_sets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbmV0d29ya2ZpcmV3YWxsLkNmblJ1bGVHcm91cC5Qb3J0U2V0UHJvcGVydHkifV19fSwia2luZCI6Im1hcCJ9fV19fQ==")), "portSets") unless @port_sets.nil? end |
Instance Attribute Details
#ip_sets ⇒ AWSCDK::IResolvable, ... (readonly)
A list of IP addresses and address ranges, in CIDR notation.
1414 1415 1416 |
# File 'network_firewall/cfn_rule_group.rb', line 1414 def ip_sets @ip_sets end |
#port_sets ⇒ AWSCDK::IResolvable, ... (readonly)
A list of port ranges.
1419 1420 1421 |
# File 'network_firewall/cfn_rule_group.rb', line 1419 def port_sets @port_sets end |
Class Method Details
.jsii_properties ⇒ Object
1421 1422 1423 1424 1425 1426 |
# File 'network_firewall/cfn_rule_group.rb', line 1421 def self.jsii_properties { :ip_sets => "ipSets", :port_sets => "portSets", } end |
Instance Method Details
#to_jsii ⇒ Object
1428 1429 1430 1431 1432 1433 1434 1435 |
# File 'network_firewall/cfn_rule_group.rb', line 1428 def to_jsii result = {} result.merge!({ "ipSets" => @ip_sets, "portSets" => @port_sets, }) result.compact end |