All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.cosmosdb.kotlin.outputs.GetAccountConsistencyPolicy.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cosmosdb.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property consistencyLevel The Consistency Level used by this CosmosDB Account.
 * @property maxIntervalInSeconds The amount of staleness (in seconds) tolerated when the consistency level is Bounded Staleness.
 * @property maxStalenessPrefix The number of stale requests tolerated when the consistency level is Bounded Staleness.
 */
public data class GetAccountConsistencyPolicy(
    public val consistencyLevel: String,
    public val maxIntervalInSeconds: Int,
    public val maxStalenessPrefix: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.cosmosdb.outputs.GetAccountConsistencyPolicy):
            GetAccountConsistencyPolicy = GetAccountConsistencyPolicy(
            consistencyLevel = javaType.consistencyLevel(),
            maxIntervalInSeconds = javaType.maxIntervalInSeconds(),
            maxStalenessPrefix = javaType.maxStalenessPrefix(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy