com.pulumi.azure.cosmosdb.kotlin.outputs.AccountBackup.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.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property intervalInMinutes The interval in minutes between two backups. Possible values are between 60 and 1440. Defaults to `240`.
* @property retentionInHours The time in hours that each backup is retained. Possible values are between 8 and 720. Defaults to `8`.
* @property storageRedundancy The storage redundancy is used to indicate the type of backup residency. Possible values are `Geo`, `Local` and `Zone`. Defaults to `Geo`.
* > **Note:** You can only configure `interval_in_minutes`, `retention_in_hours` and `storage_redundancy` when the `type` field is set to `Periodic`.
* @property tier The continuous backup tier. Possible values are `Continuous7Days` and `Continuous30Days`.
* @property type The type of the `backup`. Possible values are `Continuous` and `Periodic`.
* > **Note:** Migration of `Periodic` to `Continuous` is one-way, changing `Continuous` to `Periodic` forces a new resource to be created.
*/
public data class AccountBackup(
public val intervalInMinutes: Int? = null,
public val retentionInHours: Int? = null,
public val storageRedundancy: String? = null,
public val tier: String? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.cosmosdb.outputs.AccountBackup): AccountBackup =
AccountBackup(
intervalInMinutes = javaType.intervalInMinutes().map({ args0 -> args0 }).orElse(null),
retentionInHours = javaType.retentionInHours().map({ args0 -> args0 }).orElse(null),
storageRedundancy = javaType.storageRedundancy().map({ args0 -> args0 }).orElse(null),
tier = javaType.tier().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy