# HttpServiceDiscoveryIntegration

The Service Discovery integration resource for HTTP API.

Extends: HttpRouteIntegration › HttpServiceDiscoveryIntegration

- Source: [`aws-apigatewayv2-integrations/lib/http/service-discovery.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-apigatewayv2-integrations/lib/http/service-discovery.ts#L17)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

```ts
import * as servicediscovery from 'aws-cdk-lib/aws-servicediscovery';
import { HttpServiceDiscoveryIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';

const vpc = new ec2.Vpc(this, 'VPC');
const vpcLink = new apigwv2.VpcLink(this, 'VpcLink', { vpc });
const namespace = new servicediscovery.PrivateDnsNamespace(this, 'Namespace', {
  name: 'boobar.com',
  vpc,
});
const service = namespace.createService('Service');

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

## Initializer

```ts
new HttpServiceDiscoveryIntegration(id: string, service: IServiceRef, props?: HttpServiceDiscoveryIntegrationProps)
```

## Methods

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