![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.cosmosdb.kotlin.outputs.AccountGeoLocation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cosmosdb.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property 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. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority `0`.
* @property id The CosmosDB Account ID.
* @property location The name of the Azure region to host replicated data.
* @property zoneRedundant Should zone redundancy be enabled for this region? Defaults to `false`.
*/
public data class AccountGeoLocation(
public val failoverPriority: Int,
public val id: String? = null,
public val location: String,
public val zoneRedundant: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.cosmosdb.outputs.AccountGeoLocation): AccountGeoLocation = AccountGeoLocation(
failoverPriority = javaType.failoverPriority(),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
location = javaType.location(),
zoneRedundant = javaType.zoneRedundant().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy