com.pulumi.gcp.redis.kotlin.outputs.ClusterPersistenceConfig.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.redis.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property aofConfig AOF configuration. This field will be ignored if mode is not AOF.
* Structure is documented below.
* @property mode Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
* - DISABLED: Persistence (both backup and restore) is disabled for the cluster.
* - RDB: RDB based Persistence is enabled.
* - AOF: AOF based Persistence is enabled.
* Possible values are: `PERSISTENCE_MODE_UNSPECIFIED`, `DISABLED`, `RDB`, `AOF`.
* @property rdbConfig RDB configuration. This field will be ignored if mode is not RDB.
* Structure is documented below.
*/
public data class ClusterPersistenceConfig(
public val aofConfig: ClusterPersistenceConfigAofConfig? = null,
public val mode: String? = null,
public val rdbConfig: ClusterPersistenceConfigRdbConfig? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.redis.outputs.ClusterPersistenceConfig): ClusterPersistenceConfig = ClusterPersistenceConfig(
aofConfig = javaType.aofConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.redis.kotlin.outputs.ClusterPersistenceConfigAofConfig.Companion.toKotlin(args0)
})
}).orElse(null),
mode = javaType.mode().map({ args0 -> args0 }).orElse(null),
rdbConfig = javaType.rdbConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.redis.kotlin.outputs.ClusterPersistenceConfigRdbConfig.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy