Class: AWSCDK::IoTEvents::CfnDetectorModel::OnEnterProperty

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

Overview

When entering this state, perform these actions if the condition is TRUE.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(events: nil) ⇒ OnEnterProperty

Returns a new instance of OnEnterProperty.

Parameters:



1630
1631
1632
1633
# File 'io_t_events/cfn_detector_model.rb', line 1630

def initialize(events: nil)
  @events = events
  Jsii::Type.check_type(@events, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90ZXZlbnRzLkNmbkRldGVjdG9yTW9kZWwuRXZlbnRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "events") unless @events.nil?
end

Instance Attribute Details

#eventsAWSCDK::IResolvable, ... (readonly)

Specifies the actions that are performed when the state is entered and the condition is TRUE .



1639
1640
1641
# File 'io_t_events/cfn_detector_model.rb', line 1639

def events
  @events
end

Class Method Details

.jsii_propertiesObject



1641
1642
1643
1644
1645
# File 'io_t_events/cfn_detector_model.rb', line 1641

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

Instance Method Details

#to_jsiiObject



1647
1648
1649
1650
1651
1652
1653
# File 'io_t_events/cfn_detector_model.rb', line 1647

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