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

com.pulumi.azure.appservice.kotlin.outputs.GetFunctionAppSiteConfig.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property alwaysOn Is the app loaded at all times?
 * @property appScaleLimit The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.
 * @property autoSwapSlotName
 * @property cors A `cors` block as defined above.
 * @property dotnetFrameworkVersion The version of the .NET framework's CLR used in this App Service.
 * @property elasticInstanceMinimum The number of minimum instances for this function app. Only applicable to apps on the Premium plan.
 * @property ftpsState State of FTP / FTPS service for this AppService.
 * @property healthCheckPath
 * @property http2Enabled Is HTTP2 Enabled on this App Service?
 * @property ipRestrictions One or more `ip_restriction` blocks as defined above.
 * @property javaVersion Java version hosted by the function app in Azure.
 * @property linuxFxVersion Linux App Framework and version for the AppService.
 * @property minTlsVersion The minimum supported TLS version for this App Service.
 * @property preWarmedInstanceCount The number of pre-warmed instances for this function app. Only applicable to apps on the Premium plan.
 * @property runtimeScaleMonitoringEnabled Is Runtime Scale Monitoring Enabled on this function app?
 * @property scmIpRestrictions One or more `scm_ip_restriction` blocks as defined above.
 * @property scmType The type of Source Control enabled for this App Service.
 * @property scmUseMainIpRestriction IP security restrictions for scm to use main.
 * @property use32BitWorkerProcess Does the App Service run in 32 bit mode, rather than 64 bit mode?
 * @property vnetRouteAllEnabled (Optional) Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied?
 * @property websocketsEnabled Are WebSockets enabled for this App Service?
 */
public data class GetFunctionAppSiteConfig(
    public val alwaysOn: Boolean,
    public val appScaleLimit: Int,
    public val autoSwapSlotName: String,
    public val cors: GetFunctionAppSiteConfigCors,
    public val dotnetFrameworkVersion: String,
    public val elasticInstanceMinimum: Int,
    public val ftpsState: String,
    public val healthCheckPath: String,
    public val http2Enabled: Boolean,
    public val ipRestrictions: List,
    public val javaVersion: String,
    public val linuxFxVersion: String,
    public val minTlsVersion: String,
    public val preWarmedInstanceCount: Int,
    public val runtimeScaleMonitoringEnabled: Boolean,
    public val scmIpRestrictions: List,
    public val scmType: String,
    public val scmUseMainIpRestriction: Boolean,
    public val use32BitWorkerProcess: Boolean,
    public val vnetRouteAllEnabled: Boolean,
    public val websocketsEnabled: Boolean,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.GetFunctionAppSiteConfig): GetFunctionAppSiteConfig = GetFunctionAppSiteConfig(
            alwaysOn = javaType.alwaysOn(),
            appScaleLimit = javaType.appScaleLimit(),
            autoSwapSlotName = javaType.autoSwapSlotName(),
            cors = javaType.cors().let({ args0 ->
                com.pulumi.azure.appservice.kotlin.outputs.GetFunctionAppSiteConfigCors.Companion.toKotlin(args0)
            }),
            dotnetFrameworkVersion = javaType.dotnetFrameworkVersion(),
            elasticInstanceMinimum = javaType.elasticInstanceMinimum(),
            ftpsState = javaType.ftpsState(),
            healthCheckPath = javaType.healthCheckPath(),
            http2Enabled = javaType.http2Enabled(),
            ipRestrictions = javaType.ipRestrictions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.appservice.kotlin.outputs.GetFunctionAppSiteConfigIpRestriction.Companion.toKotlin(args0)
                })
            }),
            javaVersion = javaType.javaVersion(),
            linuxFxVersion = javaType.linuxFxVersion(),
            minTlsVersion = javaType.minTlsVersion(),
            preWarmedInstanceCount = javaType.preWarmedInstanceCount(),
            runtimeScaleMonitoringEnabled = javaType.runtimeScaleMonitoringEnabled(),
            scmIpRestrictions = javaType.scmIpRestrictions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.appservice.kotlin.outputs.GetFunctionAppSiteConfigScmIpRestriction.Companion.toKotlin(args0)
                })
            }),
            scmType = javaType.scmType(),
            scmUseMainIpRestriction = javaType.scmUseMainIpRestriction(),
            use32BitWorkerProcess = javaType.use32BitWorkerProcess(),
            vnetRouteAllEnabled = javaType.vnetRouteAllEnabled(),
            websocketsEnabled = javaType.websocketsEnabled(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy