Class: AWSCDK::IoTEvents::CfnDetectorModel::EventProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnDetectorModel::EventProperty
- Defined in:
- io_t_events/cfn_detector_model.rb
Overview
Specifies the actions to be performed when the condition evaluates to TRUE.
Instance Attribute Summary collapse
-
#actions ⇒ AWSCDK::IResolvable, ...
readonly
The actions to be performed.
-
#condition ⇒ String?
readonly
Optional.
-
#event_name ⇒ String
readonly
The name of the event.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(event_name:, actions: nil, condition: nil) ⇒ EventProperty
constructor
A new instance of EventProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(event_name:, actions: nil, condition: nil) ⇒ EventProperty
Returns a new instance of EventProperty.
1299 1300 1301 1302 1303 1304 1305 1306 |
# File 'io_t_events/cfn_detector_model.rb', line 1299 def initialize(event_name:, actions: nil, condition: nil) @event_name = event_name Jsii::Type.check_type(@event_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventName") @actions = actions Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90ZXZlbnRzLkNmbkRldGVjdG9yTW9kZWwuQWN0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "actions") unless @actions.nil? @condition = condition Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "condition") unless @condition.nil? end |
Instance Attribute Details
#actions ⇒ AWSCDK::IResolvable, ... (readonly)
The actions to be performed.
1317 1318 1319 |
# File 'io_t_events/cfn_detector_model.rb', line 1317 def actions @actions end |
#condition ⇒ String? (readonly)
Optional.
The Boolean expression that, when TRUE, causes the actions to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).
1324 1325 1326 |
# File 'io_t_events/cfn_detector_model.rb', line 1324 def condition @condition end |
#event_name ⇒ String (readonly)
The name of the event.
1312 1313 1314 |
# File 'io_t_events/cfn_detector_model.rb', line 1312 def event_name @event_name end |
Class Method Details
.jsii_properties ⇒ Object
1326 1327 1328 1329 1330 1331 1332 |
# File 'io_t_events/cfn_detector_model.rb', line 1326 def self.jsii_properties { :event_name => "eventName", :actions => "actions", :condition => "condition", } end |
Instance Method Details
#to_jsii ⇒ Object
1334 1335 1336 1337 1338 1339 1340 1341 1342 |
# File 'io_t_events/cfn_detector_model.rb', line 1334 def to_jsii result = {} result.merge!({ "eventName" => @event_name, "actions" => @actions, "condition" => @condition, }) result.compact end |