Class: AWSCDK::Inspectorv2::CfnFilter::StringFilterProperty

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

Overview

An object that describes the details of a string filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comparison:, value:) ⇒ StringFilterProperty

Returns a new instance of StringFilterProperty.

Parameters:

  • comparison (String)

    The operator to use when comparing values in the filter.

  • value (String)

    The value to filter on.



1272
1273
1274
1275
1276
1277
# File 'inspectorv2/cfn_filter.rb', line 1272

def initialize(comparison:, value:)
  @comparison = comparison
  Jsii::Type.check_type(@comparison, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comparison")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#comparisonString (readonly)

The operator to use when comparing values in the filter.



1283
1284
1285
# File 'inspectorv2/cfn_filter.rb', line 1283

def comparison
  @comparison
end

#valueString (readonly)

The value to filter on.



1288
1289
1290
# File 'inspectorv2/cfn_filter.rb', line 1288

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1290
1291
1292
1293
1294
1295
# File 'inspectorv2/cfn_filter.rb', line 1290

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

Instance Method Details

#to_jsiiObject



1297
1298
1299
1300
1301
1302
1303
1304
# File 'inspectorv2/cfn_filter.rb', line 1297

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