All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.batch.kotlin.outputs.JobQueueJobStateTimeLimitAction.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.batch.kotlin.outputs

import com.pulumi.awsnative.batch.kotlin.enums.JobQueueJobStateTimeLimitActionAction
import com.pulumi.awsnative.batch.kotlin.enums.JobQueueJobStateTimeLimitActionState
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property action The action to take when a job is at the head of the job queue in the specified state for the specified period of time. The only supported value is `CANCEL` , which will cancel the job.
 * @property maxTimeSeconds The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
 * @property reason The reason to log for the action being taken.
 * @property state The state of the job needed to trigger the action. The only supported value is `RUNNABLE` .
 */
public data class JobQueueJobStateTimeLimitAction(
    public val action: JobQueueJobStateTimeLimitActionAction,
    public val maxTimeSeconds: Int,
    public val reason: String,
    public val state: JobQueueJobStateTimeLimitActionState,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.batch.outputs.JobQueueJobStateTimeLimitAction): JobQueueJobStateTimeLimitAction = JobQueueJobStateTimeLimitAction(
            action = javaType.action().let({ args0 ->
                com.pulumi.awsnative.batch.kotlin.enums.JobQueueJobStateTimeLimitActionAction.Companion.toKotlin(args0)
            }),
            maxTimeSeconds = javaType.maxTimeSeconds(),
            reason = javaType.reason(),
            state = javaType.state().let({ args0 ->
                com.pulumi.awsnative.batch.kotlin.enums.JobQueueJobStateTimeLimitActionState.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy