Class HttpLambdaIntegration
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegration
software.amazon.awscdk.aws_apigatewayv2_integrations.HttpLambdaIntegration
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:24:52.009Z")
@Stability(Stable)
public class HttpLambdaIntegration
extends HttpRouteIntegration
The Lambda Proxy integration resource for HTTP API.
Example:
import software.amazon.awscdk.aws_apigatewayv2_integrations.HttpLambdaIntegration; Function booksDefaultFn; HttpLambdaIntegration booksIntegration = new HttpLambdaIntegration("BooksIntegration", booksDefaultFn); HttpApi httpApi = new HttpApi(this, "HttpApi"); httpApi.addRoutes(AddRoutesOptions.builder() .path("/books") .methods(List.of(HttpMethod.GET)) .integration(booksIntegration) .build());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionHttpLambdaIntegration
(String id, IFunction handler) HttpLambdaIntegration
(String id, IFunction handler, HttpLambdaIntegrationProps props) protected
HttpLambdaIntegration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HttpLambdaIntegration
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind
(HttpRouteIntegrationBindOptions _options) Bind this integration to the route.protected void
Complete the binding of the integration to the route.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
-
HttpLambdaIntegration
protected HttpLambdaIntegration(software.amazon.jsii.JsiiObjectRef objRef) -
HttpLambdaIntegration
protected HttpLambdaIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
HttpLambdaIntegration
@Stability(Stable) public HttpLambdaIntegration(@NotNull String id, @NotNull IFunction handler, @Nullable HttpLambdaIntegrationProps props) - Parameters:
id
- id of the underlying integration construct. This parameter is required.handler
- the Lambda handler to integrate with. This parameter is required.props
- properties to configure the integration.
-
HttpLambdaIntegration
- Parameters:
id
- id of the underlying integration construct. This parameter is required.handler
- the Lambda handler to integrate with. This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public HttpRouteIntegrationConfig bind(@NotNull HttpRouteIntegrationBindOptions _options) Bind this integration to the route.- Specified by:
bind
in classHttpRouteIntegration
- Parameters:
_options
- This parameter is required.
-
completeBind
Complete the binding of the integration to the route.In some cases, there is some additional work to do, such as adding permissions for the API to access the target. This work is necessary whether the integration has just been created for this route or it is an existing one, previously created for other routes. In most cases, however, concrete implementations do not need to override this method.
- Overrides:
completeBind
in classHttpRouteIntegration
- Parameters:
options
- This parameter is required.
-