# addAWSAPIGatewayEmulator

- 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 IDistributedApplicationBuilder {
  // ... omitted for brevity
  addAWSAPIGatewayEmulator(
    name: string,
    apiGatewayType: APIGatewayType,
    options?: APIGatewayEmulatorOptions): APIGatewayEmulatorResource
}
```

## Parameters

- `name` (`string`)
- `apiGatewayType` ([APIGatewayType](/reference/api/typescript/aspire.hosting.aws/apigatewaytype.md))
- `options` ([APIGatewayEmulatorOptions](/reference/api/typescript/aspire.hosting.aws/apigatewayemulatoroptions.md)) `optional`

## Returns

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

## Applies to

- [IDistributedApplicationBuilder](/reference/api/typescript/aspire.hosting.aws/idistributedapplicationbuilder.md)
