Class: AWSCDK::IoTEvents::CfnAlarmModel::AcknowledgeFlowProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnAlarmModel::AcknowledgeFlowProperty
- Defined in:
- io_t_events/cfn_alarm_model.rb
Overview
Specifies whether to get notified for alarm state changes.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean, ...
readonly
The value must be
TRUEorFALSE.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil) ⇒ AcknowledgeFlowProperty
constructor
A new instance of AcknowledgeFlowProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil) ⇒ AcknowledgeFlowProperty
Returns a new instance of AcknowledgeFlowProperty.
631 632 633 634 |
# File 'io_t_events/cfn_alarm_model.rb', line 631 def initialize(enabled: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean, ... (readonly)
The value must be TRUE or FALSE .
If TRUE , you receive a notification when the alarm state changes. You must choose to acknowledge the notification before the alarm state can return to NORMAL . If FALSE , you won't receive notifications. The alarm automatically changes to the NORMAL state when the input property value returns to the specified range.
642 643 644 |
# File 'io_t_events/cfn_alarm_model.rb', line 642 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
644 645 646 647 648 |
# File 'io_t_events/cfn_alarm_model.rb', line 644 def self.jsii_properties { :enabled => "enabled", } end |
Instance Method Details
#to_jsii ⇒ Object
650 651 652 653 654 655 656 |
# File 'io_t_events/cfn_alarm_model.rb', line 650 def to_jsii result = {} result.merge!({ "enabled" => @enabled, }) result.compact end |