# HttpNlbIntegration

The Network Load Balancer integration resource for HTTP API.

Extends: HttpRouteIntegration › HttpNlbIntegration

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

## Example

```ts
import { HttpNlbIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';

const vpc = new ec2.Vpc(this, 'VPC');
const lb = new elbv2.NetworkLoadBalancer(this, 'lb', { vpc });
const listener = lb.addListener('listener', { port: 80 });
listener.addTargets('target', {
  port: 80,
});

const httpEndpoint = new apigwv2.HttpApi(this, 'HttpProxyPrivateApi', {
  defaultIntegration: new HttpNlbIntegration('DefaultIntegration', listener),
});
```

## Initializer

```ts
new HttpNlbIntegration(id: string, listener: INetworkListener, props?: HttpNlbIntegrationProps)
```

## Methods

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