# HttpServiceDiscoveryIntegrationProps

Properties to initialize `HttpServiceDiscoveryIntegration`.

Extends: HttpServiceDiscoveryIntegrationProps
Extends: HttpPrivateIntegrationOptions
Used as props by: HttpServiceDiscoveryIntegration

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

## 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,
  }),
});
```

## Properties

- `method`: [HttpMethod](/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.HttpMethod.html) = HttpMethod.ANY — The HTTP method that must be used to invoke the underlying HTTP proxy.

- `parameterMapping`: [ParameterMapping](/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.ParameterMapping.html) — Specifies how to transform HTTP requests before sending them to the backend.

  **Default:** undefined requests are sent to the backend unmodified

- `secureServerName`: string — Specifies the server name to verified by HTTPS when calling the backend integration.

  **Default:** undefined private integration traffic will use HTTP protocol

- `timeout`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Duration.seconds(29) — The maximum amount of time an integration will run before it returns without a response.

  Must be between 50 milliseconds and 29 seconds.

- `vpcLink`: [IVpcLink](/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.IVpcLink.html) — The vpc link to be used for the private integration.

  **Default:** a new VpcLink is created
