Class: AWSCDK::IoTEvents::CfnAlarmModel::AcknowledgeFlowProperty

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

Overview

Specifies whether to get notified for alarm state changes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil) ⇒ AcknowledgeFlowProperty

Returns a new instance of AcknowledgeFlowProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    The value must be TRUE or FALSE .



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

#enabledBoolean, ... (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_propertiesObject



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_jsiiObject



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