com.pulumi.gcp.spanner.kotlin.inputs.BackupScheduleSpecCronSpecArgs.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.spanner.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.spanner.inputs.BackupScheduleSpecCronSpecArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property text Textual representation of the crontab. User can customize the
* backup frequency and the backup version time using the cron
* expression. The version time must be in UTC timzeone.
* The backup will contain an externally consistent copy of the
* database at the version time. Allowed frequencies are 12 hour, 1 day,
* 1 week and 1 month. Examples of valid cron specifications:
* 0 2/12 * * * : every 12 hours at (2, 14) hours past midnight in UTC.
* 0 2,14 * * * : every 12 hours at (2,14) hours past midnight in UTC.
* 0 2 * * * : once a day at 2 past midnight in UTC.
* 0 2 * * 0 : once a week every Sunday at 2 past midnight in UTC.
* 0 2 8 * * : once a month on 8th day at 2 past midnight in UTC.
*/
public data class BackupScheduleSpecCronSpecArgs(
public val text: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.spanner.inputs.BackupScheduleSpecCronSpecArgs =
com.pulumi.gcp.spanner.inputs.BackupScheduleSpecCronSpecArgs.builder()
.text(text?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BackupScheduleSpecCronSpecArgs].
*/
@PulumiTagMarker
public class BackupScheduleSpecCronSpecArgsBuilder internal constructor() {
private var text: Output? = null
/**
* @param value Textual representation of the crontab. User can customize the
* backup frequency and the backup version time using the cron
* expression. The version time must be in UTC timzeone.
* The backup will contain an externally consistent copy of the
* database at the version time. Allowed frequencies are 12 hour, 1 day,
* 1 week and 1 month. Examples of valid cron specifications:
* 0 2/12 * * * : every 12 hours at (2, 14) hours past midnight in UTC.
* 0 2,14 * * * : every 12 hours at (2,14) hours past midnight in UTC.
* 0 2 * * * : once a day at 2 past midnight in UTC.
* 0 2 * * 0 : once a week every Sunday at 2 past midnight in UTC.
* 0 2 8 * * : once a month on 8th day at 2 past midnight in UTC.
*/
@JvmName("texlsacxexbhjfrt")
public suspend fun text(`value`: Output) {
this.text = value
}
/**
* @param value Textual representation of the crontab. User can customize the
* backup frequency and the backup version time using the cron
* expression. The version time must be in UTC timzeone.
* The backup will contain an externally consistent copy of the
* database at the version time. Allowed frequencies are 12 hour, 1 day,
* 1 week and 1 month. Examples of valid cron specifications:
* 0 2/12 * * * : every 12 hours at (2, 14) hours past midnight in UTC.
* 0 2,14 * * * : every 12 hours at (2,14) hours past midnight in UTC.
* 0 2 * * * : once a day at 2 past midnight in UTC.
* 0 2 * * 0 : once a week every Sunday at 2 past midnight in UTC.
* 0 2 8 * * : once a month on 8th day at 2 past midnight in UTC.
*/
@JvmName("cfjragnrgmgapkre")
public suspend fun text(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.text = mapped
}
internal fun build(): BackupScheduleSpecCronSpecArgs = BackupScheduleSpecCronSpecArgs(
text = text,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy