Class: AWSCDK::Inspectorv2::CfnFilter::MapFilterProperty

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

Overview

An object that describes details of a map filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comparison:, key: nil, value: nil) ⇒ MapFilterProperty

Returns a new instance of MapFilterProperty.

Parameters:

  • comparison (String)

    The operator to use when comparing values in the filter.

  • key (String, nil) (defaults to: nil)

    The tag key used in the filter.

  • value (String, nil) (defaults to: nil)

    The tag value used in the filter.



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

#comparisonString (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

#keyString? (readonly)

The tag key used in the filter.



1053
1054
1055
# File 'inspectorv2/cfn_filter.rb', line 1053

def key
  @key
end

#valueString? (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_propertiesObject



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_jsiiObject



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