Class: AWSCDK::IoTEvents::CfnDetectorModel::TransitionEventProperty

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

Overview

Specifies the actions performed and the next state entered when a condition evaluates to TRUE.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(condition:, event_name:, next_state:, actions: nil) ⇒ TransitionEventProperty

Returns a new instance of TransitionEventProperty.

Parameters:



2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
# File 'io_t_events/cfn_detector_model.rb', line 2085

def initialize(condition:, event_name:, next_state:, actions: nil)
  @condition = condition
  Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "condition")
  @event_name = event_name
  Jsii::Type.check_type(@event_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventName")
  @next_state = next_state
  Jsii::Type.check_type(@next_state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nextState")
  @actions = actions
  Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90ZXZlbnRzLkNmbkRldGVjdG9yTW9kZWwuQWN0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "actions") unless @actions.nil?
end

Instance Attribute Details

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

The actions to be performed.



2117
2118
2119
# File 'io_t_events/cfn_detector_model.rb', line 2117

def actions
  @actions
end

#conditionString (readonly)

Required.

A Boolean expression that when TRUE causes the actions to be performed and the next_state to be entered.



2102
2103
2104
# File 'io_t_events/cfn_detector_model.rb', line 2102

def condition
  @condition
end

#event_nameString (readonly)

The name of the transition event.



2107
2108
2109
# File 'io_t_events/cfn_detector_model.rb', line 2107

def event_name
  @event_name
end

#next_stateString (readonly)

The next state to enter.



2112
2113
2114
# File 'io_t_events/cfn_detector_model.rb', line 2112

def next_state
  @next_state
end

Class Method Details

.jsii_propertiesObject



2119
2120
2121
2122
2123
2124
2125
2126
# File 'io_t_events/cfn_detector_model.rb', line 2119

def self.jsii_properties
  {
    :condition => "condition",
    :event_name => "eventName",
    :next_state => "nextState",
    :actions => "actions",
  }
end

Instance Method Details

#to_jsiiObject



2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
# File 'io_t_events/cfn_detector_model.rb', line 2128

def to_jsii
  result = {}
  result.merge!({
    "condition" => @condition,
    "eventName" => @event_name,
    "nextState" => @next_state,
    "actions" => @actions,
  })
  result.compact
end