com.pulumi.azurenative.web.kotlin.inputs.ConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.ConfigurationArgs.builder
import com.pulumi.azurenative.web.kotlin.enums.ActiveRevisionsMode
import com.pulumi.core.Either
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 kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Non versioned Container App configuration properties that define the mutable settings of a Container app
* @property activeRevisionsMode ActiveRevisionsMode controls how active revisions are handled for the Container app:
* - Multiple: multiple revisions can be active. If no value if provided, this is the default
- Single: Only one revision can be active at a time. Revision weights can not be used in this mode
* @property ingress Ingress configurations.
* @property registries Collection of private container registry credentials for containers used by the Container app
* @property secrets Collection of secrets used by a Container app
*/
public data class ConfigurationArgs(
public val activeRevisionsMode: Output>? = null,
public val ingress: Output? = null,
public val registries: Output>? = null,
public val secrets: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.ConfigurationArgs =
com.pulumi.azurenative.web.inputs.ConfigurationArgs.builder()
.activeRevisionsMode(
activeRevisionsMode?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.ingress(ingress?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.registries(
registries?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.secrets(
secrets?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ConfigurationArgs].
*/
@PulumiTagMarker
public class ConfigurationArgsBuilder internal constructor() {
private var activeRevisionsMode: Output>? = null
private var ingress: Output? = null
private var registries: Output>? = null
private var secrets: Output>? = null
/**
* @param value ActiveRevisionsMode controls how active revisions are handled for the Container app:
* - Multiple: multiple revisions can be active. If no value if provided, this is the default
- Single: Only one revision can be active at a time. Revision weights can not be used in this mode
*/
@JvmName("hekrpykykqcovyoq")
public suspend fun activeRevisionsMode(`value`: Output>) {
this.activeRevisionsMode = value
}
/**
* @param value Ingress configurations.
*/
@JvmName("ypfsbklfqgccgvcp")
public suspend fun ingress(`value`: Output) {
this.ingress = value
}
/**
* @param value Collection of private container registry credentials for containers used by the Container app
*/
@JvmName("jbbxwmnjwmwtchvi")
public suspend fun registries(`value`: Output>) {
this.registries = value
}
@JvmName("hwbgpkchghjgndxv")
public suspend fun registries(vararg values: Output) {
this.registries = Output.all(values.asList())
}
/**
* @param values Collection of private container registry credentials for containers used by the Container app
*/
@JvmName("phwfydygdbwicswa")
public suspend fun registries(values: List