Module: AWSCDK::Lambda::IEventSource
- Included in:
- AWSCDK::LambdaEventSources::APIEventSource, AWSCDK::LambdaEventSources::S3EventSource, AWSCDK::LambdaEventSources::S3EventSourceV2, AWSCDK::LambdaEventSources::SNSEventSource, AWSCDK::LambdaEventSources::SQSEventSource, AWSCDK::LambdaEventSources::StreamEventSource
- Defined in:
- lambda/i_event_source.rb
Overview
An abstract class which represents an AWS Lambda event source.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(target) ⇒ void
Called by
lambda.addEventSourceto allow the event source to bind to this function.
Class Method Details
.jsii_overridable_methods ⇒ Object
16 17 18 19 20 |
# File 'lambda/i_event_source.rb', line 16 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(target) ⇒ void
This method returns an undefined value.
Called by lambda.addEventSource to allow the event source to bind to this function.
11 12 13 14 |
# File 'lambda/i_event_source.rb', line 11 def bind(target) Jsii::Type.check_type(target, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLklGdW5jdGlvbiJ9")), "target") jsii_call_method("bind", [target]) end |