Class LambdaIntegration
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigateway.Integration
software.amazon.awscdk.services.apigateway.AwsIntegration
software.amazon.awscdk.services.apigateway.LambdaIntegration
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.994Z")
@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/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionLambdaIntegration
(IFunction handler) LambdaIntegration
(IFunction handler, LambdaIntegrationOptions options) protected
LambdaIntegration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
LambdaIntegration
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionCan 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
- Parameters:
handler
- This parameter is required.
-
-
Method Details
-
bind
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 classAwsIntegration
- Parameters:
method
- This parameter is required.
-