Class: AWSCDK::SecurityHub::CfnAutomationRuleV2::NumberFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnAutomationRuleV2::NumberFilterProperty
- Defined in:
- security_hub/cfn_automation_rule_v2.rb
Overview
A number filter for querying findings.
Instance Attribute Summary collapse
-
#eq ⇒ Numeric?
readonly
The equal-to condition to be applied to a single field when querying for findings.
-
#gte ⇒ Numeric?
readonly
The greater-than-equal condition to be applied to a single field when querying for findings.
-
#lte ⇒ Numeric?
readonly
The less-than-equal condition to be applied to a single field when querying for findings.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(eq: nil, gte: nil, lte: nil) ⇒ NumberFilterProperty
constructor
A new instance of NumberFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(eq: nil, gte: nil, lte: nil) ⇒ NumberFilterProperty
Returns a new instance of NumberFilterProperty.
1081 1082 1083 1084 1085 1086 1087 1088 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1081 def initialize(eq: nil, gte: nil, lte: nil) @eq = eq Jsii::Type.check_type(@eq, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "eq") unless @eq.nil? @gte = gte Jsii::Type.check_type(@gte, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "gte") unless @gte.nil? @lte = lte Jsii::Type.check_type(@lte, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lte") unless @lte.nil? end |
Instance Attribute Details
#eq ⇒ Numeric? (readonly)
The equal-to condition to be applied to a single field when querying for findings.
1094 1095 1096 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1094 def eq @eq end |
#gte ⇒ Numeric? (readonly)
The greater-than-equal condition to be applied to a single field when querying for findings.
1099 1100 1101 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1099 def gte @gte end |
#lte ⇒ Numeric? (readonly)
The less-than-equal condition to be applied to a single field when querying for findings.
1104 1105 1106 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1104 def lte @lte end |
Class Method Details
.jsii_properties ⇒ Object
1106 1107 1108 1109 1110 1111 1112 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1106 def self.jsii_properties { :eq => "eq", :gte => "gte", :lte => "lte", } end |
Instance Method Details
#to_jsii ⇒ Object
1114 1115 1116 1117 1118 1119 1120 1121 1122 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1114 def to_jsii result = {} result.merge!({ "eq" => @eq, "gte" => @gte, "lte" => @lte, }) result.compact end |