Class: AWSCDK::IoTEvents::CfnAlarmModel::SimpleRuleProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comparison_operator:, input_property:, threshold:) ⇒ SimpleRuleProperty

Returns a new instance of SimpleRuleProperty.

Parameters:

  • comparison_operator (String)

    The comparison operator.

  • input_property (String)

    The value on the left side of the comparison operator.

  • threshold (String)

    The value on the right side of the comparison operator.



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_operatorString (readonly)

The comparison operator.



1781
1782
1783
# File 'io_t_events/cfn_alarm_model.rb', line 1781

def comparison_operator
  @comparison_operator
end

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

#thresholdString (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_propertiesObject



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_jsiiObject



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