Class: AWSCDK::EventsTargets::FirehoseDeliveryStream
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::EventsTargets::FirehoseDeliveryStream
- Includes:
- AWSCDK::Events::IRuleTarget
- Defined in:
- events_targets/firehose_delivery_stream.rb
Overview
Customize the Amazon Data Firehose Stream Event Target.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(_rule, _id = nil) ⇒ AWSCDK::Events::RuleTargetConfig
Returns a RuleTarget that can be used to trigger this Firehose Stream as a result from a Event Bridge event.
-
#initialize(delivery_stream, props = nil) ⇒ FirehoseDeliveryStream
constructor
A new instance of FirehoseDeliveryStream.
Constructor Details
#initialize(delivery_stream, props = nil) ⇒ FirehoseDeliveryStream
Returns a new instance of FirehoseDeliveryStream.
11 12 13 14 15 16 |
# File 'events_targets/firehose_delivery_stream.rb', line 11 def initialize(delivery_stream, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::EventsTargets::FirehoseDeliveryStreamProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(delivery_stream, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLklEZWxpdmVyeVN0cmVhbSJ9")), "deliveryStream") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZlbnRzX3RhcmdldHMuRmlyZWhvc2VEZWxpdmVyeVN0cmVhbVByb3BzIn0=")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(delivery_stream, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 |
# File 'events_targets/firehose_delivery_stream.rb', line 18 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(_rule, _id = nil) ⇒ AWSCDK::Events::RuleTargetConfig
Returns a RuleTarget that can be used to trigger this Firehose Stream as a result from a Event Bridge event.
29 30 31 32 33 |
# File 'events_targets/firehose_delivery_stream.rb', line 29 def bind(_rule, _id = nil) Jsii::Type.check_type(_rule, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19ldmVudHMuSVJ1bGVSZWYifQ==")), "_rule") Jsii::Type.check_type(_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "_id") unless _id.nil? jsii_call_method("bind", [_rule, _id]) end |