@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:02.119Z") @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 options)
(experimental) Bind this 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 options)
bind in class HttpRouteIntegrationoptions - This parameter is required.Copyright © 2022. All rights reserved.