![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.batch.kotlin.inputs.JobDefinitionEvaluateOnExitArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.batch.kotlin.inputs
import com.pulumi.awsnative.batch.inputs.JobDefinitionEvaluateOnExitArgs.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
/**
*
* @property action Specifies the action to take if all of the specified conditions ( `onStatusReason` , `onReason` , and `onExitCode` ) are met. The values aren't case sensitive.
* @property onExitCode Contains a glob pattern to match against the decimal representation of the `ExitCode` returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.
* The string can contain up to 512 characters.
* @property onReason Contains a glob pattern to match against the `Reason` returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
* @property onStatusReason Contains a glob pattern to match against the `StatusReason` returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
*/
public data class JobDefinitionEvaluateOnExitArgs(
public val action: Output,
public val onExitCode: Output? = null,
public val onReason: Output? = null,
public val onStatusReason: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.batch.inputs.JobDefinitionEvaluateOnExitArgs =
com.pulumi.awsnative.batch.inputs.JobDefinitionEvaluateOnExitArgs.builder()
.action(action.applyValue({ args0 -> args0 }))
.onExitCode(onExitCode?.applyValue({ args0 -> args0 }))
.onReason(onReason?.applyValue({ args0 -> args0 }))
.onStatusReason(onStatusReason?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobDefinitionEvaluateOnExitArgs].
*/
@PulumiTagMarker
public class JobDefinitionEvaluateOnExitArgsBuilder internal constructor() {
private var action: Output? = null
private var onExitCode: Output? = null
private var onReason: Output? = null
private var onStatusReason: Output? = null
/**
* @param value Specifies the action to take if all of the specified conditions ( `onStatusReason` , `onReason` , and `onExitCode` ) are met. The values aren't case sensitive.
*/
@JvmName("kdghimvuxtdcylle")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value Contains a glob pattern to match against the decimal representation of the `ExitCode` returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.
* The string can contain up to 512 characters.
*/
@JvmName("oaddgsnliwdiailk")
public suspend fun onExitCode(`value`: Output) {
this.onExitCode = value
}
/**
* @param value Contains a glob pattern to match against the `Reason` returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
*/
@JvmName("dqjqjuvvnguvdgdi")
public suspend fun onReason(`value`: Output) {
this.onReason = value
}
/**
* @param value Contains a glob pattern to match against the `StatusReason` returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
*/
@JvmName("peppbqfnpiwarhaa")
public suspend fun onStatusReason(`value`: Output) {
this.onStatusReason = value
}
/**
* @param value Specifies the action to take if all of the specified conditions ( `onStatusReason` , `onReason` , and `onExitCode` ) are met. The values aren't case sensitive.
*/
@JvmName("sbkbkbmqtyswhosd")
public suspend fun action(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Contains a glob pattern to match against the decimal representation of the `ExitCode` returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match.
* The string can contain up to 512 characters.
*/
@JvmName("vsjfhcedahdchuwb")
public suspend fun onExitCode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.onExitCode = mapped
}
/**
* @param value Contains a glob pattern to match against the `Reason` returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
*/
@JvmName("gelgjsquiaylipps")
public suspend fun onReason(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.onReason = mapped
}
/**
* @param value Contains a glob pattern to match against the `StatusReason` returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.
*/
@JvmName("pfqwrluawenidhpq")
public suspend fun onStatusReason(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.onStatusReason = mapped
}
internal fun build(): JobDefinitionEvaluateOnExitArgs = JobDefinitionEvaluateOnExitArgs(
action = action ?: throw PulumiNullFieldException("action"),
onExitCode = onExitCode,
onReason = onReason,
onStatusReason = onStatusReason,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy