
com.pulumi.azure.logicapps.kotlin.inputs.GetStandardSiteConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.logicapps.kotlin.inputs
import com.pulumi.azure.logicapps.inputs.GetStandardSiteConfig.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property alwaysOn
* @property appScaleLimit
* @property autoSwapSlotName
* @property cors
* @property dotnetFrameworkVersion
* @property elasticInstanceMinimum
* @property ftpsState
* @property healthCheckPath
* @property http2Enabled
* @property ipRestrictions
* @property linuxFxVersion
* @property minTlsVersion
* @property preWarmedInstanceCount
* @property publicNetworkAccessEnabled
* @property runtimeScaleMonitoringEnabled
* @property scmIpRestrictions
* @property scmMinTlsVersion
* @property scmType
* @property scmUseMainIpRestriction
* @property use32BitWorkerProcess
* @property vnetRouteAllEnabled
* @property websocketsEnabled
*/
public data class GetStandardSiteConfig(
public val alwaysOn: Boolean? = null,
public val appScaleLimit: Int,
public val autoSwapSlotName: String,
public val cors: GetStandardSiteConfigCors,
public val dotnetFrameworkVersion: String? = null,
public val elasticInstanceMinimum: Int,
public val ftpsState: String,
public val healthCheckPath: String? = null,
public val http2Enabled: Boolean? = null,
public val ipRestrictions: List,
public val linuxFxVersion: String,
public val minTlsVersion: String,
public val preWarmedInstanceCount: Int,
public val publicNetworkAccessEnabled: Boolean? = null,
public val runtimeScaleMonitoringEnabled: Boolean? = null,
public val scmIpRestrictions: List,
public val scmMinTlsVersion: String,
public val scmType: String,
public val scmUseMainIpRestriction: Boolean? = null,
public val use32BitWorkerProcess: Boolean? = null,
public val vnetRouteAllEnabled: Boolean,
public val websocketsEnabled: Boolean? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.logicapps.inputs.GetStandardSiteConfig =
com.pulumi.azure.logicapps.inputs.GetStandardSiteConfig.builder()
.alwaysOn(alwaysOn?.let({ args0 -> args0 }))
.appScaleLimit(appScaleLimit.let({ args0 -> args0 }))
.autoSwapSlotName(autoSwapSlotName.let({ args0 -> args0 }))
.cors(cors.let({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.dotnetFrameworkVersion(dotnetFrameworkVersion?.let({ args0 -> args0 }))
.elasticInstanceMinimum(elasticInstanceMinimum.let({ args0 -> args0 }))
.ftpsState(ftpsState.let({ args0 -> args0 }))
.healthCheckPath(healthCheckPath?.let({ args0 -> args0 }))
.http2Enabled(http2Enabled?.let({ args0 -> args0 }))
.ipRestrictions(
ipRestrictions.let({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.linuxFxVersion(linuxFxVersion.let({ args0 -> args0 }))
.minTlsVersion(minTlsVersion.let({ args0 -> args0 }))
.preWarmedInstanceCount(preWarmedInstanceCount.let({ args0 -> args0 }))
.publicNetworkAccessEnabled(publicNetworkAccessEnabled?.let({ args0 -> args0 }))
.runtimeScaleMonitoringEnabled(runtimeScaleMonitoringEnabled?.let({ args0 -> args0 }))
.scmIpRestrictions(
scmIpRestrictions.let({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.scmMinTlsVersion(scmMinTlsVersion.let({ args0 -> args0 }))
.scmType(scmType.let({ args0 -> args0 }))
.scmUseMainIpRestriction(scmUseMainIpRestriction?.let({ args0 -> args0 }))
.use32BitWorkerProcess(use32BitWorkerProcess?.let({ args0 -> args0 }))
.vnetRouteAllEnabled(vnetRouteAllEnabled.let({ args0 -> args0 }))
.websocketsEnabled(websocketsEnabled?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetStandardSiteConfig].
*/
@PulumiTagMarker
public class GetStandardSiteConfigBuilder internal constructor() {
private var alwaysOn: Boolean? = null
private var appScaleLimit: Int? = null
private var autoSwapSlotName: String? = null
private var cors: GetStandardSiteConfigCors? = null
private var dotnetFrameworkVersion: String? = null
private var elasticInstanceMinimum: Int? = null
private var ftpsState: String? = null
private var healthCheckPath: String? = null
private var http2Enabled: Boolean? = null
private var ipRestrictions: List? = null
private var linuxFxVersion: String? = null
private var minTlsVersion: String? = null
private var preWarmedInstanceCount: Int? = null
private var publicNetworkAccessEnabled: Boolean? = null
private var runtimeScaleMonitoringEnabled: Boolean? = null
private var scmIpRestrictions: List? = null
private var scmMinTlsVersion: String? = null
private var scmType: String? = null
private var scmUseMainIpRestriction: Boolean? = null
private var use32BitWorkerProcess: Boolean? = null
private var vnetRouteAllEnabled: Boolean? = null
private var websocketsEnabled: Boolean? = null
/**
* @param value
*/
@JvmName("gcbypemwtjpibvhv")
public suspend fun alwaysOn(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.alwaysOn = mapped
}
/**
* @param value
*/
@JvmName("ihhypuaexqprmark")
public suspend fun appScaleLimit(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.appScaleLimit = mapped
}
/**
* @param value
*/
@JvmName("ytcdlynsguqepybp")
public suspend fun autoSwapSlotName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.autoSwapSlotName = mapped
}
/**
* @param value
*/
@JvmName("ckdtnqitfrysigos")
public suspend fun cors(`value`: GetStandardSiteConfigCors) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.cors = mapped
}
/**
* @param argument
*/
@JvmName("ibaumidkmktrrwwt")
public suspend fun cors(argument: suspend GetStandardSiteConfigCorsBuilder.() -> Unit) {
val toBeMapped = GetStandardSiteConfigCorsBuilder().applySuspend { argument() }.build()
val mapped = toBeMapped
this.cors = mapped
}
/**
* @param value
*/
@JvmName("vmmvnjkkiaingtgu")
public suspend fun dotnetFrameworkVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.dotnetFrameworkVersion = mapped
}
/**
* @param value
*/
@JvmName("aqxtoksqlkcppvla")
public suspend fun elasticInstanceMinimum(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.elasticInstanceMinimum = mapped
}
/**
* @param value
*/
@JvmName("mhcuflvcvlqvktmg")
public suspend fun ftpsState(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.ftpsState = mapped
}
/**
* @param value
*/
@JvmName("dnkrkttbiqmfdaev")
public suspend fun healthCheckPath(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.healthCheckPath = mapped
}
/**
* @param value
*/
@JvmName("vtolaxbctnudldqa")
public suspend fun http2Enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.http2Enabled = mapped
}
/**
* @param value
*/
@JvmName("pnjprdqdlfkmwacm")
public suspend fun ipRestrictions(`value`: List) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.ipRestrictions = mapped
}
/**
* @param argument
*/
@JvmName("tmhbtnlyvcrokutp")
public suspend
fun ipRestrictions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetStandardSiteConfigIpRestrictionBuilder().applySuspend { it() }.build()
}
val mapped = toBeMapped
this.ipRestrictions = mapped
}
/**
* @param argument
*/
@JvmName("okimipjqaguytoui")
public suspend fun ipRestrictions(
vararg
argument: suspend GetStandardSiteConfigIpRestrictionBuilder.() -> Unit,
) {
val toBeMapped = argument.toList().map {
GetStandardSiteConfigIpRestrictionBuilder().applySuspend { it() }.build()
}
val mapped = toBeMapped
this.ipRestrictions = mapped
}
/**
* @param argument
*/
@JvmName("uqlrwmavgckqcvmw")
public suspend
fun ipRestrictions(argument: suspend GetStandardSiteConfigIpRestrictionBuilder.() -> Unit) {
val toBeMapped = listOf(
GetStandardSiteConfigIpRestrictionBuilder().applySuspend {
argument()
}.build(),
)
val mapped = toBeMapped
this.ipRestrictions = mapped
}
/**
* @param values
*/
@JvmName("fvnrqvxbjmwmdjyp")
public suspend fun ipRestrictions(vararg values: GetStandardSiteConfigIpRestriction) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.ipRestrictions = mapped
}
/**
* @param value
*/
@JvmName("hbtfkxphqapqrvpi")
public suspend fun linuxFxVersion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.linuxFxVersion = mapped
}
/**
* @param value
*/
@JvmName("hprvnfmrpaeoeary")
public suspend fun minTlsVersion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.minTlsVersion = mapped
}
/**
* @param value
*/
@JvmName("twpotyiilabdrahw")
public suspend fun preWarmedInstanceCount(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.preWarmedInstanceCount = mapped
}
/**
* @param value
*/
@JvmName("jmhanlvbsppridba")
public suspend fun publicNetworkAccessEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.publicNetworkAccessEnabled = mapped
}
/**
* @param value
*/
@JvmName("ovwbsoaoforodwtl")
public suspend fun runtimeScaleMonitoringEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.runtimeScaleMonitoringEnabled = mapped
}
/**
* @param value
*/
@JvmName("sdnkpepprrhmqujv")
public suspend fun scmIpRestrictions(`value`: List) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.scmIpRestrictions = mapped
}
/**
* @param argument
*/
@JvmName("orjuucpgmxxffioc")
public suspend
fun scmIpRestrictions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetStandardSiteConfigScmIpRestrictionBuilder().applySuspend { it() }.build()
}
val mapped = toBeMapped
this.scmIpRestrictions = mapped
}
/**
* @param argument
*/
@JvmName("rihfdiiiblrfvdjv")
public suspend fun scmIpRestrictions(
vararg
argument: suspend GetStandardSiteConfigScmIpRestrictionBuilder.() -> Unit,
) {
val toBeMapped = argument.toList().map {
GetStandardSiteConfigScmIpRestrictionBuilder().applySuspend { it() }.build()
}
val mapped = toBeMapped
this.scmIpRestrictions = mapped
}
/**
* @param argument
*/
@JvmName("qxmigchbymwilqrk")
public suspend
fun scmIpRestrictions(argument: suspend GetStandardSiteConfigScmIpRestrictionBuilder.() -> Unit) {
val toBeMapped = listOf(
GetStandardSiteConfigScmIpRestrictionBuilder().applySuspend {
argument()
}.build(),
)
val mapped = toBeMapped
this.scmIpRestrictions = mapped
}
/**
* @param values
*/
@JvmName("ubmxcspqluafbvbu")
public suspend fun scmIpRestrictions(vararg values: GetStandardSiteConfigScmIpRestriction) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.scmIpRestrictions = mapped
}
/**
* @param value
*/
@JvmName("chwvbdoqwnwwabex")
public suspend fun scmMinTlsVersion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.scmMinTlsVersion = mapped
}
/**
* @param value
*/
@JvmName("mvptgudveiiguhgl")
public suspend fun scmType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.scmType = mapped
}
/**
* @param value
*/
@JvmName("onmsgyugfgdsunxb")
public suspend fun scmUseMainIpRestriction(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.scmUseMainIpRestriction = mapped
}
/**
* @param value
*/
@JvmName("nkpnonbkkjyottjp")
public suspend fun use32BitWorkerProcess(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.use32BitWorkerProcess = mapped
}
/**
* @param value
*/
@JvmName("rioiiwxnjrlvwmrp")
public suspend fun vnetRouteAllEnabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.vnetRouteAllEnabled = mapped
}
/**
* @param value
*/
@JvmName("svqnvdviuneygviw")
public suspend fun websocketsEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.websocketsEnabled = mapped
}
internal fun build(): GetStandardSiteConfig = GetStandardSiteConfig(
alwaysOn = alwaysOn,
appScaleLimit = appScaleLimit ?: throw PulumiNullFieldException("appScaleLimit"),
autoSwapSlotName = autoSwapSlotName ?: throw PulumiNullFieldException("autoSwapSlotName"),
cors = cors ?: throw PulumiNullFieldException("cors"),
dotnetFrameworkVersion = dotnetFrameworkVersion,
elasticInstanceMinimum = elasticInstanceMinimum ?: throw
PulumiNullFieldException("elasticInstanceMinimum"),
ftpsState = ftpsState ?: throw PulumiNullFieldException("ftpsState"),
healthCheckPath = healthCheckPath,
http2Enabled = http2Enabled,
ipRestrictions = ipRestrictions ?: throw PulumiNullFieldException("ipRestrictions"),
linuxFxVersion = linuxFxVersion ?: throw PulumiNullFieldException("linuxFxVersion"),
minTlsVersion = minTlsVersion ?: throw PulumiNullFieldException("minTlsVersion"),
preWarmedInstanceCount = preWarmedInstanceCount ?: throw
PulumiNullFieldException("preWarmedInstanceCount"),
publicNetworkAccessEnabled = publicNetworkAccessEnabled,
runtimeScaleMonitoringEnabled = runtimeScaleMonitoringEnabled,
scmIpRestrictions = scmIpRestrictions ?: throw PulumiNullFieldException("scmIpRestrictions"),
scmMinTlsVersion = scmMinTlsVersion ?: throw PulumiNullFieldException("scmMinTlsVersion"),
scmType = scmType ?: throw PulumiNullFieldException("scmType"),
scmUseMainIpRestriction = scmUseMainIpRestriction,
use32BitWorkerProcess = use32BitWorkerProcess,
vnetRouteAllEnabled = vnetRouteAllEnabled ?: throw PulumiNullFieldException("vnetRouteAllEnabled"),
websocketsEnabled = websocketsEnabled,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy