com.pulumi.azure.containerservice.kotlin.outputs.GroupInitContainer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.containerservice.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property commands A list of commands which should be run on the container. Changing this forces a new resource to be created.
* @property environmentVariables A list of environment variables to be set on the container. Specified as a map of name/value pairs. Changing this forces a new resource to be created.
* @property image The container image name. Changing this forces a new resource to be created.
* @property name Specifies the name of the Container. Changing this forces a new resource to be created.
* @property secureEnvironmentVariables A list of sensitive environment variables to be set on the container. Specified as a map of name/value pairs. Changing this forces a new resource to be created.
* @property securities The definition of the security context for this container as documented in the `security` block below. Changing this forces a new resource to be created.
* @property volumes The definition of a volume mount for this container as documented in the `volume` block below. Changing this forces a new resource to be created.
*/
public data class GroupInitContainer(
public val commands: List? = null,
public val environmentVariables: Map? = null,
public val image: String,
public val name: String,
public val secureEnvironmentVariables: Map? = null,
public val securities: List? = null,
public val volumes: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.containerservice.outputs.GroupInitContainer):
GroupInitContainer = GroupInitContainer(
commands = javaType.commands().map({ args0 -> args0 }),
environmentVariables = javaType.environmentVariables().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
image = javaType.image(),
name = javaType.name(),
secureEnvironmentVariables = javaType.secureEnvironmentVariables().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
securities = javaType.securities().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerservice.kotlin.outputs.GroupInitContainerSecurity.Companion.toKotlin(args0)
})
}),
volumes = javaType.volumes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerservice.kotlin.outputs.GroupInitContainerVolume.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy