com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceSettingBackupConfiguration.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.sql.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property backupRetentionSettings
* @property binaryLogEnabled True if binary logging is enabled. If settings.backup_configuration.enabled is false, this must be as well. Can only be used with MySQL.
* @property enabled True if backup configuration is enabled.
* @property location Location of the backup configuration.
* @property pointInTimeRecoveryEnabled True if Point-in-time recovery is enabled.
* @property startTime HH:MM format time indicating when backup configuration starts.
* @property transactionLogRetentionDays The number of days of transaction logs we retain for point in time restore, from 1-7. (For PostgreSQL Enterprise Plus instances, from 1 to 35.)
*/
public data class GetDatabaseInstanceSettingBackupConfiguration(
public val backupRetentionSettings: List,
public val binaryLogEnabled: Boolean,
public val enabled: Boolean,
public val location: String,
public val pointInTimeRecoveryEnabled: Boolean,
public val startTime: String,
public val transactionLogRetentionDays: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.GetDatabaseInstanceSettingBackupConfiguration): GetDatabaseInstanceSettingBackupConfiguration =
GetDatabaseInstanceSettingBackupConfiguration(
backupRetentionSettings = javaType.backupRetentionSettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.GetDatabaseInstanceSettingBackupConfigurationBackupRetentionSetting.Companion.toKotlin(args0)
})
}),
binaryLogEnabled = javaType.binaryLogEnabled(),
enabled = javaType.enabled(),
location = javaType.location(),
pointInTimeRecoveryEnabled = javaType.pointInTimeRecoveryEnabled(),
startTime = javaType.startTime(),
transactionLogRetentionDays = javaType.transactionLogRetentionDays(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy