Freigeben über


CosmosDBFailoverPolicy Class

Definition

The failover policy for a given region of a database account.

public class CosmosDBFailoverPolicy : Azure.Provisioning.Primitives.ProvisioningConstruct
type CosmosDBFailoverPolicy = class
    inherit ProvisioningConstruct
Public Class CosmosDBFailoverPolicy
Inherits ProvisioningConstruct
Inheritance
CosmosDBFailoverPolicy

Constructors

CosmosDBFailoverPolicy()

Creates a new CosmosDBFailoverPolicy.

Properties

FailoverPriority

The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.

Id

The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>.

LocationName

The name of the region in which the database account exists.

Methods

Compile()

Compile the resource into a set of Bicep statements.

(Inherited from ProvisioningConstruct)
GetResources()

Get any resources represented by this object. This will typically only be the object itself for everything but Infrastructure.

(Inherited from Provisionable)
OverrideWithExpression(Expression)

Set this construct to represent the result of an expression. This is primarily meant to be called via FromExpression static methods on specific resources or constructs.

(Inherited from ProvisioningConstruct)
Resolve(ProvisioningContext)

Resolve any resources or properties that were not explicitly specified.

(Inherited from ProvisioningConstruct)
Validate(ProvisioningContext)

Validate the presence of any required members.

(Inherited from ProvisioningConstruct)

Applies to