Class: AWSCDK::Inspectorv2::CfnFilter::MapFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Inspectorv2::CfnFilter::MapFilterProperty
- Defined in:
- inspectorv2/cfn_filter.rb
Overview
An object that describes details of a map filter.
Instance Attribute Summary collapse
-
#comparison ⇒ String
readonly
The operator to use when comparing values in the filter.
-
#key ⇒ String?
readonly
The tag key used in the filter.
-
#value ⇒ String?
readonly
The tag value used in the filter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(comparison:, key: nil, value: nil) ⇒ MapFilterProperty
constructor
A new instance of MapFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(comparison:, key: nil, value: nil) ⇒ MapFilterProperty
Returns a new instance of MapFilterProperty.
1035 1036 1037 1038 1039 1040 1041 1042 |
# File 'inspectorv2/cfn_filter.rb', line 1035 def initialize(comparison:, key: nil, value: nil) @comparison = comparison Jsii::Type.check_type(@comparison, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comparison") @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#comparison ⇒ String (readonly)
The operator to use when comparing values in the filter.
1048 1049 1050 |
# File 'inspectorv2/cfn_filter.rb', line 1048 def comparison @comparison end |
#key ⇒ String? (readonly)
The tag key used in the filter.
1053 1054 1055 |
# File 'inspectorv2/cfn_filter.rb', line 1053 def key @key end |
#value ⇒ String? (readonly)
The tag value used in the filter.
1058 1059 1060 |
# File 'inspectorv2/cfn_filter.rb', line 1058 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1060 1061 1062 1063 1064 1065 1066 |
# File 'inspectorv2/cfn_filter.rb', line 1060 def self.jsii_properties { :comparison => "comparison", :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1068 1069 1070 1071 1072 1073 1074 1075 1076 |
# File 'inspectorv2/cfn_filter.rb', line 1068 def to_jsii result = {} result.merge!({ "comparison" => @comparison, "key" => @key, "value" => @value, }) result.compact end |