@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-17T17:31:19.670Z") @Stability(value=Experimental) public class HttpLambdaIntegration extends HttpRouteIntegration
Example:
import software.amazon.awscdk.services.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());
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpLambdaIntegration.Builder
(experimental) A fluent builder for
HttpLambdaIntegration. |
| Modifier | Constructor and Description |
|---|---|
protected |
HttpLambdaIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpLambdaIntegration(software.amazon.jsii.JsiiObjectRef objRef) |
|
HttpLambdaIntegration(String id,
IFunction handler) |
|
HttpLambdaIntegration(String id,
IFunction handler,
HttpLambdaIntegrationProps props) |
| Modifier and Type | Method and Description |
|---|---|
HttpRouteIntegrationConfig |
bind(HttpRouteIntegrationBindOptions _)
(experimental) Bind this integration to the route.
|
protected void |
completeBind(HttpRouteIntegrationBindOptions options)
(experimental) Complete the binding of the integration to the route.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected HttpLambdaIntegration(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpLambdaIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public HttpLambdaIntegration(@NotNull
String id,
@NotNull
IFunction handler,
@Nullable
HttpLambdaIntegrationProps props)
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.@Stability(value=Experimental) @NotNull public HttpRouteIntegrationConfig bind(@NotNull HttpRouteIntegrationBindOptions _)
bind in class HttpRouteIntegration_ - This parameter is required.@Stability(value=Experimental)
protected void completeBind(@NotNull
HttpRouteIntegrationBindOptions options)
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.
completeBind in class HttpRouteIntegrationoptions - This parameter is required.Copyright © 2022. All rights reserved.