Class: AWSCDK::IoTEvents::CfnDetectorModel::ResetTimerProperty

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

Overview

Information required to reset the timer.

The timer is reset to the previously evaluated result of the duration. The duration expression isn't reevaluated when you reset the timer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timer_name:) ⇒ ResetTimerProperty

Returns a new instance of ResetTimerProperty.

Parameters:

  • timer_name (String)

    The name of the timer to reset.



1788
1789
1790
1791
# File 'io_t_events/cfn_detector_model.rb', line 1788

def initialize(timer_name:)
  @timer_name = timer_name
  Jsii::Type.check_type(@timer_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timerName")
end

Instance Attribute Details

#timer_nameString (readonly)

The name of the timer to reset.



1797
1798
1799
# File 'io_t_events/cfn_detector_model.rb', line 1797

def timer_name
  @timer_name
end

Class Method Details

.jsii_propertiesObject



1799
1800
1801
1802
1803
# File 'io_t_events/cfn_detector_model.rb', line 1799

def self.jsii_properties
  {
    :timer_name => "timerName",
  }
end

Instance Method Details

#to_jsiiObject



1805
1806
1807
1808
1809
1810
1811
# File 'io_t_events/cfn_detector_model.rb', line 1805

def to_jsii
  result = {}
  result.merge!({
    "timerName" => @timer_name,
  })
  result.compact
end