# APIGatewayEmulatorResource

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

## Definition

```typescript
interface APIGatewayEmulatorResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  withAPIGatewayLambdaReference(
      lambda: LambdaProjectResource,
      httpMethod: Method,
      path: string): APIGatewayEmulatorResource;
}
```

## Methods

- [withAPIGatewayLambdaReference](/reference/api/typescript/aspire.hosting.aws/apigatewayemulatorresource/withapigatewaylambdareference.md) -- `method`
    ```typescript
  withAPIGatewayLambdaReference(lambda: LambdaProjectResource, httpMethod: Method, path: string): APIGatewayEmulatorResource
  ```
