Class: AWSCDK::NetworkFirewall::CfnRuleGroup::PortSetProperty

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

Overview

A set of port ranges for use in the rules in a rule group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition: nil) ⇒ PortSetProperty

Returns a new instance of PortSetProperty.

Parameters:

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

    The set of port ranges.



1122
1123
1124
1125
# File 'network_firewall/cfn_rule_group.rb', line 1122

def initialize(definition: nil)
  @definition = definition
  Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "definition") unless @definition.nil?
end

Instance Attribute Details

#definitionArray<String>? (readonly)

The set of port ranges.



1131
1132
1133
# File 'network_firewall/cfn_rule_group.rb', line 1131

def definition
  @definition
end

Class Method Details

.jsii_propertiesObject



1133
1134
1135
1136
1137
# File 'network_firewall/cfn_rule_group.rb', line 1133

def self.jsii_properties
  {
    :definition => "definition",
  }
end

Instance Method Details

#to_jsiiObject



1139
1140
1141
1142
1143
1144
1145
# File 'network_firewall/cfn_rule_group.rb', line 1139

def to_jsii
  result = {}
  result.merge!({
    "definition" => @definition,
  })
  result.compact
end