All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.appservice.kotlin.inputs.LinuxFunctionAppSiteConfigArgs.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.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.LinuxFunctionAppSiteConfigArgs.builder
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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property alwaysOn If this Linux Web App is Always On enabled. Defaults to `false`.
 * > **NOTE:** when running in a Consumption or Premium Plan, `always_on` feature should be turned off. Please turn it off before upgrading the service plan from standard to premium.
 * @property apiDefinitionUrl The URL of the API definition that describes this Linux Function App.
 * @property apiManagementApiId The ID of the API Management API for this Linux Function App.
 * @property appCommandLine The App command line to launch.
 * @property appScaleLimit The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.
 * @property appServiceLogs An `app_service_logs` block as defined above.
 * @property applicationInsightsConnectionString The Connection String for linking the Linux Function App to Application Insights.
 * @property applicationInsightsKey The Instrumentation Key for connecting the Linux Function App to Application Insights.
 * @property applicationStack An `application_stack` block as defined above.
 * > **Note:** If this is set, there must not be an application setting `FUNCTIONS_WORKER_RUNTIME`.
 * @property containerRegistryManagedIdentityClientId The Client ID of the Managed Service Identity to use for connections to the Azure Container Registry.
 * @property containerRegistryUseManagedIdentity Should connections for Azure Container Registry use Managed Identity.
 * @property cors A `cors` block as defined above.
 * @property defaultDocuments Specifies a list of Default Documents for the Linux Web App.
 * @property detailedErrorLoggingEnabled Is detailed error logging enabled
 * @property elasticInstanceMinimum The number of minimum instances for this Linux Function App. Only affects apps on Elastic Premium plans.
 * @property ftpsState State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`.
 * @property healthCheckEvictionTimeInMin The amount of time in minutes that a node can be unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`.
 * @property healthCheckPath The path to be checked for this function app health.
 * @property http2Enabled Specifies if the HTTP2 protocol should be enabled. Defaults to `false`.
 * @property ipRestrictionDefaultAction The Default action for traffic that does not match any `ip_restriction` rule. possible values include `Allow` and `Deny`. Defaults to `Allow`.
 * @property ipRestrictions One or more `ip_restriction` blocks as defined above.
 * @property linuxFxVersion The Linux FX Version
 * @property loadBalancingMode The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted.
 * @property managedPipelineMode Managed pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`.
 * @property minimumTlsVersion The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`.
 * @property preWarmedInstanceCount The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.
 * @property remoteDebuggingEnabled Should Remote Debugging be enabled. Defaults to `false`.
 * @property remoteDebuggingVersion The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022`.
 * @property runtimeScaleMonitoringEnabled Should Scale Monitoring of the Functions Runtime be enabled?
 * > **NOTE:** Functions runtime scale monitoring can only be enabled for Elastic Premium Function Apps or Workflow Standard Logic Apps and requires a minimum prewarmed instance count of 1.
 * @property scmIpRestrictionDefaultAction The Default action for traffic that does not match any `scm_ip_restriction` rule. possible values include `Allow` and `Deny`. Defaults to `Allow`.
 * @property scmIpRestrictions One or more `scm_ip_restriction` blocks as defined above.
 * @property scmMinimumTlsVersion Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`.
 * @property scmType The SCM Type in use by the Linux Function App.
 * @property scmUseMainIpRestriction Should the Linux Function App `ip_restriction` configuration be used for the SCM also.
 * @property use32BitWorker Should the Linux Web App use a 32-bit worker process. Defaults to `false`.
 * @property vnetRouteAllEnabled Should all outbound traffic to have NAT Gateways, Network Security Groups and User Defined Routes applied? Defaults to `false`.
 * @property websocketsEnabled Should Web Sockets be enabled. Defaults to `false`.
 * @property workerCount The number of Workers for this Linux Function App.
 */
