com.pulumi.gcp.gkebackup.kotlin.inputs.BackupPlanBackupScheduleRpoConfigArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkebackup.inputs.BackupPlanBackupScheduleRpoConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 BackupPlanBackupScheduleRpoConfigArgs(
public val exclusionWindows: Output>? =
null,
public val targetRpoMinutes: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.gkebackup.inputs.BackupPlanBackupScheduleRpoConfigArgs =
com.pulumi.gcp.gkebackup.inputs.BackupPlanBackupScheduleRpoConfigArgs.builder()
.exclusionWindows(
exclusionWindows?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.targetRpoMinutes(targetRpoMinutes.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BackupPlanBackupScheduleRpoConfigArgs].
*/
@PulumiTagMarker
public class BackupPlanBackupScheduleRpoConfigArgsBuilder internal constructor() {
private var exclusionWindows: Output>? =
null
private var targetRpoMinutes: Output? = null
/**
* @param value 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.
*/
@JvmName("titjnvujmuanfcyd")
public suspend fun exclusionWindows(`value`: Output>) {
this.exclusionWindows = value
}
@JvmName("ydsuhsckgncnctix")
public suspend fun exclusionWindows(vararg values: Output) {
this.exclusionWindows = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("ybfnarrusfksrotg")
public suspend fun exclusionWindows(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy