Class: AWSCDK::Inspectorv2::CfnFilter::StringFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Inspectorv2::CfnFilter::StringFilterProperty
- Defined in:
- inspectorv2/cfn_filter.rb
Overview
An object that describes the details of a string filter.
Instance Attribute Summary collapse
-
#comparison ⇒ String
readonly
The operator to use when comparing values in the filter.
-
#value ⇒ String
readonly
The value to filter on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(comparison:, value:) ⇒ StringFilterProperty
constructor
A new instance of StringFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(comparison:, value:) ⇒ StringFilterProperty
Returns a new instance of StringFilterProperty.
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
#comparison ⇒ String (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 |
#value ⇒ String (readonly)
The value to filter on.
1288 1289 1290 |
# File 'inspectorv2/cfn_filter.rb', line 1288 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |