![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.containerinstance.kotlin.inputs.InitContainerDefinitionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.containerinstance.kotlin.inputs
import com.pulumi.azurenative.containerinstance.inputs.InitContainerDefinitionArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The init container definition.
* @property command The command to execute within the init container in exec form.
* @property environmentVariables The environment variables to set in the init container.
* @property image The image of the init container.
* @property name The name for the init container.
* @property securityContext The container security properties.
* @property volumeMounts The volume mounts available to the init container.
*/
public data class InitContainerDefinitionArgs(
public val command: Output>? = null,
public val environmentVariables: Output>? = null,
public val image: Output? = null,
public val name: Output,
public val securityContext: Output? = null,
public val volumeMounts: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerinstance.inputs.InitContainerDefinitionArgs = com.pulumi.azurenative.containerinstance.inputs.InitContainerDefinitionArgs.builder()
.command(command?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.environmentVariables(
environmentVariables?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.image(image?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.securityContext(securityContext?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.volumeMounts(
volumeMounts?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [InitContainerDefinitionArgs].
*/
@PulumiTagMarker
public class InitContainerDefinitionArgsBuilder internal constructor() {
private var command: Output>? = null
private var environmentVariables: Output>? = null
private var image: Output? = null
private var name: Output? = null
private var securityContext: Output? = null
private var volumeMounts: Output>? = null
/**
* @param value The command to execute within the init container in exec form.
*/
@JvmName("olyckarnwpgaclbk")
public suspend fun command(`value`: Output>) {
this.command = value
}
@JvmName("jwfjgsjepfrhclpv")
public suspend fun command(vararg values: Output) {
this.command = Output.all(values.asList())
}
/**
* @param values The command to execute within the init container in exec form.
*/
@JvmName("ypedpvwtgycbocti")
public suspend fun command(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy