Module: AWSCDK::Logs::ILogSubscriptionDestination

Overview

Interface for classes that can be the destination of a log Subscription.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



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.

Parameters:

Returns:



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