Class: AWSCDK::Inspectorv2::CfnFilter::PortRangeFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Inspectorv2::CfnFilter::PortRangeFilterProperty
- Defined in:
- inspectorv2/cfn_filter.rb
Overview
An object that describes the details of a port range filter.
Instance Attribute Summary collapse
-
#begin_inclusive ⇒ Numeric?
readonly
The port number the port range begins at.
-
#end_inclusive ⇒ Numeric?
readonly
The port number the port range ends at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(begin_inclusive: nil, end_inclusive: nil) ⇒ PortRangeFilterProperty
constructor
A new instance of PortRangeFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(begin_inclusive: nil, end_inclusive: nil) ⇒ PortRangeFilterProperty
Returns a new instance of PortRangeFilterProperty.
1229 1230 1231 1232 1233 1234 |
# File 'inspectorv2/cfn_filter.rb', line 1229 def initialize(begin_inclusive: nil, end_inclusive: nil) @begin_inclusive = begin_inclusive Jsii::Type.check_type(@begin_inclusive, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "beginInclusive") unless @begin_inclusive.nil? @end_inclusive = end_inclusive Jsii::Type.check_type(@end_inclusive, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "endInclusive") unless @end_inclusive.nil? end |
Instance Attribute Details
#begin_inclusive ⇒ Numeric? (readonly)
The port number the port range begins at.
1240 1241 1242 |
# File 'inspectorv2/cfn_filter.rb', line 1240 def begin_inclusive @begin_inclusive end |
#end_inclusive ⇒ Numeric? (readonly)
The port number the port range ends at.
1245 1246 1247 |
# File 'inspectorv2/cfn_filter.rb', line 1245 def end_inclusive @end_inclusive end |
Class Method Details
.jsii_properties ⇒ Object
1247 1248 1249 1250 1251 1252 |
# File 'inspectorv2/cfn_filter.rb', line 1247 def self.jsii_properties { :begin_inclusive => "beginInclusive", :end_inclusive => "endInclusive", } end |
Instance Method Details
#to_jsii ⇒ Object
1254 1255 1256 1257 1258 1259 1260 1261 |
# File 'inspectorv2/cfn_filter.rb', line 1254 def to_jsii result = {} result.merge!({ "beginInclusive" => @begin_inclusive, "endInclusive" => @end_inclusive, }) result.compact end |