com.pulumi.gcp.redis.kotlin.outputs.InstancePersistenceConfig.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 persistenceMode Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
* - DISABLED: Persistence is disabled for the instance, and any existing snapshots are deleted.
* - RDB: RDB based Persistence is enabled.
* Possible values are: `DISABLED`, `RDB`.
* @property rdbNextSnapshotTime (Output)
* Output only. The next time that a snapshot attempt is scheduled to occur.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up
* to nine fractional digits.
* Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
* @property rdbSnapshotPeriod Optional. Available snapshot periods for scheduling.
* - ONE_HOUR: Snapshot every 1 hour.
* - SIX_HOURS: Snapshot every 6 hours.
* - TWELVE_HOURS: Snapshot every 12 hours.
* - TWENTY_FOUR_HOURS: Snapshot every 24 hours.
* Possible values are: `ONE_HOUR`, `SIX_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`.
* @property rdbSnapshotStartTime Optional. Date and time that the first snapshot was/will be attempted,
* and to which future snapshots will be aligned. If not provided,
* the current time will be used.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution
* and up to nine fractional digits.
* Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
*/
public data class InstancePersistenceConfig(
public val persistenceMode: String? = null,
public val rdbNextSnapshotTime: String? = null,
public val rdbSnapshotPeriod: String? = null,
public val rdbSnapshotStartTime: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.redis.outputs.InstancePersistenceConfig): InstancePersistenceConfig = InstancePersistenceConfig(
persistenceMode = javaType.persistenceMode().map({ args0 -> args0 }).orElse(null),
rdbNextSnapshotTime = javaType.rdbNextSnapshotTime().map({ args0 -> args0 }).orElse(null),
rdbSnapshotPeriod = javaType.rdbSnapshotPeriod().map({ args0 -> args0 }).orElse(null),
rdbSnapshotStartTime = javaType.rdbSnapshotStartTime().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy