![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.glue.kotlin.inputs.TriggerActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.glue.kotlin.inputs
import com.pulumi.awsnative.glue.inputs.TriggerActionArgs.builder
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.Any
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The actions initiated by this trigger.
* @property arguments The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.
* @property crawlerName The name of the crawler to be used with this action.
* @property jobName The name of a job to be executed.
* @property notificationProperty Specifies configuration properties of a job run notification.
* @property securityConfiguration The name of the SecurityConfiguration structure to be used with this action.
* @property timeout The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours). This overrides the timeout value set in the parent job.
*/
public data class TriggerActionArgs(
public val arguments: Output? = null,
public val crawlerName: Output? = null,
public val jobName: Output? = null,
public val notificationProperty: Output? = null,
public val securityConfiguration: Output? = null,
public val timeout: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.glue.inputs.TriggerActionArgs =
com.pulumi.awsnative.glue.inputs.TriggerActionArgs.builder()
.arguments(arguments?.applyValue({ args0 -> args0 }))
.crawlerName(crawlerName?.applyValue({ args0 -> args0 }))
.jobName(jobName?.applyValue({ args0 -> args0 }))
.notificationProperty(
notificationProperty?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.securityConfiguration(securityConfiguration?.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerActionArgs].
*/
@PulumiTagMarker
public class TriggerActionArgsBuilder internal constructor() {
private var arguments: Output? = null
private var crawlerName: Output? = null
private var jobName: Output? = null
private var notificationProperty: Output? = null
private var securityConfiguration: Output? = null
private var timeout: Output? = null
/**
* @param value The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.
*/
@JvmName("eswhiqgeunemevpp")
public suspend fun arguments(`value`: Output) {
this.arguments = value
}
/**
* @param value The name of the crawler to be used with this action.
*/
@JvmName("bsxvulxoooqlrtdt")
public suspend fun crawlerName(`value`: Output) {
this.crawlerName = value
}
/**
* @param value The name of a job to be executed.
*/
@JvmName("dmleojbtlctqfyyu")
public suspend fun jobName(`value`: Output) {
this.jobName = value
}
/**
* @param value Specifies configuration properties of a job run notification.
*/
@JvmName("dawrudlbcubduixi")
public suspend fun notificationProperty(`value`: Output) {
this.notificationProperty = value
}
/**
* @param value The name of the SecurityConfiguration structure to be used with this action.
*/
@JvmName("ybtjbkqmgkgvxghf")
public suspend fun securityConfiguration(`value`: Output) {
this.securityConfiguration = value
}
/**
* @param value The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours). This overrides the timeout value set in the parent job.
*/
@JvmName("grcbyogidrvemabk")
public suspend fun timeout(`value`: Output) {
this.timeout = value
}
/**
* @param value The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.
*/
@JvmName("ihicxehxmltqtyrw")
public suspend fun arguments(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.arguments = mapped
}
/**
* @param value The name of the crawler to be used with this action.
*/
@JvmName("bdaubenbjgrxbvge")
public suspend fun crawlerName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.crawlerName = mapped
}
/**
* @param value The name of a job to be executed.
*/
@JvmName("xtadtnrvdacmlqyv")
public suspend fun jobName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.jobName = mapped
}
/**
* @param value Specifies configuration properties of a job run notification.
*/
@JvmName("ebkmlxaukcdpjflb")
public suspend fun notificationProperty(`value`: TriggerNotificationPropertyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.notificationProperty = mapped
}
/**
* @param argument Specifies configuration properties of a job run notification.
*/
@JvmName("cgekynvdjqfkerjq")
public suspend fun notificationProperty(argument: suspend TriggerNotificationPropertyArgsBuilder.() -> Unit) {
val toBeMapped = TriggerNotificationPropertyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.notificationProperty = mapped
}
/**
* @param value The name of the SecurityConfiguration structure to be used with this action.
*/
@JvmName("ajdhpwsjmvelturc")
public suspend fun securityConfiguration(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.securityConfiguration = mapped
}
/**
* @param value The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours). This overrides the timeout value set in the parent job.
*/
@JvmName("gikwobprgcnulfqi")
public suspend fun timeout(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeout = mapped
}
internal fun build(): TriggerActionArgs = TriggerActionArgs(
arguments = arguments,
crawlerName = crawlerName,
jobName = jobName,
notificationProperty = notificationProperty,
securityConfiguration = securityConfiguration,
timeout = timeout,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy