com.pulumi.kubernetes.settings.v1alpha1.kotlin.inputs.PodPresetSpecArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.settings.v1alpha1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.core.v1.kotlin.inputs.EnvFromSourceArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.EnvFromSourceArgsBuilder
import com.pulumi.kubernetes.core.v1.kotlin.inputs.EnvVarArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.EnvVarArgsBuilder
import com.pulumi.kubernetes.core.v1.kotlin.inputs.VolumeArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.VolumeArgsBuilder
import com.pulumi.kubernetes.core.v1.kotlin.inputs.VolumeMountArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.VolumeMountArgsBuilder
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.LabelSelectorArgs
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.LabelSelectorArgsBuilder
import com.pulumi.kubernetes.settings.v1alpha1.inputs.PodPresetSpecArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* PodPresetSpec is a description of a pod preset.
* @property env Env defines the collection of EnvVar to inject into containers.
* @property envFrom EnvFrom defines the collection of EnvFromSource to inject into containers.
* @property selector Selector is a label query over a set of resources, in this case pods. Required.
* @property volumeMounts VolumeMounts defines the collection of VolumeMount to inject into containers.
* @property volumes Volumes defines the collection of Volume to inject into the pod.
*/
public data class PodPresetSpecArgs(
public val env: Output>? = null,
public val envFrom: Output>? = null,
public val selector: Output? = null,
public val volumeMounts: Output>? = null,
public val volumes: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.settings.v1alpha1.inputs.PodPresetSpecArgs =
com.pulumi.kubernetes.settings.v1alpha1.inputs.PodPresetSpecArgs.builder()
.env(env?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.envFrom(
envFrom?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.selector(selector?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.volumeMounts(
volumeMounts?.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 [PodPresetSpecArgs].
*/
@PulumiTagMarker
public class PodPresetSpecArgsBuilder internal constructor() {
private var env: Output>? = null
private var envFrom: Output>? = null
private var selector: Output? = null
private var volumeMounts: Output>? = null
private var volumes: Output>? = null
/**
* @param value Env defines the collection of EnvVar to inject into containers.
*/
@JvmName("ukwqtlhqviyuvnbc")
public suspend fun env(`value`: Output>) {
this.env = value
}
@JvmName("mccbunpdxgqcxuep")
public suspend fun env(vararg values: Output) {
this.env = Output.all(values.asList())
}
/**
* @param values Env defines the collection of EnvVar to inject into containers.
*/
@JvmName("hjonbpamcvqesvbb")
public suspend fun env(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy