com.pulumi.awsnative.batch.kotlin.inputs.ComputeEnvironmentUpdatePolicyArgs.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.batch.kotlin.inputs
import com.pulumi.awsnative.batch.inputs.ComputeEnvironmentUpdatePolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property jobExecutionTimeoutMinutes Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.
* @property terminateJobsOnUpdate Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The default value is `false` .
*/
public data class ComputeEnvironmentUpdatePolicyArgs(
public val jobExecutionTimeoutMinutes: Output? = null,
public val terminateJobsOnUpdate: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.batch.inputs.ComputeEnvironmentUpdatePolicyArgs =
com.pulumi.awsnative.batch.inputs.ComputeEnvironmentUpdatePolicyArgs.builder()
.jobExecutionTimeoutMinutes(jobExecutionTimeoutMinutes?.applyValue({ args0 -> args0 }))
.terminateJobsOnUpdate(terminateJobsOnUpdate?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ComputeEnvironmentUpdatePolicyArgs].
*/
@PulumiTagMarker
public class ComputeEnvironmentUpdatePolicyArgsBuilder internal constructor() {
private var jobExecutionTimeoutMinutes: Output? = null
private var terminateJobsOnUpdate: Output? = null
/**
* @param value Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.
*/
@JvmName("dquovnwtuxreaagm")
public suspend fun jobExecutionTimeoutMinutes(`value`: Output) {
this.jobExecutionTimeoutMinutes = value
}
/**
* @param value Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The default value is `false` .
*/
@JvmName("fokeialoarthrjud")
public suspend fun terminateJobsOnUpdate(`value`: Output) {
this.terminateJobsOnUpdate = value
}
/**
* @param value Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.
*/
@JvmName("iuqklcdvnhilivxg")
public suspend fun jobExecutionTimeoutMinutes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.jobExecutionTimeoutMinutes = mapped
}
/**
* @param value Specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The default value is `false` .
*/
@JvmName("ugmwhbvtgylxibtj")
public suspend fun terminateJobsOnUpdate(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.terminateJobsOnUpdate = mapped
}
internal fun build(): ComputeEnvironmentUpdatePolicyArgs = ComputeEnvironmentUpdatePolicyArgs(
jobExecutionTimeoutMinutes = jobExecutionTimeoutMinutes,
terminateJobsOnUpdate = terminateJobsOnUpdate,
)
}