
com.pulumi.awsnative.timestream.kotlin.inputs.ScheduledQueryScheduleConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.timestream.kotlin.inputs
import com.pulumi.awsnative.timestream.inputs.ScheduledQueryScheduleConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Configuration for when the scheduled query is executed.
* @property scheduleExpression An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.
*/
public data class ScheduledQueryScheduleConfigurationArgs(
public val scheduleExpression: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.timestream.inputs.ScheduledQueryScheduleConfigurationArgs =
com.pulumi.awsnative.timestream.inputs.ScheduledQueryScheduleConfigurationArgs.builder()
.scheduleExpression(scheduleExpression.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScheduledQueryScheduleConfigurationArgs].
*/
@PulumiTagMarker
public class ScheduledQueryScheduleConfigurationArgsBuilder internal constructor() {
private var scheduleExpression: Output? = null
/**
* @param value An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.
*/
@JvmName("grdpjfamxdovjyho")
public suspend fun scheduleExpression(`value`: Output) {
this.scheduleExpression = value
}
/**
* @param value An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.
*/
@JvmName("wtkbmthuyrwifknk")
public suspend fun scheduleExpression(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.scheduleExpression = mapped
}
internal fun build(): ScheduledQueryScheduleConfigurationArgs =
ScheduledQueryScheduleConfigurationArgs(
scheduleExpression = scheduleExpression ?: throw PulumiNullFieldException("scheduleExpression"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy