com.pulumi.gcp.gkebackup.kotlin.outputs.BackupPlanBackupScheduleRpoConfig.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.gkebackup.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property exclusionWindows User specified time windows during which backup can NOT happen for this BackupPlan.
* Backups should start and finish outside of any given exclusion window. Note: backup
* jobs will be scheduled to start and finish outside the duration of the window as
* much as possible, but running jobs will not get canceled when it runs into the window.
* All the time and date values in exclusionWindows entry in the API are in UTC. We
* only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no
* restriction on number of single occurrence windows.
* Structure is documented below.
* @property targetRpoMinutes Defines the target RPO for the BackupPlan in minutes, which means the target
* maximum data loss in time that is acceptable for this BackupPlan. This must be
* at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.
*/
public data class BackupPlanBackupScheduleRpoConfig(
public val exclusionWindows: List? = null,
public val targetRpoMinutes: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.gkebackup.outputs.BackupPlanBackupScheduleRpoConfig): BackupPlanBackupScheduleRpoConfig = BackupPlanBackupScheduleRpoConfig(
exclusionWindows = javaType.exclusionWindows().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.gkebackup.kotlin.outputs.BackupPlanBackupScheduleRpoConfigExclusionWindow.Companion.toKotlin(args0)
})
}),
targetRpoMinutes = javaType.targetRpoMinutes(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy