Class: AWSCDK::IoTEvents::CfnDetectorModel::DetectorModelDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnDetectorModel::DetectorModelDefinitionProperty
- Defined in:
- io_t_events/cfn_detector_model.rb
Overview
Information that defines how a detector operates.
Instance Attribute Summary collapse
-
#initial_state_name ⇒ String
readonly
The state that is entered at the creation of each detector (instance).
-
#states ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoTEvents::CfnDetectorModel::StateProperty>
readonly
Information about the states of the detector.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(initial_state_name:, states:) ⇒ DetectorModelDefinitionProperty
constructor
A new instance of DetectorModelDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(initial_state_name:, states:) ⇒ DetectorModelDefinitionProperty
Returns a new instance of DetectorModelDefinitionProperty.
1015 1016 1017 1018 1019 1020 |
# File 'io_t_events/cfn_detector_model.rb', line 1015 def initialize(initial_state_name:, states:) @initial_state_name = initial_state_name Jsii::Type.check_type(@initial_state_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "initialStateName") @states = states Jsii::Type.check_type(@states, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90ZXZlbnRzLkNmbkRldGVjdG9yTW9kZWwuU3RhdGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "states") end |
Instance Attribute Details
#initial_state_name ⇒ String (readonly)
The state that is entered at the creation of each detector (instance).
1026 1027 1028 |
# File 'io_t_events/cfn_detector_model.rb', line 1026 def initial_state_name @initial_state_name end |
#states ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::IoTEvents::CfnDetectorModel::StateProperty> (readonly)
Information about the states of the detector.
1031 1032 1033 |
# File 'io_t_events/cfn_detector_model.rb', line 1031 def states @states end |
Class Method Details
.jsii_properties ⇒ Object
1033 1034 1035 1036 1037 1038 |
# File 'io_t_events/cfn_detector_model.rb', line 1033 def self.jsii_properties { :initial_state_name => "initialStateName", :states => "states", } end |
Instance Method Details
#to_jsii ⇒ Object
1040 1041 1042 1043 1044 1045 1046 1047 |
# File 'io_t_events/cfn_detector_model.rb', line 1040 def to_jsii result = {} result.merge!({ "initialStateName" => @initial_state_name, "states" => @states, }) result.compact end |