Aspire.Hosting.Azure.CosmosDB
Official
📦 Aspire.Hosting.Azure.CosmosDBv13.6.012Functions
4Types
4 types and 0 members
Types
Functions
method
addAzureCosmosDBbuilderAdds an Azure Cosmos DB connection to the application model.
addAzureCosmosDB(name: string): AzureCosmosDBResourcemethod
addContainerbuilderAdds an Azure Cosmos DB container resource
addContainer(name: string, partitionKeyPaths: string | string[], containerName?: string): AzureCosmosDBContainerResourcemethod
addCosmosDatabasebuilderAdds a database to the associated Cosmos DB account resource.
addCosmosDatabase(name: string, databaseName?: string): AzureCosmosDBDatabaseResourcemethod
runAsClassicEmulatorbuilderConfigures the Azure Cosmos DB resource to run using the classic emulator
runAsClassicEmulator(configureContainer?: (obj: AzureCosmosDBEmulatorResource) => Promise<void>): AzureCosmosDBResourcemethod
runAsEmulatorbuilderConfigures the Azure Cosmos DB resource to run using the local Linux-based (vNext) emulator
runAsEmulator(configureContainer?: (obj: AzureCosmosDBEmulatorResource) => Promise<void>): AzureCosmosDBResourcemethod
runAsPreviewEmulatorbuilderConfigures the Azure Cosmos DB resource to run using the local Linux-based (vNext) emulator. Use runAsEmulator instead.
runAsPreviewEmulator(configureContainer?: (obj: AzureCosmosDBEmulatorResource) => Promise<void>): AzureCosmosDBResourcemethod
withAccessKeyAuthenticationbuilderConfigures Azure Cosmos DB to use access key authentication
withAccessKeyAuthentication(keyVaultBuilder?: IAzureKeyVaultResource): AzureCosmosDBResourcemethod
withDataExplorerbuilderConfigures the Azure Cosmos DB Linux-based (vNext) emulator to expose the Data Explorer endpoint.
withDataExplorer(port?: number): AzureCosmosDBEmulatorResourcemethod
withDataVolumebuilderAdds a named volume for the data folder to an Azure Cosmos DB emulator resource.
withDataVolume(name?: string): AzureCosmosDBEmulatorResourcemethod
withDefaultAzureSkubuilderConfigures the Azure Cosmos DB resource to be deployed use the default SKU provided by Azure.
withDefaultAzureSku(): AzureCosmosDBResourcemethod
withGatewayPortbuilderConfigures the gateway port for the Azure Cosmos DB emulator.
withGatewayPort(port: number): AzureCosmosDBEmulatorResourcemethod
withPartitionCountbuilderConfigures the partition count for the Azure Cosmos DB emulator.
withPartitionCount(count: number): AzureCosmosDBEmulatorResource