CosmosDBAccount Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the CosmosDBAccount class.
public CosmosDBAccount (Azure.Provisioning.IConstruct scope, Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountKind? kind = default, Azure.ResourceManager.CosmosDB.Models.ConsistencyPolicy? consistencyPolicy = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountOfferType? accountOfferType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountLocation>? accountLocations = default, Azure.Provisioning.ResourceManager.ResourceGroup? parent = default, string name = "cosmosDB", string version = "2023-04-15", Azure.Core.AzureLocation? location = default);
new Azure.Provisioning.CosmosDB.CosmosDBAccount : Azure.Provisioning.IConstruct * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountKind> * Azure.ResourceManager.CosmosDB.Models.ConsistencyPolicy * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountOfferType> * seq<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountLocation> * Azure.Provisioning.ResourceManager.ResourceGroup * string * string * Nullable<Azure.Core.AzureLocation> -> Azure.Provisioning.CosmosDB.CosmosDBAccount
Public Sub New (scope As IConstruct, Optional kind As Nullable(Of CosmosDBAccountKind) = Nothing, Optional consistencyPolicy As ConsistencyPolicy = Nothing, Optional accountOfferType As Nullable(Of CosmosDBAccountOfferType) = Nothing, Optional accountLocations As IEnumerable(Of CosmosDBAccountLocation) = Nothing, Optional parent As ResourceGroup = Nothing, Optional name As String = "cosmosDB", Optional version As String = "2023-04-15", Optional location As Nullable(Of AzureLocation) = Nothing)
Parameters
- scope
- IConstruct
- kind
- Nullable<CosmosDBAccountKind>
- consistencyPolicy
- ConsistencyPolicy
- accountOfferType
- Nullable<CosmosDBAccountOfferType>
- accountLocations
- IEnumerable<CosmosDBAccountLocation>
- parent
- ResourceGroup
- name
- String
- version
- String
- location
- Nullable<AzureLocation>
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET