Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.containerservice.kotlin.inputs.GroupContainerArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerservice.kotlin.inputs
import com.pulumi.azure.containerservice.inputs.GroupContainerArgs.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.Deprecated
import kotlin.Double
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
*
* @property commands A list of commands which should be run on the container. Changing this forces a new resource to be created.
* @property cpu The required number of CPU cores of the containers. Changing this forces a new resource to be created.
* @property cpuLimit The upper limit of the number of CPU cores of the containers.
* @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 gpu
* @property gpuLimit
* @property image The container image name. Changing this forces a new resource to be created.
* @property livenessProbe The definition of a readiness probe for this container as documented in the `liveness_probe` block below. Changing this forces a new resource to be created.
* @property memory The required memory of the containers in GB. Changing this forces a new resource to be created.
* @property memoryLimit The upper limit of the memory of the containers in GB.
* @property name Specifies the name of the Container. Changing this forces a new resource to be created.
* @property ports A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
* @property readinessProbe The definition of a readiness probe for this container as documented in the `readiness_probe` block below. 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 GroupContainerArgs(
public val commands: Output>? = null,
public val cpu: Output,
public val cpuLimit: Output? = null,
public val environmentVariables: Output>? = null,
@Deprecated(
message = """
The `gpu` block has been deprecated since K80 and P100 GPU Skus have been retired and remaining
GPU resources are not fully supported and not appropriate for production workloads. This block
will be removed in v4.0 of the AzureRM provider.
""",
)
public val gpu: Output? = null,
@Deprecated(
message = """
The `gpu_limit` block has been deprecated since K80 and P100 GPU Skus have been retired and
remaining GPU resources are not fully supported and not appropriate for production workloads.
This block will be removed in v4.0 of the AzureRM provider.
""",
)
public val gpuLimit: Output? = null,
public val image: Output,
public val livenessProbe: Output? = null,
public val memory: Output,
public val memoryLimit: Output? = null,
public val name: Output,
public val ports: Output>? = null,
public val readinessProbe: Output? = null,
public val secureEnvironmentVariables: Output>? = null,
public val securities: Output>? = null,
public val volumes: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerservice.inputs.GroupContainerArgs =
com.pulumi.azure.containerservice.inputs.GroupContainerArgs.builder()
.commands(commands?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.cpu(cpu.applyValue({ args0 -> args0 }))
.cpuLimit(cpuLimit?.applyValue({ args0 -> args0 }))
.environmentVariables(
environmentVariables?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.gpu(gpu?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.gpuLimit(gpuLimit?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.image(image.applyValue({ args0 -> args0 }))
.livenessProbe(livenessProbe?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.memory(memory.applyValue({ args0 -> args0 }))
.memoryLimit(memoryLimit?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.ports(ports?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.readinessProbe(readinessProbe?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.secureEnvironmentVariables(
secureEnvironmentVariables?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.securities(
securities?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.volumes(
volumes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [GroupContainerArgs].
*/
@PulumiTagMarker
public class GroupContainerArgsBuilder internal constructor() {
private var commands: Output>? = null
private var cpu: Output? = null
private var cpuLimit: Output? = null
private var environmentVariables: Output>? = null
private var gpu: Output? = null
private var gpuLimit: Output? = null
private var image: Output? = null
private var livenessProbe: Output? = null
private var memory: Output? = null
private var memoryLimit: Output? = null
private var name: Output? = null
private var ports: Output>? = null
private var readinessProbe: Output? = null
private var secureEnvironmentVariables: Output>? = null
private var securities: Output>? = null
private var volumes: Output>? = null
/**
* @param value A list of commands which should be run on the container. Changing this forces a new resource to be created.
*/
@JvmName("ytouxvxscgiypeke")
public suspend fun commands(`value`: Output>) {
this.commands = value
}
@JvmName("lavcekuvxtbiysmt")
public suspend fun commands(vararg values: Output) {
this.commands = Output.all(values.asList())
}
/**
* @param values A list of commands which should be run on the container. Changing this forces a new resource to be created.
*/
@JvmName("bbregxlfroleaeii")
public suspend fun commands(values: List>) {
this.commands = Output.all(values)
}
/**
* @param value The required number of CPU cores of the containers. Changing this forces a new resource to be created.
*/
@JvmName("khspymgfdeccscjf")
public suspend fun cpu(`value`: Output) {
this.cpu = value
}
/**
* @param value The upper limit of the number of CPU cores of the containers.
*/
@JvmName("hafkcadbifbepxvy")
public suspend fun cpuLimit(`value`: Output) {
this.cpuLimit = value
}
/**
* @param value 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.
*/
@JvmName("sgpswffjceqbyngu")
public suspend fun environmentVariables(`value`: Output>) {
this.environmentVariables = value
}
/**
* @param value
*/
@Deprecated(
message = """
The `gpu` block has been deprecated since K80 and P100 GPU Skus have been retired and remaining
GPU resources are not fully supported and not appropriate for production workloads. This block
will be removed in v4.0 of the AzureRM provider.
""",
)
@JvmName("gtdmlefdvykxjcgo")
public suspend fun gpu(`value`: Output) {
this.gpu = value
}
/**
* @param value
*/
@Deprecated(
message = """
The `gpu_limit` block has been deprecated since K80 and P100 GPU Skus have been retired and
remaining GPU resources are not fully supported and not appropriate for production workloads.
This block will be removed in v4.0 of the AzureRM provider.
""",
)
@JvmName("rclxpkxfsalrktho")
public suspend fun gpuLimit(`value`: Output) {
this.gpuLimit = value
}
/**
* @param value The container image name. Changing this forces a new resource to be created.
*/
@JvmName("ktjcwhdednsmykdj")
public suspend fun image(`value`: Output) {
this.image = value
}
/**
* @param value The definition of a readiness probe for this container as documented in the `liveness_probe` block below. Changing this forces a new resource to be created.
*/
@JvmName("mfcbkbcrsgtphwkw")
public suspend fun livenessProbe(`value`: Output) {
this.livenessProbe = value
}
/**
* @param value The required memory of the containers in GB. Changing this forces a new resource to be created.
*/
@JvmName("cccxdqctrapuufbg")
public suspend fun memory(`value`: Output) {
this.memory = value
}
/**
* @param value The upper limit of the memory of the containers in GB.
*/
@JvmName("vccrwbamslbnpjgy")
public suspend fun memoryLimit(`value`: Output) {
this.memoryLimit = value
}
/**
* @param value Specifies the name of the Container. Changing this forces a new resource to be created.
*/
@JvmName("xjekhmrphwbdviyo")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
*/
@JvmName("fxsiwxmmvlrntbod")
public suspend fun ports(`value`: Output>) {
this.ports = value
}
@JvmName("peawcfekmnlcmiko")
public suspend fun ports(vararg values: Output) {
this.ports = Output.all(values.asList())
}
/**
* @param values A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
*/
@JvmName("xufioovyjujtdyro")
public suspend fun ports(values: List>) {
this.ports = Output.all(values)
}
/**
* @param value The definition of a readiness probe for this container as documented in the `readiness_probe` block below. Changing this forces a new resource to be created.
*/
@JvmName("nwyvqjglpdvelqax")
public suspend fun readinessProbe(`value`: Output) {
this.readinessProbe = value
}
/**
* @param value 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.
*/
@JvmName("uvtmwdxhuftujqyy")
public suspend fun secureEnvironmentVariables(`value`: Output>) {
this.secureEnvironmentVariables = value
}
/**
* @param value 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.
*/
@JvmName("mlcmhbsltbnjgnkf")
public suspend fun securities(`value`: Output>) {
this.securities = value
}
@JvmName("hxatekenyedqdrxb")
public suspend fun securities(vararg values: Output) {
this.securities = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("udhgsmsoupuadnyj")
public suspend fun securities(values: List>) {
this.securities = Output.all(values)
}
/**
* @param value 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.
*/
@JvmName("ynsiijxafwjqerue")
public suspend fun volumes(`value`: Output>) {
this.volumes = value
}
@JvmName("kxwfwspaqdtaohih")
public suspend fun volumes(vararg values: Output) {
this.volumes = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("baqnvhnkmmrbmsnd")
public suspend fun volumes(values: List>) {
this.volumes = Output.all(values)
}
/**
* @param value A list of commands which should be run on the container. Changing this forces a new resource to be created.
*/
@JvmName("vqywgfmiwcuyjaan")
public suspend fun commands(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.commands = mapped
}
/**
* @param values A list of commands which should be run on the container. Changing this forces a new resource to be created.
*/
@JvmName("erlfinynbwthlscm")
public suspend fun commands(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.commands = mapped
}
/**
* @param value The required number of CPU cores of the containers. Changing this forces a new resource to be created.
*/
@JvmName("ncyedbmjpucsrawq")
public suspend fun cpu(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.cpu = mapped
}
/**
* @param value The upper limit of the number of CPU cores of the containers.
*/
@JvmName("bmyrgohjqhnyddpn")
public suspend fun cpuLimit(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cpuLimit = mapped
}
/**
* @param value 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.
*/
@JvmName("njcubqjbtnqocrpi")
public suspend fun environmentVariables(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.environmentVariables = mapped
}
/**
* @param values 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.
*/
@JvmName("nxvpnotjtlmekkbl")
public fun environmentVariables(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.environmentVariables = mapped
}
/**
* @param value
*/
@Deprecated(
message = """
The `gpu` block has been deprecated since K80 and P100 GPU Skus have been retired and remaining
GPU resources are not fully supported and not appropriate for production workloads. This block
will be removed in v4.0 of the AzureRM provider.
""",
)
@JvmName("xmwmxlfhwmnpjkpi")
public suspend fun gpu(`value`: GroupContainerGpuArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gpu = mapped
}
/**
* @param argument
*/
@Deprecated(
message = """
The `gpu` block has been deprecated since K80 and P100 GPU Skus have been retired and remaining
GPU resources are not fully supported and not appropriate for production workloads. This block
will be removed in v4.0 of the AzureRM provider.
""",
)
@JvmName("fbqgbcpuiishhuws")
public suspend fun gpu(argument: suspend GroupContainerGpuArgsBuilder.() -> Unit) {
val toBeMapped = GroupContainerGpuArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.gpu = mapped
}
/**
* @param value
*/
@Deprecated(
message = """
The `gpu_limit` block has been deprecated since K80 and P100 GPU Skus have been retired and
remaining GPU resources are not fully supported and not appropriate for production workloads.
This block will be removed in v4.0 of the AzureRM provider.
""",
)
@JvmName("hvkeawcuigotworw")
public suspend fun gpuLimit(`value`: GroupContainerGpuLimitArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gpuLimit = mapped
}
/**
* @param argument
*/
@Deprecated(
message = """
The `gpu_limit` block has been deprecated since K80 and P100 GPU Skus have been retired and
remaining GPU resources are not fully supported and not appropriate for production workloads.
This block will be removed in v4.0 of the AzureRM provider.
""",
)
@JvmName("bxosphewpdbyrfgr")
public suspend fun gpuLimit(argument: suspend GroupContainerGpuLimitArgsBuilder.() -> Unit) {
val toBeMapped = GroupContainerGpuLimitArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.gpuLimit = mapped
}
/**
* @param value The container image name. Changing this forces a new resource to be created.
*/
@JvmName("uigcqxnukdtpkarv")
public suspend fun image(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.image = mapped
}
/**
* @param value The definition of a readiness probe for this container as documented in the `liveness_probe` block below. Changing this forces a new resource to be created.
*/
@JvmName("iqhithjhqexcthgl")
public suspend fun livenessProbe(`value`: GroupContainerLivenessProbeArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.livenessProbe = mapped
}
/**
* @param argument The definition of a readiness probe for this container as documented in the `liveness_probe` block below. Changing this forces a new resource to be created.
*/
@JvmName("htlgubcmtbwqxukc")
public suspend
fun livenessProbe(argument: suspend GroupContainerLivenessProbeArgsBuilder.() -> Unit) {
val toBeMapped = GroupContainerLivenessProbeArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.livenessProbe = mapped
}
/**
* @param value The required memory of the containers in GB. Changing this forces a new resource to be created.
*/
@JvmName("dhifeyaaviamtqgl")
public suspend fun memory(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.memory = mapped
}
/**
* @param value The upper limit of the memory of the containers in GB.
*/
@JvmName("yubtsucsadarvqat")
public suspend fun memoryLimit(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.memoryLimit = mapped
}
/**
* @param value Specifies the name of the Container. Changing this forces a new resource to be created.
*/
@JvmName("lmymmyyktivwdxqw")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
*/
@JvmName("trwbrderwuqqfqjq")
public suspend fun ports(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ports = mapped
}
/**
* @param argument A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
*/
@JvmName("hyfpenunmledlmth")
public suspend fun ports(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GroupContainerPortArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.ports = mapped
}
/**
* @param argument A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
*/
@JvmName("ccakyechvdagvdip")
public suspend fun ports(vararg argument: suspend GroupContainerPortArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GroupContainerPortArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.ports = mapped
}
/**
* @param argument A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
*/
@JvmName("nheavneehorelplc")
public suspend fun ports(argument: suspend GroupContainerPortArgsBuilder.() -> Unit) {
val toBeMapped = listOf(GroupContainerPortArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.ports = mapped
}
/**
* @param values A set of public ports for the container. Changing this forces a new resource to be created. Set as documented in the `ports` block below.
*/
@JvmName("kmatlxjwtdcskpqf")
public suspend fun ports(vararg values: GroupContainerPortArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ports = mapped
}
/**
* @param value The definition of a readiness probe for this container as documented in the `readiness_probe` block below. Changing this forces a new resource to be created.
*/
@JvmName("bdnkbmbfbnaymlfe")
public suspend fun readinessProbe(`value`: GroupContainerReadinessProbeArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.readinessProbe = mapped
}
/**
* @param argument The definition of a readiness probe for this container as documented in the `readiness_probe` block below. Changing this forces a new resource to be created.
*/
@JvmName("xptlokrnnxrwevlh")
public suspend
fun readinessProbe(argument: suspend GroupContainerReadinessProbeArgsBuilder.() -> Unit) {
val toBeMapped = GroupContainerReadinessProbeArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.readinessProbe = mapped
}
/**
* @param value 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.
*/
@JvmName("fmdmucenlawlooem")
public suspend fun secureEnvironmentVariables(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secureEnvironmentVariables = mapped
}
/**
* @param values 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.
*/
@JvmName("kfvpniqtwuumtxmb")
public fun secureEnvironmentVariables(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.secureEnvironmentVariables = mapped
}
/**
* @param value 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.
*/
@JvmName("rpmtwswqqhpyihdb")
public suspend fun securities(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.securities = mapped
}
/**
* @param argument 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.
*/
@JvmName("mqxjabmsyagcplkk")
public suspend
fun securities(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GroupContainerSecurityArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.securities = mapped
}
/**
* @param argument 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.
*/
@JvmName("sjudskmkiphhtglt")
public suspend fun securities(
vararg
argument: suspend GroupContainerSecurityArgsBuilder.() -> Unit,
) {
val toBeMapped = argument.toList().map {
GroupContainerSecurityArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.securities = mapped
}
/**
* @param argument 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.
*/
@JvmName("ihndkueunpkaixlg")
public suspend fun securities(argument: suspend GroupContainerSecurityArgsBuilder.() -> Unit) {
val toBeMapped = listOf(GroupContainerSecurityArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.securities = mapped
}
/**
* @param values 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.
*/
@JvmName("wmbmegderwbjclxq")
public suspend fun securities(vararg values: GroupContainerSecurityArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.securities = mapped
}
/**
* @param value 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.
*/
@JvmName("woxoibavtwrlyrtb")
public suspend fun volumes(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.volumes = mapped
}
/**
* @param argument 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.
*/
@JvmName("gsfdvcapmnfsfuoo")
public suspend fun volumes(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GroupContainerVolumeArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.volumes = mapped
}
/**
* @param argument 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.
*/
@JvmName("mwiugnhryhjaywmr")
public suspend fun volumes(vararg argument: suspend GroupContainerVolumeArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GroupContainerVolumeArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.volumes = mapped
}
/**
* @param argument 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.
*/
@JvmName("ttallpcqdulfppnj")
public suspend fun volumes(argument: suspend GroupContainerVolumeArgsBuilder.() -> Unit) {
val toBeMapped = listOf(GroupContainerVolumeArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.volumes = mapped
}
/**
* @param values 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.
*/
@JvmName("ygtxukrtcauaixul")
public suspend fun volumes(vararg values: GroupContainerVolumeArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.volumes = mapped
}
internal fun build(): GroupContainerArgs = GroupContainerArgs(
commands = commands,
cpu = cpu ?: throw PulumiNullFieldException("cpu"),
cpuLimit = cpuLimit,
environmentVariables = environmentVariables,
gpu = gpu,
gpuLimit = gpuLimit,
image = image ?: throw PulumiNullFieldException("image"),
livenessProbe = livenessProbe,
memory = memory ?: throw PulumiNullFieldException("memory"),
memoryLimit = memoryLimit,
name = name ?: throw PulumiNullFieldException("name"),
ports = ports,
readinessProbe = readinessProbe,
secureEnvironmentVariables = secureEnvironmentVariables,
securities = securities,
volumes = volumes,
)
}