Class: AWSCDK::IoTEvents::CfnDetectorModel::IotEventsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnDetectorModel::IotEventsProperty
- Defined in:
- io_t_events/cfn_detector_model.rb
Overview
Sends an AWS IoT Events input, passing in information about the detector model instance and the event that triggered the action.
Instance Attribute Summary collapse
-
#input_name ⇒ String
readonly
The name of the AWS IoT Events input where the data is sent.
-
#payload ⇒ AWSCDK::IResolvable, ...
readonly
You can configure the action payload when you send a message to an AWS IoT Events input.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(input_name:, payload: nil) ⇒ IotEventsProperty
constructor
A new instance of IotEventsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(input_name:, payload: nil) ⇒ IotEventsProperty
Returns a new instance of IotEventsProperty.
1408 1409 1410 1411 1412 1413 |
# File 'io_t_events/cfn_detector_model.rb', line 1408 def initialize(input_name:, payload: nil) @input_name = input_name Jsii::Type.check_type(@input_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputName") @payload = payload.is_a?(Hash) ? ::AWSCDK::IoTEvents::CfnDetectorModel::PayloadProperty.new(**payload.transform_keys(&:to_sym)) : payload Jsii::Type.check_type(@payload, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RldmVudHMuQ2ZuRGV0ZWN0b3JNb2RlbC5QYXlsb2FkUHJvcGVydHkifV19fQ==")), "payload") unless @payload.nil? end |
Instance Attribute Details
#input_name ⇒ String (readonly)
The name of the AWS IoT Events input where the data is sent.
1419 1420 1421 |
# File 'io_t_events/cfn_detector_model.rb', line 1419 def input_name @input_name end |
#payload ⇒ AWSCDK::IResolvable, ... (readonly)
You can configure the action payload when you send a message to an AWS IoT Events input.
1424 1425 1426 |
# File 'io_t_events/cfn_detector_model.rb', line 1424 def payload @payload end |
Class Method Details
.jsii_properties ⇒ Object
1426 1427 1428 1429 1430 1431 |
# File 'io_t_events/cfn_detector_model.rb', line 1426 def self.jsii_properties { :input_name => "inputName", :payload => "payload", } end |
Instance Method Details
#to_jsii ⇒ Object
1433 1434 1435 1436 1437 1438 1439 1440 |
# File 'io_t_events/cfn_detector_model.rb', line 1433 def to_jsii result = {} result.merge!({ "inputName" => @input_name, "payload" => @payload, }) result.compact end |