Class: AWSCDK::IoTEvents::CfnAlarmModel::AlarmRuleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_events/cfn_alarm_model.rb

Overview

Defines when your alarm is invoked.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(simple_rule: nil) ⇒ AlarmRuleProperty

Returns a new instance of AlarmRuleProperty.

Parameters:



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_ruleAWSCDK::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_propertiesObject



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_jsiiObject



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