Class: AWSCDK::IoTEvents::CfnAlarmModel::AlarmRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnAlarmModel::AlarmRuleProperty
- Defined in:
- io_t_events/cfn_alarm_model.rb
Overview
Defines when your alarm is invoked.
Instance Attribute Summary collapse
-
#simple_rule ⇒ AWSCDK::IResolvable, ...
readonly
A rule that compares an input property value to a threshold value with a comparison operator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(simple_rule: nil) ⇒ AlarmRuleProperty
constructor
A new instance of AlarmRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(simple_rule: nil) ⇒ AlarmRuleProperty
Returns a new instance of AlarmRuleProperty.
918 919 920 921 |
# File 'io_t_events/cfn_alarm_model.rb', line 918 def initialize(simple_rule: nil) @simple_rule = simple_rule.is_a?(Hash) ? ::AWSCDK::IoTEvents::CfnAlarmModel::SimpleRuleProperty.new(**simple_rule.transform_keys(&:to_sym)) : simple_rule Jsii::Type.check_type(@simple_rule, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RldmVudHMuQ2ZuQWxhcm1Nb2RlbC5TaW1wbGVSdWxlUHJvcGVydHkifV19fQ==")), "simpleRule") unless @simple_rule.nil? end |
Instance Attribute Details
#simple_rule ⇒ AWSCDK::IResolvable, ... (readonly)
A rule that compares an input property value to a threshold value with a comparison operator.
927 928 929 |
# File 'io_t_events/cfn_alarm_model.rb', line 927 def simple_rule @simple_rule end |
Class Method Details
.jsii_properties ⇒ Object
929 930 931 932 933 |
# File 'io_t_events/cfn_alarm_model.rb', line 929 def self.jsii_properties { :simple_rule => "simpleRule", } end |
Instance Method Details
#to_jsii ⇒ Object
935 936 937 938 939 940 941 |
# File 'io_t_events/cfn_alarm_model.rb', line 935 def to_jsii result = {} result.merge!({ "simpleRule" => @simple_rule, }) result.compact end |