# withAPIGatewayLambdaReference

- Module: [Aspire.Hosting.AWS](/reference/api/typescript/aspire.hosting.aws.md)
- Version: `13.7.2`
- Kind: `method`
- Source: [GitHub](https://github.com/aws/integrations-on-dotnet-aspire-for-aws)

## Definition

```typescript
interface APIGatewayEmulatorResource {
  // ... omitted for brevity
  withAPIGatewayLambdaReference(
    lambda: LambdaProjectResource,
    httpMethod: Method,
    path: string): APIGatewayEmulatorResource
}
```

## Parameters

- `lambda` ([LambdaProjectResource](/reference/api/typescript/aspire.hosting.aws/lambdaprojectresource.md))
- `httpMethod` ([Method](/reference/api/typescript/aspire.hosting.aws/method.md))
- `path` (`string`)

## Returns

[APIGatewayEmulatorResource](/reference/api/typescript/aspire.hosting.aws/apigatewayemulatorresource.md) `builder`

## Applies to

- [APIGatewayEmulatorResource](/reference/api/typescript/aspire.hosting.aws/apigatewayemulatorresource.md)
