AzureCosmosDBEmulatorResource

Handle
📦 Aspire.Hosting.Azure.CosmosDB v17.0.0
interface AzureCosmosDBEmulatorResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport {
withDataExplorer(port?: number): AzureCosmosDBEmulatorResource;
withDataVolume(name?: string): AzureCosmosDBEmulatorResource;
withGatewayPort(port: number): AzureCosmosDBEmulatorResource;
withPartitionCount(count: number): AzureCosmosDBEmulatorResource;
}

Methods

methodwithDataExplorerbuilder
Configures the Azure Cosmos DB Linux-based (vNext) emulator to expose the Data Explorer endpoint.
withDataExplorer(port?: number): AzureCosmosDBEmulatorResource
portnumberoptionalOptional host port to bind the Data Explorer to.
AzureCosmosDBEmulatorResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to an Azure Cosmos DB emulator resource.
withDataVolume(name?: string): AzureCosmosDBEmulatorResource
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
AzureCosmosDBEmulatorResource
methodwithGatewayPortbuilder
Configures the gateway port for the Azure Cosmos DB emulator.
withGatewayPort(port: number): AzureCosmosDBEmulatorResource
portnumberHost port to bind to the emulator gateway port.
AzureCosmosDBEmulatorResource
methodwithPartitionCountbuilder
Configures the partition count for the Azure Cosmos DB emulator.
withPartitionCount(count: number): AzureCosmosDBEmulatorResource
countnumberDesired partition count.
AzureCosmosDBEmulatorResource