# LambdaIntegration

Integrates an AWS Lambda function to an API Gateway method.

Extends: Integration › AwsIntegration › LambdaIntegration

- Source: [`aws-apigateway/lib/integrations/lambda.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-apigateway/lib/integrations/lambda.ts#L57)

## Example

```ts
   declare const resource: apigateway.Resource;
   declare const handler: lambda.Function;
   resource.addMethod('GET', new apigateway.LambdaIntegration(handler));
```

## Initializer

```ts
new LambdaIntegration(handler: IFunction, options?: LambdaIntegrationOptions)
```

## Methods

- `bind(method: Method): IntegrationConfig` — Can be overridden by subclasses to allow the integration to interact with the method being integrated, access the REST API object, method ARNs, etc.
