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.azurenative.servicefabricmesh.kotlin.inputs.ContainerCodePackagePropertiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.servicefabricmesh.kotlin.inputs
import com.pulumi.azurenative.servicefabricmesh.inputs.ContainerCodePackagePropertiesArgs.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
/**
* Describes a container and its runtime properties.
* @property commands Command array to execute within the container in exec form.
* @property diagnostics Reference to sinks in DiagnosticsDescription.
* @property endpoints The endpoints exposed by this container.
* @property entrypoint Override for the default entry point in the container.
* @property environmentVariables The environment variables to set in this container
* @property image The Container image to use.
* @property imageRegistryCredential Image registry credential.
* @property labels The labels to set in this container.
* @property name The name of the code package.
* @property reliableCollectionsRefs A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
* @property resources The resources required by this container.
* @property settings The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
* @property volumeRefs Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
* @property volumes Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
*/
public data class ContainerCodePackagePropertiesArgs(
public val commands: Output>? = null,
public val diagnostics: Output? = null,
public val endpoints: Output>? = null,
public val entrypoint: Output? = null,
public val environmentVariables: Output>? = null,
public val image: Output,
public val imageRegistryCredential: Output? = null,
public val labels: Output>? = null,
public val name: Output,
public val reliableCollectionsRefs: Output>? = null,
public val resources: Output,
public val settings: Output>? = null,
public val volumeRefs: Output>? = null,
public val volumes: Output>? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.servicefabricmesh.inputs.ContainerCodePackagePropertiesArgs =
com.pulumi.azurenative.servicefabricmesh.inputs.ContainerCodePackagePropertiesArgs.builder()
.commands(commands?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.diagnostics(diagnostics?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.endpoints(
endpoints?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.entrypoint(entrypoint?.applyValue({ args0 -> args0 }))
.environmentVariables(
environmentVariables?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.image(image.applyValue({ args0 -> args0 }))
.imageRegistryCredential(
imageRegistryCredential?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.name(name.applyValue({ args0 -> args0 }))
.reliableCollectionsRefs(
reliableCollectionsRefs?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.resources(resources.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.settings(
settings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.volumeRefs(
volumeRefs?.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 [ContainerCodePackagePropertiesArgs].
*/
@PulumiTagMarker
public class ContainerCodePackagePropertiesArgsBuilder internal constructor() {
private var commands: Output>? = null
private var diagnostics: Output? = null
private var endpoints: Output>? = null
private var entrypoint: Output? = null
private var environmentVariables: Output>? = null
private var image: Output? = null
private var imageRegistryCredential: Output? = null
private var labels: Output>? = null
private var name: Output? = null
private var reliableCollectionsRefs: Output>? = null
private var resources: Output? = null
private var settings: Output>? = null
private var volumeRefs: Output>? = null
private var volumes: Output>? = null
/**
* @param value Command array to execute within the container in exec form.
*/
@JvmName("hmbdhganvoyklkty")
public suspend fun commands(`value`: Output>) {
this.commands = value
}
@JvmName("wuhgtfnunsnyroly")
public suspend fun commands(vararg values: Output) {
this.commands = Output.all(values.asList())
}
/**
* @param values Command array to execute within the container in exec form.
*/
@JvmName("tpqgefdblqqgfdqn")
public suspend fun commands(values: List>) {
this.commands = Output.all(values)
}
/**
* @param value Reference to sinks in DiagnosticsDescription.
*/
@JvmName("aqcwvemvfhwqmefv")
public suspend fun diagnostics(`value`: Output) {
this.diagnostics = value
}
/**
* @param value The endpoints exposed by this container.
*/
@JvmName("fnfaidowhtvpapnt")
public suspend fun endpoints(`value`: Output>) {
this.endpoints = value
}
@JvmName("cnkaydevojeilbdx")
public suspend fun endpoints(vararg values: Output) {
this.endpoints = Output.all(values.asList())
}
/**
* @param values The endpoints exposed by this container.
*/
@JvmName("ayfjngfkhxjqexud")
public suspend fun endpoints(values: List>) {
this.endpoints = Output.all(values)
}
/**
* @param value Override for the default entry point in the container.
*/
@JvmName("betawbuedkpcvtle")
public suspend fun entrypoint(`value`: Output) {
this.entrypoint = value
}
/**
* @param value The environment variables to set in this container
*/
@JvmName("odrgdcflpkmfeqxk")
public suspend fun environmentVariables(`value`: Output>) {
this.environmentVariables = value
}
@JvmName("oldpndoiqonnueqy")
public suspend fun environmentVariables(vararg values: Output) {
this.environmentVariables = Output.all(values.asList())
}
/**
* @param values The environment variables to set in this container
*/
@JvmName("ummklmfgnsuysnva")
public suspend fun environmentVariables(values: List>) {
this.environmentVariables = Output.all(values)
}
/**
* @param value The Container image to use.
*/
@JvmName("pqfcgrpwssitfsmo")
public suspend fun image(`value`: Output) {
this.image = value
}
/**
* @param value Image registry credential.
*/
@JvmName("gmgdukriqvtiqhvs")
public suspend fun imageRegistryCredential(`value`: Output) {
this.imageRegistryCredential = value
}
/**
* @param value The labels to set in this container.
*/
@JvmName("cjjjgnivhjatrcim")
public suspend fun labels(`value`: Output>) {
this.labels = value
}
@JvmName("wtmjdfaydkslisph")
public suspend fun labels(vararg values: Output) {
this.labels = Output.all(values.asList())
}
/**
* @param values The labels to set in this container.
*/
@JvmName("imukxpjvqsqkxtvw")
public suspend fun labels(values: List>) {
this.labels = Output.all(values)
}
/**
* @param value The name of the code package.
*/
@JvmName("nxwuwvljcvsrvdsp")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
*/
@JvmName("shskaeocetsvnqlq")
public suspend fun reliableCollectionsRefs(`value`: Output>) {
this.reliableCollectionsRefs = value
}
@JvmName("bfcyuxtwucwbecwj")
public suspend fun reliableCollectionsRefs(vararg values: Output) {
this.reliableCollectionsRefs = Output.all(values.asList())
}
/**
* @param values A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
*/
@JvmName("satvecrvlhewsjvn")
public suspend fun reliableCollectionsRefs(values: List>) {
this.reliableCollectionsRefs = Output.all(values)
}
/**
* @param value The resources required by this container.
*/
@JvmName("pvsiwldunfefaqpd")
public suspend fun resources(`value`: Output) {
this.resources = value
}
/**
* @param value The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
*/
@JvmName("vhklojnurlxeklki")
public suspend fun settings(`value`: Output>) {
this.settings = value
}
@JvmName("ogrcpoemdykjbyhl")
public suspend fun settings(vararg values: Output) {
this.settings = Output.all(values.asList())
}
/**
* @param values The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
*/
@JvmName("diqsoyhagqnssrcw")
public suspend fun settings(values: List>) {
this.settings = Output.all(values)
}
/**
* @param value Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
*/
@JvmName("fvkosbhoffiqfgmf")
public suspend fun volumeRefs(`value`: Output>) {
this.volumeRefs = value
}
@JvmName("ipbjsnadbxgsuwkq")
public suspend fun volumeRefs(vararg values: Output) {
this.volumeRefs = Output.all(values.asList())
}
/**
* @param values Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
*/
@JvmName("olfaipdmggedbelo")
public suspend fun volumeRefs(values: List>) {
this.volumeRefs = Output.all(values)
}
/**
* @param value Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
*/
@JvmName("llciubwfdbiuaukl")
public suspend fun volumes(`value`: Output>) {
this.volumes = value
}
@JvmName("hjsrbfyueyrnbxsp")
public suspend fun volumes(vararg values: Output) {
this.volumes = Output.all(values.asList())
}
/**
* @param values Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
*/
@JvmName("nckjvlimajjeykrc")
public suspend fun volumes(values: List>) {
this.volumes = Output.all(values)
}
/**
* @param value Command array to execute within the container in exec form.
*/
@JvmName("tfqxcdxylgnhahua")
public suspend fun commands(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.commands = mapped
}
/**
* @param values Command array to execute within the container in exec form.
*/
@JvmName("lcfyfmaupaqsrfeo")
public suspend fun commands(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.commands = mapped
}
/**
* @param value Reference to sinks in DiagnosticsDescription.
*/
@JvmName("heiprhgkndharkvf")
public suspend fun diagnostics(`value`: DiagnosticsRefArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.diagnostics = mapped
}
/**
* @param argument Reference to sinks in DiagnosticsDescription.
*/
@JvmName("mgbpshmfgofftrfy")
public suspend fun diagnostics(argument: suspend DiagnosticsRefArgsBuilder.() -> Unit) {
val toBeMapped = DiagnosticsRefArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.diagnostics = mapped
}
/**
* @param value The endpoints exposed by this container.
*/
@JvmName("vuyoqmgshwhyxgth")
public suspend fun endpoints(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.endpoints = mapped
}
/**
* @param argument The endpoints exposed by this container.
*/
@JvmName("tsqsmqbxbldmbkii")
public suspend fun endpoints(argument: List Unit>) {
val toBeMapped = argument.toList().map {
EndpointPropertiesArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.endpoints = mapped
}
/**
* @param argument The endpoints exposed by this container.
*/
@JvmName("vlxasfujcavijsde")
public suspend fun endpoints(vararg argument: suspend EndpointPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
EndpointPropertiesArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.endpoints = mapped
}
/**
* @param argument The endpoints exposed by this container.
*/
@JvmName("fomewtjsrptjoqfa")
public suspend fun endpoints(argument: suspend EndpointPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = listOf(EndpointPropertiesArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.endpoints = mapped
}
/**
* @param values The endpoints exposed by this container.
*/
@JvmName("ohbcgipakkojwfnu")
public suspend fun endpoints(vararg values: EndpointPropertiesArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endpoints = mapped
}
/**
* @param value Override for the default entry point in the container.
*/
@JvmName("blojfcgpntsfdscq")
public suspend fun entrypoint(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.entrypoint = mapped
}
/**
* @param value The environment variables to set in this container
*/
@JvmName("vqccutxngfajnvos")
public suspend fun environmentVariables(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.environmentVariables = mapped
}
/**
* @param argument The environment variables to set in this container
*/
@JvmName("xvjonwtsyqdubjjd")
public suspend fun environmentVariables(argument: List Unit>) {
val toBeMapped = argument.toList().map {
EnvironmentVariableArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.environmentVariables = mapped
}
/**
* @param argument The environment variables to set in this container
*/
@JvmName("jhpgawcpaatbioyj")
public suspend fun environmentVariables(vararg argument: suspend EnvironmentVariableArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
EnvironmentVariableArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.environmentVariables = mapped
}
/**
* @param argument The environment variables to set in this container
*/
@JvmName("ucboihbmrvltaxxb")
public suspend fun environmentVariables(argument: suspend EnvironmentVariableArgsBuilder.() -> Unit) {
val toBeMapped = listOf(EnvironmentVariableArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.environmentVariables = mapped
}
/**
* @param values The environment variables to set in this container
*/
@JvmName("swaiqmqhdwiuqonu")
public suspend fun environmentVariables(vararg values: EnvironmentVariableArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.environmentVariables = mapped
}
/**
* @param value The Container image to use.
*/
@JvmName("tgxrqiwhfjhmxfra")
public suspend fun image(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.image = mapped
}
/**
* @param value Image registry credential.
*/
@JvmName("qlqdpwkupsbsqlfn")
public suspend fun imageRegistryCredential(`value`: ImageRegistryCredentialArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.imageRegistryCredential = mapped
}
/**
* @param argument Image registry credential.
*/
@JvmName("snychredmqhspovi")
public suspend fun imageRegistryCredential(argument: suspend ImageRegistryCredentialArgsBuilder.() -> Unit) {
val toBeMapped = ImageRegistryCredentialArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.imageRegistryCredential = mapped
}
/**
* @param value The labels to set in this container.
*/
@JvmName("bogmanxgbvscuvwr")
public suspend fun labels(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param argument The labels to set in this container.
*/
@JvmName("auyluoscvqdltcdp")
public suspend fun labels(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ContainerLabelArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.labels = mapped
}
/**
* @param argument The labels to set in this container.
*/
@JvmName("klnpsajlqljcxmvl")
public suspend fun labels(vararg argument: suspend ContainerLabelArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ContainerLabelArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.labels = mapped
}
/**
* @param argument The labels to set in this container.
*/
@JvmName("gwkhrysmeyunhikq")
public suspend fun labels(argument: suspend ContainerLabelArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ContainerLabelArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.labels = mapped
}
/**
* @param values The labels to set in this container.
*/
@JvmName("nlvuypbujhqltcer")
public suspend fun labels(vararg values: ContainerLabelArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param value The name of the code package.
*/
@JvmName("oilawrqejkasutui")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
*/
@JvmName("oicfojbevufbwfvq")
public suspend fun reliableCollectionsRefs(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.reliableCollectionsRefs = mapped
}
/**
* @param argument A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
*/
@JvmName("wrqxhwxiepdkcebi")
public suspend fun reliableCollectionsRefs(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ReliableCollectionsRefArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.reliableCollectionsRefs = mapped
}
/**
* @param argument A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
*/
@JvmName("mxpfykctptcpyidl")
public suspend fun reliableCollectionsRefs(vararg argument: suspend ReliableCollectionsRefArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ReliableCollectionsRefArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.reliableCollectionsRefs = mapped
}
/**
* @param argument A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
*/
@JvmName("pdcfkvgtinuqamue")
public suspend fun reliableCollectionsRefs(argument: suspend ReliableCollectionsRefArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ReliableCollectionsRefArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.reliableCollectionsRefs = mapped
}
/**
* @param values A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.
*/
@JvmName("hsjdcfgxrximygqx")
public suspend fun reliableCollectionsRefs(vararg values: ReliableCollectionsRefArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.reliableCollectionsRefs = mapped
}
/**
* @param value The resources required by this container.
*/
@JvmName("mwniebnijihhugcw")
public suspend fun resources(`value`: ResourceRequirementsArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resources = mapped
}
/**
* @param argument The resources required by this container.
*/
@JvmName("hwydygejyrnqgoyn")
public suspend fun resources(argument: suspend ResourceRequirementsArgsBuilder.() -> Unit) {
val toBeMapped = ResourceRequirementsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.resources = mapped
}
/**
* @param value The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
*/
@JvmName("ipxildojyykpgxte")
public suspend fun settings(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.settings = mapped
}
/**
* @param argument The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
*/
@JvmName("vnpdfomtwwmdxoak")
public suspend fun settings(argument: List Unit>) {
val toBeMapped = argument.toList().map { SettingArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.settings = mapped
}
/**
* @param argument The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
*/
@JvmName("dtchqsxncplmtbxt")
public suspend fun settings(vararg argument: suspend SettingArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { SettingArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.settings = mapped
}
/**
* @param argument The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
*/
@JvmName("uflylpyktbbbbyfs")
public suspend fun settings(argument: suspend SettingArgsBuilder.() -> Unit) {
val toBeMapped = listOf(SettingArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.settings = mapped
}
/**
* @param values The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets".
*/
@JvmName("foqssemlheajhpqk")
public suspend fun settings(vararg values: SettingArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.settings = mapped
}
/**
* @param value Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
*/
@JvmName("jiiodkowirywdfkt")
public suspend fun volumeRefs(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.volumeRefs = mapped
}
/**
* @param argument Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
*/
@JvmName("wbowjlwmustxjwgi")
public suspend fun volumeRefs(argument: List Unit>) {
val toBeMapped = argument.toList().map {
VolumeReferenceArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.volumeRefs = mapped
}
/**
* @param argument Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
*/
@JvmName("rlusqtmwhmyucujx")
public suspend fun volumeRefs(vararg argument: suspend VolumeReferenceArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
VolumeReferenceArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.volumeRefs = mapped
}
/**
* @param argument Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
*/
@JvmName("ekecaqpcenvchqbv")
public suspend fun volumeRefs(argument: suspend VolumeReferenceArgsBuilder.() -> Unit) {
val toBeMapped = listOf(VolumeReferenceArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.volumeRefs = mapped
}
/**
* @param values Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.
*/
@JvmName("oexqqwnvesbrymic")
public suspend fun volumeRefs(vararg values: VolumeReferenceArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.volumeRefs = mapped
}
/**
* @param value Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
*/
@JvmName("keidbtavddsmksln")
public suspend fun volumes(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.volumes = mapped
}
/**
* @param argument Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
*/
@JvmName("eecnacogrxwmyrbq")
public suspend fun volumes(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ApplicationScopedVolumeArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.volumes = mapped
}
/**
* @param argument Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
*/
@JvmName("hcpteabcuxbsntrq")
public suspend fun volumes(vararg argument: suspend ApplicationScopedVolumeArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ApplicationScopedVolumeArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.volumes = mapped
}
/**
* @param argument Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
*/
@JvmName("yfkmrpgmfybtwbqs")
public suspend fun volumes(argument: suspend ApplicationScopedVolumeArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
ApplicationScopedVolumeArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.volumes = mapped
}
/**
* @param values Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.
*/
@JvmName("dosomlbshmgenyhf")
public suspend fun volumes(vararg values: ApplicationScopedVolumeArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.volumes = mapped
}
internal fun build(): ContainerCodePackagePropertiesArgs = ContainerCodePackagePropertiesArgs(
commands = commands,
diagnostics = diagnostics,
endpoints = endpoints,
entrypoint = entrypoint,
environmentVariables = environmentVariables,
image = image ?: throw PulumiNullFieldException("image"),
imageRegistryCredential = imageRegistryCredential,
labels = labels,
name = name ?: throw PulumiNullFieldException("name"),
reliableCollectionsRefs = reliableCollectionsRefs,
resources = resources ?: throw PulumiNullFieldException("resources"),
settings = settings,
volumeRefs = volumeRefs,
volumes = volumes,
)
}