Class: AWSCDK::IoTEvents::CfnAlarmModel::SimpleRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnAlarmModel::SimpleRuleProperty
- Defined in:
- io_t_events/cfn_alarm_model.rb
Overview
A rule that compares an input property value to a threshold value with a comparison operator.
Instance Attribute Summary collapse
-
#comparison_operator ⇒ String
readonly
The comparison operator.
-
#input_property ⇒ String
readonly
The value on the left side of the comparison operator.
-
#threshold ⇒ String
readonly
The value on the right side of the comparison operator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(comparison_operator:, input_property:, threshold:) ⇒ SimpleRuleProperty
constructor
A new instance of SimpleRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(comparison_operator:, input_property:, threshold:) ⇒ SimpleRuleProperty
Returns a new instance of SimpleRuleProperty.
1768 1769 1770 1771 1772 1773 1774 1775 |
# File 'io_t_events/cfn_alarm_model.rb', line 1768 def initialize(comparison_operator:, input_property:, threshold:) @comparison_operator = comparison_operator Jsii::Type.check_type(@comparison_operator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comparisonOperator") @input_property = input_property Jsii::Type.check_type(@input_property, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputProperty") @threshold = threshold Jsii::Type.check_type(@threshold, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "threshold") end |
Instance Attribute Details
#comparison_operator ⇒ String (readonly)
The comparison operator.
1781 1782 1783 |
# File 'io_t_events/cfn_alarm_model.rb', line 1781 def comparison_operator @comparison_operator end |
#input_property ⇒ String (readonly)
The value on the left side of the comparison operator.
You can specify an AWS IoT Events input attribute as an input property.
1788 1789 1790 |
# File 'io_t_events/cfn_alarm_model.rb', line 1788 def input_property @input_property end |
#threshold ⇒ String (readonly)
The value on the right side of the comparison operator.
You can enter a number or specify an AWS IoT Events input attribute.
1795 1796 1797 |
# File 'io_t_events/cfn_alarm_model.rb', line 1795 def threshold @threshold end |
Class Method Details
.jsii_properties ⇒ Object
1797 1798 1799 1800 1801 1802 1803 |
# File 'io_t_events/cfn_alarm_model.rb', line 1797 def self.jsii_properties { :comparison_operator => "comparisonOperator", :input_property => "inputProperty", :threshold => "threshold", } end |
Instance Method Details
#to_jsii ⇒ Object
1805 1806 1807 1808 1809 1810 1811 1812 1813 |
# File 'io_t_events/cfn_alarm_model.rb', line 1805 def to_jsii result = {} result.merge!({ "comparisonOperator" => @comparison_operator, "inputProperty" => @input_property, "threshold" => @threshold, }) result.compact end |