Class: AWSCDK::IoTEvents::CfnAlarmModel::FirehoseProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTEvents::CfnAlarmModel::FirehoseProperty
- Defined in:
- io_t_events/cfn_alarm_model.rb
Overview
Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
Instance Attribute Summary collapse
-
#delivery_stream_name ⇒ String
readonly
The name of the Kinesis Data Firehose delivery stream where the data is written.
-
#payload ⇒ AWSCDK::IResolvable, ...
readonly
You can configure the action payload when you send a message to an Amazon Data Firehose delivery stream.
-
#separator ⇒ String?
readonly
A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(delivery_stream_name:, payload: nil, separator: nil) ⇒ FirehoseProperty
constructor
A new instance of FirehoseProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(delivery_stream_name:, payload: nil, separator: nil) ⇒ FirehoseProperty
Returns a new instance of FirehoseProperty.
1406 1407 1408 1409 1410 1411 1412 1413 |
# File 'io_t_events/cfn_alarm_model.rb', line 1406 def initialize(delivery_stream_name:, payload: nil, separator: nil) @delivery_stream_name = delivery_stream_name Jsii::Type.check_type(@delivery_stream_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deliveryStreamName") @payload = payload.is_a?(Hash) ? ::AWSCDK::IoTEvents::CfnAlarmModel::PayloadProperty.new(**payload.transform_keys(&:to_sym)) : payload Jsii::Type.check_type(@payload, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RldmVudHMuQ2ZuQWxhcm1Nb2RlbC5QYXlsb2FkUHJvcGVydHkifV19fQ==")), "payload") unless @payload.nil? @separator = separator Jsii::Type.check_type(@separator, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "separator") unless @separator.nil? end |
Instance Attribute Details
#delivery_stream_name ⇒ String (readonly)
The name of the Kinesis Data Firehose delivery stream where the data is written.
1419 1420 1421 |
# File 'io_t_events/cfn_alarm_model.rb', line 1419 def delivery_stream_name @delivery_stream_name end |
#payload ⇒ AWSCDK::IResolvable, ... (readonly)
You can configure the action payload when you send a message to an Amazon Data Firehose delivery stream.
1424 1425 1426 |
# File 'io_t_events/cfn_alarm_model.rb', line 1424 def payload @payload end |
#separator ⇒ String? (readonly)
A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream.
Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
1431 1432 1433 |
# File 'io_t_events/cfn_alarm_model.rb', line 1431 def separator @separator end |
Class Method Details
.jsii_properties ⇒ Object
1433 1434 1435 1436 1437 1438 1439 |
# File 'io_t_events/cfn_alarm_model.rb', line 1433 def self.jsii_properties { :delivery_stream_name => "deliveryStreamName", :payload => "payload", :separator => "separator", } end |
Instance Method Details
#to_jsii ⇒ Object
1441 1442 1443 1444 1445 1446 1447 1448 1449 |
# File 'io_t_events/cfn_alarm_model.rb', line 1441 def to_jsii result = {} result.merge!({ "deliveryStreamName" => @delivery_stream_name, "payload" => @payload, "separator" => @separator, }) result.compact end |