Class: AWSCDK::Inspectorv2::CfnFilter::PortRangeFilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
inspectorv2/cfn_filter.rb

Overview

An object that describes the details of a port range filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(begin_inclusive: nil, end_inclusive: nil) ⇒ PortRangeFilterProperty

Returns a new instance of PortRangeFilterProperty.

Parameters:

  • begin_inclusive (Numeric, nil) (defaults to: nil)

    The port number the port range begins at.

  • end_inclusive (Numeric, nil) (defaults to: nil)

    The port number the port range ends at.



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_inclusiveNumeric? (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_inclusiveNumeric? (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_propertiesObject



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_jsiiObject



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