com.pulumi.gcp.dataplex.kotlin.outputs.TaskTriggerSpec.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.dataplex.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property disabled Prevent the task from executing. This does not cancel already running tasks. It is intended to temporarily disable RECURRING tasks.
* @property maxRetries Number of retry attempts before aborting. Set to zero to never attempt to retry a failed task.
* @property schedule Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks periodically. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: 'CRON_TZ=${IANA_TIME_ZONE}' or 'TZ=${IANA_TIME_ZONE}'. The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *. This field is required for RECURRING tasks.
* @property startTime The first run of the task will be after this time. If not specified, the task will run shortly after being submitted if ON_DEMAND and based on the schedule if RECURRING.
* @property type Trigger type of the user-specified Task
* Possible values are: `ON_DEMAND`, `RECURRING`.
*/
public data class TaskTriggerSpec(
public val disabled: Boolean? = null,
public val maxRetries: Int? = null,
public val schedule: String? = null,
public val startTime: String? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataplex.outputs.TaskTriggerSpec): TaskTriggerSpec = TaskTriggerSpec(
disabled = javaType.disabled().map({ args0 -> args0 }).orElse(null),
maxRetries = javaType.maxRetries().map({ args0 -> args0 }).orElse(null),
schedule = javaType.schedule().map({ args0 -> args0 }).orElse(null),
startTime = javaType.startTime().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy