# AzureCosmosDBEmulatorResource

- Module: [Aspire.Hosting.Azure.CosmosDB](/reference/api/go/aspire.hosting.azure.cosmosdb.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

## Definition

```go
type AzureCosmosDBEmulatorResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Methods

- [WithDataExplorer](/reference/api/go/aspire.hosting.azure.cosmosdb/azurecosmosdbemulatorresource/withdataexplorer.md) -- `method` -- Configures the Azure Cosmos DB Linux-based (vNext) emulator to expose the Data Explorer endpoint.
  ```go
  WithDataExplorer(options ...*WithDataExplorerOptions) AzureCosmosDBEmulatorResource
  ```
- [WithDataVolume](/reference/api/go/aspire.hosting.azure.cosmosdb/azurecosmosdbemulatorresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to an Azure Cosmos DB emulator resource.
  ```go
  WithDataVolume(options ...*WithDataVolumeOptions) AzureCosmosDBEmulatorResource
  ```
- [WithGatewayPort](/reference/api/go/aspire.hosting.azure.cosmosdb/azurecosmosdbemulatorresource/withgatewayport.md) -- `method` -- Configures the gateway port for the Azure Cosmos DB emulator.
  ```go
  WithGatewayPort(port *float64) AzureCosmosDBEmulatorResource
  ```
- [WithPartitionCount](/reference/api/go/aspire.hosting.azure.cosmosdb/azurecosmosdbemulatorresource/withpartitioncount.md) -- `method` -- Configures the partition count for the Azure Cosmos DB emulator.
  ```go
  WithPartitionCount(count float64) AzureCosmosDBEmulatorResource
  ```
