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

com.pulumi.awsnative.batch.kotlin.inputs.JobDefinitionTaskContainerDependencyArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.batch.kotlin.inputs

import com.pulumi.awsnative.batch.inputs.JobDefinitionTaskContainerDependencyArgs.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 condition The dependency condition of the container. The following are the available conditions and their behavior:
 * - `START` - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.
 * - `COMPLETE` - This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container.
 * - `SUCCESS` - This condition is the same as `COMPLETE` , but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
 * @property containerName A unique identifier for the container.
 */
public data class JobDefinitionTaskContainerDependencyArgs(
    public val condition: Output,
    public val containerName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.batch.inputs.JobDefinitionTaskContainerDependencyArgs = com.pulumi.awsnative.batch.inputs.JobDefinitionTaskContainerDependencyArgs.builder()
        .condition(condition.applyValue({ args0 -> args0 }))
        .containerName(containerName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobDefinitionTaskContainerDependencyArgs].
 */
@PulumiTagMarker
public class JobDefinitionTaskContainerDependencyArgsBuilder internal constructor() {
    private var condition: Output? = null

    private var containerName: Output? = null

    /**
     * @param value The dependency condition of the container. The following are the available conditions and their behavior:
     * - `START` - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.
     * - `COMPLETE` - This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container.
     * - `SUCCESS` - This condition is the same as `COMPLETE` , but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
     */
    @JvmName("jvxtdxmyscoxxwac")
    public suspend fun condition(`value`: Output) {
        this.condition = value
    }

    /**
     * @param value A unique identifier for the container.
     */
    @JvmName("dbcgtvhyqdsmsxpl")
    public suspend fun containerName(`value`: Output) {
        this.containerName = value
    }

    /**
     * @param value The dependency condition of the container. The following are the available conditions and their behavior:
     * - `START` - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.
     * - `COMPLETE` - This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container.
     * - `SUCCESS` - This condition is the same as `COMPLETE` , but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
     */
    @JvmName("cuuuvwnjeyuhlvbf")
    public suspend fun condition(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.condition = mapped
    }

    /**
     * @param value A unique identifier for the container.
     */
    @JvmName("lpsepayqadaywcdu")
    public suspend fun containerName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerName = mapped
    }

    internal fun build(): JobDefinitionTaskContainerDependencyArgs =
        JobDefinitionTaskContainerDependencyArgs(
            condition = condition ?: throw PulumiNullFieldException("condition"),
            containerName = containerName ?: throw PulumiNullFieldException("containerName"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy