Module: AWSCDK::Logs::ILogSubscriptionDestination
- Included in:
- CrossAccountDestination, AWSCDK::LogsDestinations::FirehoseDestination, AWSCDK::LogsDestinations::KinesisDestination, AWSCDK::LogsDestinations::LambdaDestination
- Defined in:
- logs/i_log_subscription_destination.rb
Overview
Interface for classes that can be the destination of 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.
Class Method Details
.jsii_overridable_methods ⇒ Object
25 26 27 28 29 |
# File 'logs/i_log_subscription_destination.rb', line 25 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.
19 20 21 22 23 |
# File 'logs/i_log_subscription_destination.rb', line 19 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 |