com.pulumi.awsnative.databrew.kotlin.ScheduleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.databrew.kotlin
import com.pulumi.awsnative.databrew.ScheduleArgs.builder
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource schema for AWS::DataBrew::Schedule.
* ## Example Usage
* ### Example
* No Java example available.
* @property cronExpression Schedule cron
* @property jobNames A list of jobs to be run, according to the schedule.
* @property name Schedule Name
* @property tags Metadata tags that have been applied to the schedule.
*/
public data class ScheduleArgs(
public val cronExpression: Output? = null,
public val jobNames: Output>? = null,
public val name: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.databrew.ScheduleArgs =
com.pulumi.awsnative.databrew.ScheduleArgs.builder()
.cronExpression(cronExpression?.applyValue({ args0 -> args0 }))
.jobNames(jobNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ScheduleArgs].
*/
@PulumiTagMarker
public class ScheduleArgsBuilder internal constructor() {
private var cronExpression: Output? = null
private var jobNames: Output>? = null
private var name: Output? = null
private var tags: Output>? = null
/**
* @param value Schedule cron
*/
@JvmName("rxrlitqcvktjcvpn")
public suspend fun cronExpression(`value`: Output) {
this.cronExpression = value
}
/**
* @param value A list of jobs to be run, according to the schedule.
*/
@JvmName("munncyuxbfmcxcvp")
public suspend fun jobNames(`value`: Output>) {
this.jobNames = value
}
@JvmName("knxvenibmfohvnje")
public suspend fun jobNames(vararg values: Output) {
this.jobNames = Output.all(values.asList())
}
/**
* @param values A list of jobs to be run, according to the schedule.
*/
@JvmName("byolduuclbavtxkg")
public suspend fun jobNames(values: List