com.pulumi.gcp.alloydb.kotlin.outputs.ClusterContinuousBackupConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.alloydb.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
/**
*
* @property enabled Whether continuous backup recovery is enabled. If not set, defaults to true.
* @property encryptionConfig EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
* Structure is documented below.
* @property recoveryWindowDays The numbers of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window.
* If not set, defaults to 14 days.
*/
public data class ClusterContinuousBackupConfig(
public val enabled: Boolean? = null,
public val encryptionConfig: ClusterContinuousBackupConfigEncryptionConfig? = null,
public val recoveryWindowDays: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.alloydb.outputs.ClusterContinuousBackupConfig): ClusterContinuousBackupConfig = ClusterContinuousBackupConfig(
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
encryptionConfig = javaType.encryptionConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.alloydb.kotlin.outputs.ClusterContinuousBackupConfigEncryptionConfig.Companion.toKotlin(args0)
})
}).orElse(null),
recoveryWindowDays = javaType.recoveryWindowDays().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy