Aspire.Hosting.Azure.CosmosDB
Official
📦 Aspire.Hosting.Azure.CosmosDBv13.4.011Functions
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
runAsEmulatorbuilderConfigures the Azure Cosmos DB resource to run using the local emulator
runAsEmulator(configureContainer?: (obj: AzureCosmosDBEmulatorResource) => Promise<void>): AzureCosmosDBResourcemethod
runAsPreviewEmulatorbuilderConfigures the Azure Cosmos DB resource to run using the preview emulator
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 preview 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