public data class LinuxFunctionAppSiteConfigArgs(
    public val alwaysOn: Output? = null,
    public val apiDefinitionUrl: Output? = null,
    public val apiManagementApiId: Output? = null,
    public val appCommandLine: Output? = null,
    public val appScaleLimit: Output? = null,
    public val appServiceLogs: Output? = null,
    public val applicationInsightsConnectionString: Output? = null,
    public val applicationInsightsKey: Output? = null,
    public val applicationStack: Output? = null,
    public val containerRegistryManagedIdentityClientId: Output? = null,
    public val containerRegistryUseManagedIdentity: Output? = null,
    public val cors: Output? = null,
    public val defaultDocuments: Output>? = null,
    public val detailedErrorLoggingEnabled: Output? = null,
    public val elasticInstanceMinimum: Output? = null,
    public val ftpsState: Output? = null,
    public val healthCheckEvictionTimeInMin: Output? = null,
    public val healthCheckPath: Output? = null,
    public val http2Enabled: Output? = null,
    public val ipRestrictionDefaultAction: Output? = null,
    public val ipRestrictions: Output>? = null,
    public val linuxFxVersion: Output? = null,
    public val loadBalancingMode: Output? = null,
    public val managedPipelineMode: Output? = null,
    public val minimumTlsVersion: Output? = null,
    public val preWarmedInstanceCount: Output? = null,
    public val remoteDebuggingEnabled: Output? = null,
    public val remoteDebuggingVersion: Output? = null,
    public val runtimeScaleMonitoringEnabled: Output? = null,
    public val scmIpRestrictionDefaultAction: Output? = null,
    public val scmIpRestrictions: Output>? =
        null,
    public val scmMinimumTlsVersion: Output? = null,
    public val scmType: Output? = null,
    public val scmUseMainIpRestriction: Output? = null,
    public val use32BitWorker: Output? = null,
    public val vnetRouteAllEnabled: Output? = null,
    public val websocketsEnabled: Output? = null,
    public val workerCount: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.LinuxFunctionAppSiteConfigArgs =
        com.pulumi.azure.appservice.inputs.LinuxFunctionAppSiteConfigArgs.builder()
            .alwaysOn(alwaysOn?.applyValue({ args0 -> args0 }))
            .apiDefinitionUrl(apiDefinitionUrl?.applyValue({ args0 -> args0 }))
            .apiManagementApiId(apiManagementApiId?.applyValue({ args0 -> args0 }))
            .appCommandLine(appCommandLine?.applyValue({ args0 -> args0 }))
            .appScaleLimit(appScaleLimit?.applyValue({ args0 -> args0 }))
            .appServiceLogs(appServiceLogs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .applicationInsightsConnectionString(
                applicationInsightsConnectionString?.applyValue({ args0 ->
                    args0
                }),
            )
            .applicationInsightsKey(applicationInsightsKey?.applyValue({ args0 -> args0 }))
            .applicationStack(applicationStack?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .containerRegistryManagedIdentityClientId(
                containerRegistryManagedIdentityClientId?.applyValue({ args0 ->
                    args0
                }),
            )
            .containerRegistryUseManagedIdentity(
                containerRegistryUseManagedIdentity?.applyValue({ args0 ->
                    args0
                }),
            )
            .cors(cors?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .defaultDocuments(defaultDocuments?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .detailedErrorLoggingEnabled(detailedErrorLoggingEnabled?.applyValue({ args0 -> args0 }))
            .elasticInstanceMinimum(elasticInstanceMinimum?.applyValue({ args0 -> args0 }))
            .ftpsState(ftpsState?.applyValue({ args0 -> args0 }))
            .healthCheckEvictionTimeInMin(healthCheckEvictionTimeInMin?.applyValue({ args0 -> args0 }))
            .healthCheckPath(healthCheckPath?.applyValue({ args0 -> args0 }))
            .http2Enabled(http2Enabled?.applyValue({ args0 -> args0 }))
            .ipRestrictionDefaultAction(ipRestrictionDefaultAction?.applyValue({ args0 -> args0 }))
            .ipRestrictions(
                ipRestrictions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .linuxFxVersion(linuxFxVersion?.applyValue({ args0 -> args0 }))
            .loadBalancingMode(loadBalancingMode?.applyValue({ args0 -> args0 }))
            .managedPipelineMode(managedPipelineMode?.applyValue({ args0 -> args0 }))
            .minimumTlsVersion(minimumTlsVersion?.applyValue({ args0 -> args0 }))
            .preWarmedInstanceCount(preWarmedInstanceCount?.applyValue({ args0 -> args0 }))
            .remoteDebuggingEnabled(remoteDebuggingEnabled?.applyValue({ args0 -> args0 }))
            .remoteDebuggingVersion(remoteDebuggingVersion?.applyValue({ args0 -> args0 }))
            .runtimeScaleMonitoringEnabled(runtimeScaleMonitoringEnabled?.applyValue({ args0 -> args0 }))
            .scmIpRestrictionDefaultAction(scmIpRestrictionDefaultAction?.applyValue({ args0 -> args0 }))
            .scmIpRestrictions(
                scmIpRestrictions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .scmMinimumTlsVersion(scmMinimumTlsVersion?.applyValue({ args0 -> args0 }))
            .scmType(scmType?.applyValue({ args0 -> args0 }))
            .scmUseMainIpRestriction(scmUseMainIpRestriction?.applyValue({ args0 -> args0 }))
            .use32BitWorker(use32BitWorker?.applyValue({ args0 -> args0 }))
            .vnetRouteAllEnabled(vnetRouteAllEnabled?.applyValue({ args0 -> args0 }))
            .websocketsEnabled(websocketsEnabled?.applyValue({ args0 -> args0 }))
            .workerCount(workerCount?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinuxFunctionAppSiteConfigArgs].
 */
@PulumiTagMarker
public class LinuxFunctionAppSiteConfigArgsBuilder internal constructor() {
    private var alwaysOn: Output? = null

    private var apiDefinitionUrl: Output? = null

    private var apiManagementApiId: Output? = null

    private var appCommandLine: Output? = null

    private var appScaleLimit: Output? = null

    private var appServiceLogs: Output? = null

    private var applicationInsightsConnectionString: Output? = null

    private var applicationInsightsKey: Output? = null

    private var applicationStack: Output? = null

    private var containerRegistryManagedIdentityClientId: Output? = null

    private var containerRegistryUseManagedIdentity: Output? = null

    private var cors: Output? = null

    private var defaultDocuments: Output>? = null

    private var detailedErrorLoggingEnabled: Output? = null

    private var elasticInstanceMinimum: Output? = null

    private var ftpsState: Output? = null

    private var healthCheckEvictionTimeInMin: Output? = null

    private var healthCheckPath: Output? = null

    private var http2Enabled: Output? = null

    private var ipRestrictionDefaultAction: Output? = null

    private var ipRestrictions: Output>? = null

    private var linuxFxVersion: Output? = null

    private var loadBalancingMode: Output? = null

    private var managedPipelineMode: Output? = null

    private var minimumTlsVersion: Output? = null

    private var preWarmedInstanceCount: Output? = null

    private var remoteDebuggingEnabled: Output? = null

    private var remoteDebuggingVersion: Output? = null

    private var runtimeScaleMonitoringEnabled: Output? = null

    private var scmIpRestrictionDefaultAction: Output? = null

    private var scmIpRestrictions: Output>? =
        null

    private var scmMinimumTlsVersion: Output? = null

    private var scmType: Output? = null

    private var scmUseMainIpRestriction: Output? = null

    private var use32BitWorker: Output? = null

    private var vnetRouteAllEnabled: Output? = null

    private var websocketsEnabled: Output? = null

    private var workerCount: Output? = null

    /**
     * @param value If this Linux Web App is Always On enabled. Defaults to `false`.
     * > **NOTE:** when running in a Consumption or Premium Plan, `always_on` feature should be turned off. Please turn it off before upgrading the service plan from standard to premium.
     */
    @JvmName("bmtskksgbunppdui")
    public suspend fun alwaysOn(`value`: Output) {
        this.alwaysOn = value
    }

    /**
     * @param value The URL of the API definition that describes this Linux Function App.
     */
    @JvmName("vvdasjbryknqemad")
    public suspend fun apiDefinitionUrl(`value`: Output) {
        this.apiDefinitionUrl = value
    }

    /**
     * @param value The ID of the API Management API for this Linux Function App.
     */
    @JvmName("sawrpyntltkcgsiw")
    public suspend fun apiManagementApiId(`value`: Output) {
        this.apiManagementApiId = value
    }

    /**
     * @param value The App command line to launch.
     */
    @JvmName("ltiaugwayqxinedk")
    public suspend fun appCommandLine(`value`: Output) {
        this.appCommandLine = value
    }

    /**
     * @param value The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.
     */
    @JvmName("wvixjlegwurnaidx")
    public suspend fun appScaleLimit(`value`: Output) {
        this.appScaleLimit = value
    }

    /**
     * @param value An `app_service_logs` block as defined above.
     */
    @JvmName("bvvaodmrxertphrc")
    public suspend fun appServiceLogs(`value`: Output) {
        this.appServiceLogs = value
    }

    /**
     * @param value The Connection String for linking the Linux Function App to Application Insights.
     */
    @JvmName("soegkhjkclwgnfmn")
    public suspend fun applicationInsightsConnectionString(`value`: Output) {
        this.applicationInsightsConnectionString = value
    }

    /**
     * @param value The Instrumentation Key for connecting the Linux Function App to Application Insights.
     */
    @JvmName("ssacapgdybduucgk")
    public suspend fun applicationInsightsKey(`value`: Output) {
        this.applicationInsightsKey = value
    }

    /**
     * @param value An `application_stack` block as defined above.
     * > **Note:** If this is set, there must not be an application setting `FUNCTIONS_WORKER_RUNTIME`.
     */
    @JvmName("bmwlteghtfufdkqo")
    public suspend fun applicationStack(`value`: Output) {
        this.applicationStack = value
    }

    /**
     * @param value The Client ID of the Managed Service Identity to use for connections to the Azure Container Registry.
     */
    @JvmName("dltgounhqurrqllr")
    public suspend fun containerRegistryManagedIdentityClientId(`value`: Output) {
        this.containerRegistryManagedIdentityClientId = value
    }

    /**
     * @param value Should connections for Azure Container Registry use Managed Identity.
     */
    @JvmName("eovakxgcywgvaoxs")
    public suspend fun containerRegistryUseManagedIdentity(`value`: Output) {
        this.containerRegistryUseManagedIdentity = value
    }

    /**
     * @param value A `cors` block as defined above.
     */
    @JvmName("doebfeldkabcucrc")
    public suspend fun cors(`value`: Output) {
        this.cors = value
    }

    /**
     * @param value Specifies a list of Default Documents for the Linux Web App.
     */
    @JvmName("lkxhveanlqvdymqg")
    public suspend fun defaultDocuments(`value`: Output>) {
        this.defaultDocuments = value
    }

    @JvmName("nnxblxqchtwvvgxu")
    public suspend fun defaultDocuments(vararg values: Output) {
        this.defaultDocuments = Output.all(values.asList())
    }

    /**
     * @param values Specifies a list of Default Documents for the Linux Web App.
     */
    @JvmName("crggrdpusukgnewu")
    public suspend fun defaultDocuments(values: List>) {
        this.defaultDocuments = Output.all(values)
    }

    /**
     * @param value Is detailed error logging enabled
     */
    @JvmName("xihksvowktmukbmm")
    public suspend fun detailedErrorLoggingEnabled(`value`: Output) {
        this.detailedErrorLoggingEnabled = value
    }

    /**
     * @param value The number of minimum instances for this Linux Function App. Only affects apps on Elastic Premium plans.
     */
    @JvmName("xiojgxstctfspmbf")
    public suspend fun elasticInstanceMinimum(`value`: Output) {
        this.elasticInstanceMinimum = value
    }

    /**
     * @param value State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`.
     */
    @JvmName("tofyaqwgvuulpfor")
    public suspend fun ftpsState(`value`: Output) {
        this.ftpsState = value
    }

    /**
     * @param value The amount of time in minutes that a node can be unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`.
     */
    @JvmName("ohnxotfvtkejovby")
    public suspend fun healthCheckEvictionTimeInMin(`value`: Output) {
        this.healthCheckEvictionTimeInMin = value
    }

    /**
     * @param value The path to be checked for this function app health.
     */
    @JvmName("ujajcamctymdgnhj")
    public suspend fun healthCheckPath(`value`: Output) {
        this.healthCheckPath = value
    }

    /**
     * @param value Specifies if the HTTP2 protocol should be enabled. Defaults to `false`.
     */
    @JvmName("sbgoprnvtfcwekkq")
    public suspend fun http2Enabled(`value`: Output) {
        this.http2Enabled = value
    }

    /**
     * @param value The Default action for traffic that does not match any `ip_restriction` rule. possible values include `Allow` and `Deny`. Defaults to `Allow`.
     */
    @JvmName("dcdlapaxuwyvwrwn")
    public suspend fun ipRestrictionDefaultAction(`value`: Output) {
        this.ipRestrictionDefaultAction = value
    }

    /**
     * @param value One or more `ip_restriction` blocks as defined above.
     */
    @JvmName("itbsyjlfceqwurkc")
    public suspend fun ipRestrictions(`value`: Output>) {
        this.ipRestrictions = value
    }

    @JvmName("ejcjyltiqsjomuyb")
    public suspend fun ipRestrictions(vararg values: Output) {
        this.ipRestrictions = Output.all(values.asList())
    }

    /**
     * @param values One or more `ip_restriction` blocks as defined above.
     */
    @JvmName("ucmqfqngiphmwhfk")
    public suspend fun ipRestrictions(values: List>) {
        this.ipRestrictions = Output.all(values)
    }

    /**
     * @param value The Linux FX Version
     */
    @JvmName("niorcklvoexfnljh")
    public suspend fun linuxFxVersion(`value`: Output) {
        this.linuxFxVersion = value
    }

    /**
     * @param value The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted.
     */
    @JvmName("jhbvmwodakbgjqps")
    public suspend fun loadBalancingMode(`value`: Output) {
        this.loadBalancingMode = value
    }

    /**
     * @param value Managed pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`.
     */
    @JvmName("jddlxqfooeiglycu")
    public suspend fun managedPipelineMode(`value`: Output) {
        this.managedPipelineMode = value
    }

    /**
     * @param value The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`.
     */
    @JvmName("bitquaaqqpssrpej")
    public suspend fun minimumTlsVersion(`value`: Output) {
        this.minimumTlsVersion = value
    }

    /**
     * @param value The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.
     */
    @JvmName("xjrarkckpaqbalpm")
    public suspend fun preWarmedInstanceCount(`value`: Output) {
        this.preWarmedInstanceCount = value
    }

    /**
     * @param value Should Remote Debugging be enabled. Defaults to `false`.
     */
    @JvmName("efsxbsxxujvwnfex")
    public suspend fun remoteDebuggingEnabled(`value`: Output) {
        this.remoteDebuggingEnabled = value
    }

    /**
     * @param value The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022`.
     */
    @JvmName("cfhcwjbjyyoqhtoq")
    public suspend fun remoteDebuggingVersion(`value`: Output) {
        this.remoteDebuggingVersion = value
    }

    /**
     * @param value Should Scale Monitoring of the Functions Runtime be enabled?
     * > **NOTE:** Functions runtime scale monitoring can only be enabled for Elastic Premium Function Apps or Workflow Standard Logic Apps and requires a minimum prewarmed instance count of 1.
     */
    @JvmName("rjyaxbgwgmgeoqtx")
    public suspend fun runtimeScaleMonitoringEnabled(`value`: Output) {
        this.runtimeScaleMonitoringEnabled = value
    }

    /**
     * @param value The Default action for traffic that does not match any `scm_ip_restriction` rule. possible values include `Allow` and `Deny`. Defaults to `Allow`.
     */
    @JvmName("jiiafqaqikiajyhn")
    public suspend fun scmIpRestrictionDefaultAction(`value`: Output) {
        this.scmIpRestrictionDefaultAction = value
    }

    /**
     * @param value One or more `scm_ip_restriction` blocks as defined above.
     */
    @JvmName("kvquyldnauqhffvo")
    public suspend fun scmIpRestrictions(`value`: Output>) {
        this.scmIpRestrictions = value
    }

    @JvmName("oxlqueclqvqjptru")
    public suspend fun scmIpRestrictions(vararg values: Output) {
        this.scmIpRestrictions = Output.all(values.asList())
    }

    /**
     * @param values One or more `scm_ip_restriction` blocks as defined above.
     */
    @JvmName("hhfvbfyblstaabsd")
    public suspend fun scmIpRestrictions(values: List>) {
        this.scmIpRestrictions = Output.all(values)
    }

    /**
     * @param value Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`.
     */
    @JvmName("tfmplbdxpuwvwfni")
    public suspend fun scmMinimumTlsVersion(`value`: Output) {
        this.scmMinimumTlsVersion = value
    }

    /**
     * @param value The SCM Type in use by the Linux Function App.
     */
    @JvmName("jmpcenoxdvcitlea")
    public suspend fun scmType(`value`: Output) {
        this.scmType = value
    }

    /**
     * @param value Should the Linux Function App `ip_restriction` configuration be used for the SCM also.
     */
    @JvmName("ctreylvdnvyfrwrw")
    public suspend fun scmUseMainIpRestriction(`value`: Output) {
        this.scmUseMainIpRestriction = value
    }

    /**
     * @param value Should the Linux Web App use a 32-bit worker process. Defaults to `false`.
     */
    @JvmName("afjwmbqdvwdgmarg")
    public suspend fun use32BitWorker(`value`: Output) {
        this.use32BitWorker = value
    }

    /**
     * @param value Should all outbound traffic to have NAT Gateways, Network Security Groups and User Defined Routes applied? Defaults to `false`.
     */
    @JvmName("lpjplnjbogogfxkw")
    public suspend fun vnetRouteAllEnabled(`value`: Output) {
        this.vnetRouteAllEnabled = value
    }

    /**
     * @param value Should Web Sockets be enabled. Defaults to `false`.
     */
    @JvmName("dyojfchlmigwebmu")
    public suspend fun websocketsEnabled(`value`: Output) {
        this.websocketsEnabled = value
    }

    /**
     * @param value The number of Workers for this Linux Function App.
     */
    @JvmName("wxokyxvhualolkyg")
    public suspend fun workerCount(`value`: Output) {
        this.workerCount = value
    }

    /**
     * @param value If this Linux Web App is Always On enabled. Defaults to `false`.
     * > **NOTE:** when running in a Consumption or Premium Plan, `always_on` feature should be turned off. Please turn it off before upgrading the service plan from standard to premium.
     */
    @JvmName("bkmjlasxmmiwctdi")
    public suspend fun alwaysOn(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alwaysOn = mapped
    }

    /**
     * @param value The URL of the API definition that describes this Linux Function App.
     */
    @JvmName("mispiiackvtldllf")
    public suspend fun apiDefinitionUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiDefinitionUrl = mapped
    }

    /**
     * @param value The ID of the API Management API for this Linux Function App.
     */
    @JvmName("dakpqmuwvujubnfy")
    public suspend fun apiManagementApiId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiManagementApiId = mapped
    }

    /**
     * @param value The App command line to launch.
     */
    @JvmName("pijwrfxgrqkoknbl")
    public suspend fun appCommandLine(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appCommandLine = mapped
    }

    /**
     * @param value The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.
     */
    @JvmName("ampriohcbuynhpbn")
    public suspend fun appScaleLimit(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appScaleLimit = mapped
    }

    /**
     * @param value An `app_service_logs` block as defined above.
     */
    @JvmName("qfylkpqqqmciucns")
    public suspend fun appServiceLogs(`value`: LinuxFunctionAppSiteConfigAppServiceLogsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appServiceLogs = mapped
    }

    /**
     * @param argument An `app_service_logs` block as defined above.
     */
    @JvmName("bthpvepgqebfqmtf")
    public suspend fun appServiceLogs(argument: suspend LinuxFunctionAppSiteConfigAppServiceLogsArgsBuilder.() -> Unit) {
        val toBeMapped = LinuxFunctionAppSiteConfigAppServiceLogsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.appServiceLogs = mapped
    }

    /**
     * @param value The Connection String for linking the Linux Function App to Application Insights.
     */
    @JvmName("oymepcibrdxogqoj")
    public suspend fun applicationInsightsConnectionString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationInsightsConnectionString = mapped
    }

    /**
     * @param value The Instrumentation Key for connecting the Linux Function App to Application Insights.
     */
    @JvmName("nyuwuvoncsuhundj")
    public suspend fun applicationInsightsKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationInsightsKey = mapped
    }

    /**
     * @param value An `application_stack` block as defined above.
     * > **Note:** If this is set, there must not be an application setting `FUNCTIONS_WORKER_RUNTIME`.
     */
    @JvmName("syjuetrxfabgryqc")
    public suspend fun applicationStack(`value`: LinuxFunctionAppSiteConfigApplicationStackArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationStack = mapped
    }

    /**
     * @param argument An `application_stack` block as defined above.
     * > **Note:** If this is set, there must not be an application setting `FUNCTIONS_WORKER_RUNTIME`.
     */
    @JvmName("sayeywchbmojhotc")
    public suspend fun applicationStack(argument: suspend LinuxFunctionAppSiteConfigApplicationStackArgsBuilder.() -> Unit) {
        val toBeMapped = LinuxFunctionAppSiteConfigApplicationStackArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.applicationStack = mapped
    }

    /**
     * @param value The Client ID of the Managed Service Identity to use for connections to the Azure Container Registry.
     */
    @JvmName("qiwyoyglalpjhljv")
    public suspend fun containerRegistryManagedIdentityClientId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerRegistryManagedIdentityClientId = mapped
    }

    /**
     * @param value Should connections for Azure Container Registry use Managed Identity.
     */
    @JvmName("qoafcxwjiiircgpb")
    public suspend fun containerRegistryUseManagedIdentity(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerRegistryUseManagedIdentity = mapped
    }

    /**
     * @param value A `cors` block as defined above.
     */
    @JvmName("fqrkimkyroxngaef")
    public suspend fun cors(`value`: LinuxFunctionAppSiteConfigCorsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cors = mapped
    }

    /**
     * @param argument A `cors` block as defined above.
     */
    @JvmName("jxqfqlxuosbfrine")
    public suspend fun cors(argument: suspend LinuxFunctionAppSiteConfigCorsArgsBuilder.() -> Unit) {
        val toBeMapped = LinuxFunctionAppSiteConfigCorsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.cors = mapped
    }

    /**
     * @param value Specifies a list of Default Documents for the Linux Web App.
     */
    @JvmName("aqvlaeusehwolwtv")
    public suspend fun defaultDocuments(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultDocuments = mapped
    }

    /**
     * @param values Specifies a list of Default Documents for the Linux Web App.
     */
    @JvmName("gyfdmylsyruywcxg")
    public suspend fun defaultDocuments(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultDocuments = mapped
    }

    /**
     * @param value Is detailed error logging enabled
     */
    @JvmName("tslaeiisywpemikd")
    public suspend fun detailedErrorLoggingEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.detailedErrorLoggingEnabled = mapped
    }

    /**
     * @param value The number of minimum instances for this Linux Function App. Only affects apps on Elastic Premium plans.
     */
    @JvmName("ehbutlmpnxiwfrfa")
    public suspend fun elasticInstanceMinimum(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.elasticInstanceMinimum = mapped
    }

    /**
     * @param value State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`.
     */
    @JvmName("rhmxaikbqixllucy")
    public suspend fun ftpsState(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ftpsState = mapped
    }

    /**
     * @param value The amount of time in minutes that a node can be unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`.
     */
    @JvmName("lubgiblutisimaky")
    public suspend fun healthCheckEvictionTimeInMin(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.healthCheckEvictionTimeInMin = mapped
    }

    /**
     * @param value The path to be checked for this function app health.
     */
    @JvmName("qsulpiwmhjyhhelp")
    public suspend fun healthCheckPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.healthCheckPath = mapped
    }

    /**
     * @param value Specifies if the HTTP2 protocol should be enabled. Defaults to `false`.
     */
    @JvmName("gfxjspggasbcdirr")
    public suspend fun http2Enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.http2Enabled = mapped
    }

    /**
     * @param value The Default action for traffic that does not match any `ip_restriction` rule. possible values include `Allow` and `Deny`. Defaults to `Allow`.
     */
    @JvmName("jjryxffyjcgjodig")
    public suspend fun ipRestrictionDefaultAction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipRestrictionDefaultAction = mapped
    }

    /**
     * @param value One or more `ip_restriction` blocks as defined above.
     */
    @JvmName("ivigunvpuhcnmgbi")
    public suspend fun ipRestrictions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipRestrictions = mapped
    }

    /**
     * @param argument One or more `ip_restriction` blocks as defined above.
     */
    @JvmName("asdtffwcpvswpwyi")
    public suspend fun ipRestrictions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LinuxFunctionAppSiteConfigIpRestrictionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipRestrictions = mapped
    }

    /**
     * @param argument One or more `ip_restriction` blocks as defined above.
     */
    @JvmName("npocmdaxbsabrfgp")
    public suspend fun ipRestrictions(vararg argument: suspend LinuxFunctionAppSiteConfigIpRestrictionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LinuxFunctionAppSiteConfigIpRestrictionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ipRestrictions = mapped
    }

    /**
     * @param argument One or more `ip_restriction` blocks as defined above.
     */
    @JvmName("tixyiuuogvfpvxoo")
    public suspend fun ipRestrictions(argument: suspend LinuxFunctionAppSiteConfigIpRestrictionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            LinuxFunctionAppSiteConfigIpRestrictionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ipRestrictions = mapped
    }

    /**
     * @param values One or more `ip_restriction` blocks as defined above.
     */
    @JvmName("pvixlmxevgwcvagb")
    public suspend fun ipRestrictions(vararg values: LinuxFunctionAppSiteConfigIpRestrictionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipRestrictions = mapped
    }

    /**
     * @param value The Linux FX Version
     */
    @JvmName("hwyxfjxlvcvdghoq")
    public suspend fun linuxFxVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linuxFxVersion = mapped
    }

    /**
     * @param value The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted.
     */
    @JvmName("mbqtaxostwhwmiky")
    public suspend fun loadBalancingMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadBalancingMode = mapped
    }

    /**
     * @param value Managed pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`.
     */
    @JvmName("dfuvjmlsqkmdjfhm")
    public suspend fun managedPipelineMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedPipelineMode = mapped
    }

    /**
     * @param value The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`.
     */
    @JvmName("pqrguunsvxlhwwjt")
    public suspend fun minimumTlsVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimumTlsVersion = mapped
    }

    /**
     * @param value The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.
     */
    @JvmName("pqkigecvhwxeespm")
    public suspend fun preWarmedInstanceCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preWarmedInstanceCount = mapped
    }

    /**
     * @param value Should Remote Debugging be enabled. Defaults to `false`.
     */
    @JvmName("objwdhsbbaavcexa")
    public suspend fun remoteDebuggingEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.remoteDebuggingEnabled = mapped
    }

    /**
     * @param value The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022`.
     */
    @JvmName("pjlqhotlgnugmkit")
    public suspend fun remoteDebuggingVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.remoteDebuggingVersion = mapped
    }

    /**
     * @param value Should Scale Monitoring of the Functions Runtime be enabled?
     * > **NOTE:** Functions runtime scale monitoring can only be enabled for Elastic Premium Function Apps or Workflow Standard Logic Apps and requires a minimum prewarmed instance count of 1.
     */
    @JvmName("basfhgcomtdnwywk")
    public suspend fun runtimeScaleMonitoringEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimeScaleMonitoringEnabled = mapped
    }

    /**
     * @param value The Default action for traffic that does not match any `scm_ip_restriction` rule. possible values include `Allow` and `Deny`. Defaults to `Allow`.
     */
    @JvmName("aaurepvrwjdnfgxx")
    public suspend fun scmIpRestrictionDefaultAction(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scmIpRestrictionDefaultAction = mapped
    }

    /**
     * @param value One or more `scm_ip_restriction` blocks as defined above.
     */
    @JvmName("ojiyabqkuyscnpdu")
    public suspend fun scmIpRestrictions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scmIpRestrictions = mapped
    }

    /**
     * @param argument One or more `scm_ip_restriction` blocks as defined above.
     */
    @JvmName("kqvifstsyvrwbmka")
    public suspend fun scmIpRestrictions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LinuxFunctionAppSiteConfigScmIpRestrictionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.scmIpRestrictions = mapped
    }

    /**
     * @param argument One or more `scm_ip_restriction` blocks as defined above.
     */
    @JvmName("tkcsyadnjwwsnpfc")
    public suspend fun scmIpRestrictions(vararg argument: suspend LinuxFunctionAppSiteConfigScmIpRestrictionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LinuxFunctionAppSiteConfigScmIpRestrictionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.scmIpRestrictions = mapped
    }

    /**
     * @param argument One or more `scm_ip_restriction` blocks as defined above.
     */
    @JvmName("foyhujxfnwggnipn")
    public suspend fun scmIpRestrictions(argument: suspend LinuxFunctionAppSiteConfigScmIpRestrictionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            LinuxFunctionAppSiteConfigScmIpRestrictionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.scmIpRestrictions = mapped
    }

    /**
     * @param values One or more `scm_ip_restriction` blocks as defined above.
     */
    @JvmName("rwkfmeuwabjolioc")
    public suspend fun scmIpRestrictions(vararg values: LinuxFunctionAppSiteConfigScmIpRestrictionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scmIpRestrictions = mapped
    }

    /**
     * @param value Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`.
     */
    @JvmName("hxhsgakvpcfhnkwe")
    public suspend fun scmMinimumTlsVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scmMinimumTlsVersion = mapped
    }

    /**
     * @param value The SCM Type in use by the Linux Function App.
     */
    @JvmName("iyjloelouqeixctn")
    public suspend fun scmType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scmType = mapped
    }

    /**
     * @param value Should the Linux Function App `ip_restriction` configuration be used for the SCM also.
     */
    @JvmName("fmomqwklcppjfemy")
    public suspend fun scmUseMainIpRestriction(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scmUseMainIpRestriction = mapped
    }

    /**
     * @param value Should the Linux Web App use a 32-bit worker process. Defaults to `false`.
     */
    @JvmName("qxtknmgstlkdqwcf")
    public suspend fun use32BitWorker(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.use32BitWorker = mapped
    }

    /**
     * @param value Should all outbound traffic to have NAT Gateways, Network Security Groups and User Defined Routes applied? Defaults to `false`.
     */
    @JvmName("kwbyslssuxgsmjxl")
    public suspend fun vnetRouteAllEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vnetRouteAllEnabled = mapped
    }

    /**
     * @param value Should Web Sockets be enabled. Defaults to `false`.
     */
    @JvmName("jjvlhfywsgsofide")
    public suspend fun websocketsEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.websocketsEnabled = mapped
    }

    /**
     * @param value The number of Workers for this Linux Function App.
     */
    @JvmName("nwgprbtkuynylvhq")
    public suspend fun workerCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workerCount = mapped
    }

    internal fun build(): LinuxFunctionAppSiteConfigArgs = LinuxFunctionAppSiteConfigArgs(
        alwaysOn = alwaysOn,
        apiDefinitionUrl = apiDefinitionUrl,
        apiManagementApiId = apiManagementApiId,
        appCommandLine = appCommandLine,
        appScaleLimit = appScaleLimit,
        appServiceLogs = appServiceLogs,
        applicationInsightsConnectionString = applicationInsightsConnectionString,
        applicationInsightsKey = applicationInsightsKey,
        applicationStack = applicationStack,
        containerRegistryManagedIdentityClientId = containerRegistryManagedIdentityClientId,
        containerRegistryUseManagedIdentity = containerRegistryUseManagedIdentity,
        cors = cors,
        defaultDocuments = defaultDocuments,
        detailedErrorLoggingEnabled = detailedErrorLoggingEnabled,
        elasticInstanceMinimum = elasticInstanceMinimum,
        ftpsState = ftpsState,
        healthCheckEvictionTimeInMin = healthCheckEvictionTimeInMin,
        healthCheckPath = healthCheckPath,
        http2Enabled = http2Enabled,
        ipRestrictionDefaultAction = ipRestrictionDefaultAction,
        ipRestrictions = ipRestrictions,
        linuxFxVersion = linuxFxVersion,
        loadBalancingMode = loadBalancingMode,
        managedPipelineMode = managedPipelineMode,
        minimumTlsVersion = minimumTlsVersion,
        preWarmedInstanceCount = preWarmedInstanceCount,
        remoteDebuggingEnabled = remoteDebuggingEnabled,
        remoteDebuggingVersion = remoteDebuggingVersion,
        runtimeScaleMonitoringEnabled = runtimeScaleMonitoringEnabled,
        scmIpRestrictionDefaultAction = scmIpRestrictionDefaultAction,
        scmIpRestrictions = scmIpRestrictions,
        scmMinimumTlsVersion = scmMinimumTlsVersion,
        scmType = scmType,
        scmUseMainIpRestriction = scmUseMainIpRestriction,
        use32BitWorker = use32BitWorker,
        vnetRouteAllEnabled = vnetRouteAllEnabled,
        websocketsEnabled = websocketsEnabled,
        workerCount = workerCount,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy