Class: AWSCDK::LogsDestinations::FirehoseDestination
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::LogsDestinations::FirehoseDestination
- Includes:
- AWSCDK::Logs::ILogSubscriptionDestination
- Defined in:
- logs_destinations/firehose_destination.rb
Overview
Use a Data Firehose delivery stream as the destination for a log subscription.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(scope, _source_log_group) ⇒ AWSCDK::Logs::LogSubscriptionDestinationConfig
Return the properties required to send subscription events to this destination.
-
#initialize(stream, props = nil) ⇒ FirehoseDestination
constructor
A new instance of FirehoseDestination.
Constructor Details
#initialize(stream, props = nil) ⇒ FirehoseDestination
Returns a new instance of FirehoseDestination.
11 12 13 14 15 16 |
# File 'logs_destinations/firehose_destination.rb', line 11 def initialize(stream, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::LogsDestinations::FirehoseDestinationProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(stream, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLklEZWxpdmVyeVN0cmVhbSJ9")), "stream") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9nc19kZXN0aW5hdGlvbnMuRmlyZWhvc2VEZXN0aW5hdGlvblByb3BzIn0=")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(stream, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 |
# File 'logs_destinations/firehose_destination.rb', line 18 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(scope, _source_log_group) ⇒ AWSCDK::Logs::LogSubscriptionDestinationConfig
Return the properties required to send subscription events to this destination.
If necessary, the destination can use the properties of the SubscriptionFilter object itself to configure its permissions to allow the subscription to write to it.
The destination may reconfigure its own permissions in response to this function call.
36 37 38 39 40 |
# File 'logs_destinations/firehose_destination.rb', line 36 def bind(scope, _source_log_group) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(_source_log_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19sb2dzLklMb2dHcm91cFJlZiJ9")), "_sourceLogGroup") jsii_call_method("bind", [scope, _source_log_group]) end |