Class LambdaIntegration

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:56.786Z") @Stability(Stable) public class LambdaIntegration extends AwsIntegration
Integrates an AWS Lambda function to an API Gateway method.

Example:

 Resource resource;
 Function handler;
 resource.addMethod("GET", new LambdaIntegration(handler));
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for LambdaIntegration.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
     
     
    protected
    LambdaIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    LambdaIntegration(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(Method method)
    Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • LambdaIntegration

      protected LambdaIntegration(software.amazon.jsii.JsiiObjectRef objRef)
    • LambdaIntegration

      protected LambdaIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • LambdaIntegration

      @Stability(Stable) public LambdaIntegration(@NotNull IFunction handler, @Nullable LambdaIntegrationOptions options)
      Parameters:
      handler - This parameter is required.
      options -
    • LambdaIntegration

      @Stability(Stable) public LambdaIntegration(@NotNull IFunction handler)
      Parameters:
      handler - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public IntegrationConfig bind(@NotNull Method method)
      Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.

      Overrides:
      bind in class AwsIntegration
      Parameters:
      method - This parameter is required.