# APIGatewayEmulatorResource.withAPIGatewayLambdaReference

- Module: [Aspire.Hosting.AWS](/reference/api/typescript/aspire.hosting.aws.md)
- Defined on: [APIGatewayEmulatorResource](/reference/api/typescript/aspire.hosting.aws/apigatewayemulatorresource.md)
- Version: `13.7.2`
- Kind: `method`

## Definition

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

## Signature

```typescript
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`

## Defined on

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