# HttpLambdaIntegration

The Lambda Proxy integration resource for HTTP API.

Extends: HttpRouteIntegration › HttpLambdaIntegration

- Source: [`aws-apigatewayv2-integrations/lib/http/lambda.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-apigatewayv2-integrations/lib/http/lambda.ts#L59)
- Type last changed: v2.114.0 · 5 Dec 2023

## Example

```ts
import { HttpUrlIntegration, HttpLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';

const getBooksIntegration = new HttpUrlIntegration('GetBooksIntegration', 'https://get-books-proxy.example.com');

declare const bookStoreDefaultFn: lambda.Function;
const bookStoreDefaultIntegration = new HttpLambdaIntegration('BooksIntegration', bookStoreDefaultFn);

const httpApi = new apigwv2.HttpApi(this, 'HttpApi');

httpApi.addRoutes({
  path: '/books',
  methods: [ apigwv2.HttpMethod.GET ],
  integration: getBooksIntegration,
});
httpApi.addRoutes({
  path: '/books',
  methods: [ apigwv2.HttpMethod.ANY ],
  integration: bookStoreDefaultIntegration,
});
```

## Initializer

```ts
new HttpLambdaIntegration(id: string, handler: IFunction, props?: HttpLambdaIntegrationProps)
```

## Methods

- `bind(_options: HttpRouteIntegrationBindOptions): HttpRouteIntegrationConfig` — Bind this integration to the route.
