All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.lambda.IEventSource Maven / Gradle / Ivy

package software.amazon.awscdk.services.lambda;

/**
 * An abstract class which represents an AWS Lambda event source.
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.13.3 (build 3624e0f)", date = "2019-07-04T19:32:56.849Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface IEventSource extends software.amazon.jsii.JsiiSerializable {
    /**
     * Called by `lambda.addEventSource` to allow the event source to bind to this function.
     * 
     * @param target That lambda function to bind to.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    void bind(final software.amazon.awscdk.services.lambda.IFunction target);

    /**
     * A proxy class which represents a concrete javascript instance of this type.
     */
    final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.lambda.IEventSource {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
            super(mode);
        }

        /**
         * Called by `lambda.addEventSource` to allow the event source to bind to this function.
         * 
         * @param target That lambda function to bind to.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @Override
        public void bind(final software.amazon.awscdk.services.lambda.IFunction target) {
            this.jsiiCall("bind", Void.class, new Object[] { java.util.Objects.requireNonNull(target, "target is required") });
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy