Class: AWSCDK::SNSSubscriptions::FirehoseSubscription

Inherits:
Jsii::Object
  • Object
show all
Includes:
AWSCDK::SNS::ITopicSubscription
Defined in:
sns_subscriptions/firehose_subscription.rb

Overview

Use an Amazon Data Firehose delivery stream as a subscription target.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delivery_stream, props = nil) ⇒ FirehoseSubscription

Returns a new instance of FirehoseSubscription.

Parameters:



13
14
15
16
17
18
# File 'sns_subscriptions/firehose_subscription.rb', line 13

def initialize(delivery_stream, props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::SNSSubscriptions::FirehoseSubscriptionProps.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("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc25zX3N1YnNjcmlwdGlvbnMuRmlyZWhvc2VTdWJzY3JpcHRpb25Qcm9wcyJ9")), "props") unless props.nil?
  Jsii::Object.instance_method(:initialize).bind(self).call(delivery_stream, props)
end

Class Method Details

.jsii_overridable_methodsObject



20
21
22
23
24
# File 'sns_subscriptions/firehose_subscription.rb', line 20

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(topic) ⇒ AWSCDK::SNS::TopicSubscriptionConfig

Returns a configuration for a Lambda function to subscribe to an SNS topic.



30
31
32
33
# File 'sns_subscriptions/firehose_subscription.rb', line 30

def bind(topic)
  Jsii::Type.check_type(topic, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc25zLklUb3BpYyJ9")), "topic")
  jsii_call_method("bind", [topic])
end