Class: AWSCDK::IoTEvents::CfnAlarmModel::FirehoseProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delivery_stream_name:, payload: nil, separator: nil) ⇒ FirehoseProperty

Returns a new instance of FirehoseProperty.

Parameters:

  • delivery_stream_name (String)

    The name of the Kinesis Data Firehose delivery stream where the data is written.

  • payload (AWSCDK::IResolvable, AWSCDK::IoTEvents::CfnAlarmModel::PayloadProperty, nil) (defaults to: nil)

    You can configure the action payload when you send a message to an Amazon Data Firehose delivery stream.

  • separator (String, nil) (defaults to: nil)

    A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream.



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_nameString (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

#payloadAWSCDK::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

#separatorString? (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_propertiesObject



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_jsiiObject



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