com.pulumi.gcp.sql.kotlin.outputs.DatabaseInstanceSettingsBackupConfiguration.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
/**
*
* @property backupRetentionSettings Backup retention settings. The configuration is detailed below.
* @property binaryLogEnabled True if binary logging is enabled.
* Can only be used with MySQL.
* @property enabled True if backup configuration is enabled.
* @property location The region where the backup will be stored
* @property pointInTimeRecoveryEnabled True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. Valid only for PostgreSQL and SQL Server instances.
* @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, the number of days of retained transaction logs can be set from 1 to 35.
*/
public data class DatabaseInstanceSettingsBackupConfiguration(
public val backupRetentionSettings: DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettings? = null,
public val binaryLogEnabled: Boolean? = null,
public val enabled: Boolean? = null,
public val location: String? = null,
public val pointInTimeRecoveryEnabled: Boolean? = null,
public val startTime: String? = null,
public val transactionLogRetentionDays: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.sql.outputs.DatabaseInstanceSettingsBackupConfiguration): DatabaseInstanceSettingsBackupConfiguration = DatabaseInstanceSettingsBackupConfiguration(
backupRetentionSettings = javaType.backupRetentionSettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.sql.kotlin.outputs.DatabaseInstanceSettingsBackupConfigurationBackupRetentionSettings.Companion.toKotlin(args0)
})
}).orElse(null),
binaryLogEnabled = javaType.binaryLogEnabled().map({ args0 -> args0 }).orElse(null),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
location = javaType.location().map({ args0 -> args0 }).orElse(null),
pointInTimeRecoveryEnabled = javaType.pointInTimeRecoveryEnabled().map({ args0 ->
args0
}).orElse(null),
startTime = javaType.startTime().map({ args0 -> args0 }).orElse(null),
transactionLogRetentionDays = javaType.transactionLogRetentionDays().map({ args0 ->
args0
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy