com.pulumi.gcp.composer.kotlin.inputs.EnvironmentConfigRecoveryConfigScheduledSnapshotsConfigArgs.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.composer.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.composer.inputs.EnvironmentConfigRecoveryConfigScheduledSnapshotsConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enabled When enabled, Cloud Composer periodically saves snapshots of your environment to a Cloud Storage bucket.
* @property snapshotCreationSchedule Snapshot schedule, in the unix-cron format.
* @property snapshotLocation the URI of a bucket folder where to save the snapshot.
* @property timeZone A time zone for the schedule. This value is a time offset and does not take into account daylight saving time changes. Valid values are from UTC-12 to UTC+12. Examples: UTC, UTC-01, UTC+03.
*/
public data class EnvironmentConfigRecoveryConfigScheduledSnapshotsConfigArgs(
public val enabled: Output,
public val snapshotCreationSchedule: Output? = null,
public val snapshotLocation: Output? = null,
public val timeZone: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.composer.inputs.EnvironmentConfigRecoveryConfigScheduledSnapshotsConfigArgs =
com.pulumi.gcp.composer.inputs.EnvironmentConfigRecoveryConfigScheduledSnapshotsConfigArgs.builder()
.enabled(enabled.applyValue({ args0 -> args0 }))
.snapshotCreationSchedule(snapshotCreationSchedule?.applyValue({ args0 -> args0 }))
.snapshotLocation(snapshotLocation?.applyValue({ args0 -> args0 }))
.timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EnvironmentConfigRecoveryConfigScheduledSnapshotsConfigArgs].
*/
@PulumiTagMarker
public class EnvironmentConfigRecoveryConfigScheduledSnapshotsConfigArgsBuilder internal constructor() {
private var enabled: Output? = null
private var snapshotCreationSchedule: Output? = null
private var snapshotLocation: Output? = null
private var timeZone: Output? = null
/**
* @param value When enabled, Cloud Composer periodically saves snapshots of your environment to a Cloud Storage bucket.
*/
@JvmName("ueoimnfklbxsnxnq")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Snapshot schedule, in the unix-cron format.
*/
@JvmName("iumquyhbpstrptut")
public suspend fun snapshotCreationSchedule(`value`: Output) {
this.snapshotCreationSchedule = value
}
/**
* @param value the URI of a bucket folder where to save the snapshot.
*/
@JvmName("qnspdlhamhwkeqcm")
public suspend fun snapshotLocation(`value`: Output) {
this.snapshotLocation = value
}
/**
* @param value A time zone for the schedule. This value is a time offset and does not take into account daylight saving time changes. Valid values are from UTC-12 to UTC+12. Examples: UTC, UTC-01, UTC+03.
*/
@JvmName("xsobmkvlcufobtat")
public suspend fun timeZone(`value`: Output) {
this.timeZone = value
}
/**
* @param value When enabled, Cloud Composer periodically saves snapshots of your environment to a Cloud Storage bucket.
*/
@JvmName("wjlnaeigwldissra")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Snapshot schedule, in the unix-cron format.
*/
@JvmName("kyqmswgkanjhlynt")
public suspend fun snapshotCreationSchedule(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.snapshotCreationSchedule = mapped
}
/**
* @param value the URI of a bucket folder where to save the snapshot.
*/
@JvmName("pnvyefceauuenuxa")
public suspend fun snapshotLocation(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.snapshotLocation = mapped
}
/**
* @param value A time zone for the schedule. This value is a time offset and does not take into account daylight saving time changes. Valid values are from UTC-12 to UTC+12. Examples: UTC, UTC-01, UTC+03.
*/
@JvmName("hjdipnoujdxkkfrv")
public suspend fun timeZone(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeZone = mapped
}
internal fun build(): EnvironmentConfigRecoveryConfigScheduledSnapshotsConfigArgs =
EnvironmentConfigRecoveryConfigScheduledSnapshotsConfigArgs(
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
snapshotCreationSchedule = snapshotCreationSchedule,
snapshotLocation = snapshotLocation,
timeZone = timeZone,
)
}