Class: AWSCDK::Inspectorv2::CfnFilter::NumberFilterProperty

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

Overview

An object that describes the details of a number filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lower_inclusive: nil, upper_inclusive: nil) ⇒ NumberFilterProperty

Returns a new instance of NumberFilterProperty.

Parameters:

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

    The lowest number to be included in the filter.

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

    The highest number to be included in the filter.



1087
1088
1089
1090
1091
1092
# File 'inspectorv2/cfn_filter.rb', line 1087

def initialize(lower_inclusive: nil, upper_inclusive: nil)
  @lower_inclusive = lower_inclusive
  Jsii::Type.check_type(@lower_inclusive, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lowerInclusive") unless @lower_inclusive.nil?
  @upper_inclusive = upper_inclusive
  Jsii::Type.check_type(@upper_inclusive, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "upperInclusive") unless @upper_inclusive.nil?
end

Instance Attribute Details

#lower_inclusiveNumeric? (readonly)

The lowest number to be included in the filter.



1098
1099
1100
# File 'inspectorv2/cfn_filter.rb', line 1098

def lower_inclusive
  @lower_inclusive
end

#upper_inclusiveNumeric? (readonly)

The highest number to be included in the filter.



1103
1104
1105
# File 'inspectorv2/cfn_filter.rb', line 1103

def upper_inclusive
  @upper_inclusive
end

Class Method Details

.jsii_propertiesObject



1105
1106
1107
1108
1109
1110
# File 'inspectorv2/cfn_filter.rb', line 1105

def self.jsii_properties
  {
    :lower_inclusive => "lowerInclusive",
    :upper_inclusive => "upperInclusive",
  }
end

Instance Method Details

#to_jsiiObject



1112
1113
1114
1115
1116
1117
1118
1119
# File 'inspectorv2/cfn_filter.rb', line 1112

def to_jsii
  result = {}
  result.merge!({
    "lowerInclusive" => @lower_inclusive,
    "upperInclusive" => @upper_inclusive,
  })
  result.compact
end