Class: AWSCDK::NetworkFirewall::CfnRuleGroup::RuleVariablesProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip_sets: nil, port_sets: nil) ⇒ RuleVariablesProperty

Returns a new instance of RuleVariablesProperty.

Parameters:



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_setsAWSCDK::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_setsAWSCDK::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_propertiesObject



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_jsiiObject



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