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.
@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 acrUseManagedIdentityCredentials Are Managed Identity Credentials used for Azure Container Registry pull
* @property acrUserManagedIdentityClientId If using User Managed Identity, the User Managed Identity Client Id
* > **NOTE:** When using User Managed Identity with Azure Container Registry the Identity will need to have the [ACRPull role assigned](https://docs.microsoft.com/azure/container-registry/container-registry-authentication-managed-identity#example-1-access-with-a-user-assigned-identity)
* @property alwaysOn Should the slot be loaded at all times? Defaults to `false`.
* > **NOTE:** when using an App Service Plan in the `Free` or `Shared` Tiers `always_on` must be set to `false`.
* @property appCommandLine App command line to launch, e.g. `/sbin/myserver -b 0.0.0.0`.
* @property autoSwapSlotName The name of the slot to automatically swap to during deployment
* @property cors A `cors` block as defined below.
* @property defaultDocuments The ordering of default documents to load, if an address isn't specified.
* @property dotnetFrameworkVersion The version of the .NET framework's CLR used in this App Service Slot. Possible values are `v2.0` (which will use the latest version of the .NET framework for the .NET CLR v2 - currently `.net 3.5`), `v4.0` (which corresponds to the latest version of the .NET CLR v4 - which at the time of writing is `.net 4.7.1`), `v5.0` and `v6.0`. [For more information on which .NET CLR version to use based on the .NET framework you're targeting - please see this table](https://en.wikipedia.org/wiki/.NET_Framework_version_history#Overview). Defaults to `v4.0`.
* @property ftpsState State of FTP / FTPS service for this App Service Slot. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`.
* @property healthCheckPath The health check path to be pinged by App Service Slot. [For more information - please see App Service health check announcement](https://azure.github.io/AppService/2020/08/24/healthcheck-on-app-service.html).
* @property http2Enabled Is HTTP2 Enabled on this App Service? Defaults to `false`.
* @property ipRestrictions A list of objects representing ip restrictions as defined below.
* > **NOTE** User has to explicitly set `ip_restriction` to empty slice (`[]`) to remove it.
* @property javaContainer The Java Container to use. If specified `java_version` and `java_container_version` must also be specified. Possible values are `JAVA`, `JETTY`, and `TOMCAT`.
* @property javaContainerVersion The version of the Java Container to use. If specified `java_version` and `java_container` must also be specified.
* @property javaVersion The version of Java to use. If specified `java_container` and `java_container_version` must also be specified. Possible values are `1.7`, `1.8`, and `11` and their specific versions - except for Java 11 (e.g. `1.7.0_80`, `1.8.0_181`, `11`)
* @property linuxFxVersion Linux App Framework and version for the App Service Slot. Possible options are a Docker container (`DOCKER|`), a base-64 encoded Docker Compose file (`COMPOSE|${filebase64("compose.yml")}`) or a base-64 encoded Kubernetes Manifest (`KUBE|${filebase64("kubernetes.yml")}`).
* > **NOTE:** To set this property the App Service Plan to which the App belongs must be configured with `kind = "Linux"`, and `reserved = true` or the API will reject any value supplied.
* @property localMysqlEnabled Is "MySQL In App" Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
* > **NOTE:** MySQL In App is not intended for production environments and will not scale beyond a single instance. Instead you may wish to use Azure Database for MySQL.
* @property managedPipelineMode The Managed Pipeline Mode. Possible values are `Integrated` and `Classic`. Defaults to `Integrated`.
* @property minTlsVersion The minimum supported TLS version for the app service. Possible values are `1.0`, `1.1`, and `1.2`. Defaults to `1.2` for new app services.
* @property numberOfWorkers The scaled number of workers (for per site scaling) of this App Service Slot. Requires that `per_site_scaling` is enabled on the `azure.appservice.Plan`. [For more information - please see Microsoft documentation on high-density hosting](https://docs.microsoft.com/azure/app-service/manage-scale-per-app).
* @property phpVersion The version of PHP to use in this App Service Slot. Possible values are `5.5`, `5.6`, `7.0`, `7.1`, `7.2`, `7.3`, and `7.4`.
* @property pythonVersion The version of Python to use in this App Service Slot. Possible values are `2.7` and `3.4`.
* @property remoteDebuggingEnabled Is Remote Debugging Enabled? Defaults to `false`.
* @property remoteDebuggingVersion Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are `VS2017`, `VS2019`, and `VS2022`.
* @property scmIpRestrictions A list of `scm_ip_restriction` objects representing IP restrictions as defined below.
* > **NOTE** User has to explicitly set `scm_ip_restriction` to empty slice (`[]`) to remove it.
* @property scmType The type of Source Control enabled for this App Service Slot. Defaults to `None`. Possible values are: `BitbucketGit`, `BitbucketHg`, `CodePlexGit`, `CodePlexHg`, `Dropbox`, `ExternalGit`, `ExternalHg`, `GitHub`, `LocalGit`, `None`, `OneDrive`, `Tfs`, `VSO`, and `VSTSRM`
* @property scmUseMainIpRestriction IP security restrictions for scm to use main. Defaults to `false`.
* > **NOTE** Any `scm_ip_restriction` blocks configured are ignored by the service when `scm_use_main_ip_restriction` is set to `true`. Any scm restrictions will become active if this is subsequently set to `false` or removed.
* @property use32BitWorkerProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
* > **NOTE:** when using an App Service Plan in the `Free` or `Shared` Tiers `use_32_bit_worker_process` must be set to `true`.
* @property vnetRouteAllEnabled
* @property websocketsEnabled Should WebSockets be enabled?
* @property windowsFxVersion The Windows Docker container image (`DOCKER|`)
* Additional examples of how to run Containers via the `azure.appservice.Slot` resource can be found in the `./examples/app-service` directory within the GitHub Repository.
*/
public data class SlotSiteConfig(
public val acrUseManagedIdentityCredentials: Boolean? = null,
public val acrUserManagedIdentityClientId: String? = null,
public val alwaysOn: Boolean? = null,
public val appCommandLine: String? = null,
public val autoSwapSlotName: String? = null,
public val cors: SlotSiteConfigCors? = null,
public val defaultDocuments: List? = null,
public val dotnetFrameworkVersion: String? = null,
public val ftpsState: String? = null,
public val healthCheckPath: String? = null,
public val http2Enabled: Boolean? = null,
public val ipRestrictions: List? = null,
public val javaContainer: String? = null,
public val javaContainerVersion: String? = null,
public val javaVersion: String? = null,
public val linuxFxVersion: String? = null,
public val localMysqlEnabled: Boolean? = null,
public val managedPipelineMode: String? = null,
public val minTlsVersion: String? = null,
public val numberOfWorkers: Int? = null,
public val phpVersion: String? = null,
public val pythonVersion: String? = null,
public val remoteDebuggingEnabled: Boolean? = null,
public val remoteDebuggingVersion: String? = null,
public val scmIpRestrictions: List? = null,
public val scmType: String? = null,
public val scmUseMainIpRestriction: Boolean? = null,
public val use32BitWorkerProcess: Boolean? = null,
public val vnetRouteAllEnabled: Boolean? = null,
public val websocketsEnabled: Boolean? = null,
public val windowsFxVersion: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.appservice.outputs.SlotSiteConfig): SlotSiteConfig = SlotSiteConfig(
acrUseManagedIdentityCredentials = javaType.acrUseManagedIdentityCredentials().map({ args0 ->
args0
}).orElse(null),
acrUserManagedIdentityClientId = javaType.acrUserManagedIdentityClientId().map({ args0 ->
args0
}).orElse(null),
alwaysOn = javaType.alwaysOn().map({ args0 -> args0 }).orElse(null),
appCommandLine = javaType.appCommandLine().map({ args0 -> args0 }).orElse(null),
autoSwapSlotName = javaType.autoSwapSlotName().map({ args0 -> args0 }).orElse(null),
cors = javaType.cors().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.appservice.kotlin.outputs.SlotSiteConfigCors.Companion.toKotlin(args0)
})
}).orElse(null),
defaultDocuments = javaType.defaultDocuments().map({ args0 -> args0 }),
dotnetFrameworkVersion = javaType.dotnetFrameworkVersion().map({ args0 -> args0 }).orElse(null),
ftpsState = javaType.ftpsState().map({ args0 -> args0 }).orElse(null),
healthCheckPath = javaType.healthCheckPath().map({ args0 -> args0 }).orElse(null),
http2Enabled = javaType.http2Enabled().map({ args0 -> args0 }).orElse(null),
ipRestrictions = javaType.ipRestrictions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.appservice.kotlin.outputs.SlotSiteConfigIpRestriction.Companion.toKotlin(args0)
})
}),
javaContainer = javaType.javaContainer().map({ args0 -> args0 }).orElse(null),
javaContainerVersion = javaType.javaContainerVersion().map({ args0 -> args0 }).orElse(null),
javaVersion = javaType.javaVersion().map({ args0 -> args0 }).orElse(null),
linuxFxVersion = javaType.linuxFxVersion().map({ args0 -> args0 }).orElse(null),
localMysqlEnabled = javaType.localMysqlEnabled().map({ args0 -> args0 }).orElse(null),
managedPipelineMode = javaType.managedPipelineMode().map({ args0 -> args0 }).orElse(null),
minTlsVersion = javaType.minTlsVersion().map({ args0 -> args0 }).orElse(null),
numberOfWorkers = javaType.numberOfWorkers().map({ args0 -> args0 }).orElse(null),
phpVersion = javaType.phpVersion().map({ args0 -> args0 }).orElse(null),
pythonVersion = javaType.pythonVersion().map({ args0 -> args0 }).orElse(null),
remoteDebuggingEnabled = javaType.remoteDebuggingEnabled().map({ args0 -> args0 }).orElse(null),
remoteDebuggingVersion = javaType.remoteDebuggingVersion().map({ args0 -> args0 }).orElse(null),
scmIpRestrictions = javaType.scmIpRestrictions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.appservice.kotlin.outputs.SlotSiteConfigScmIpRestriction.Companion.toKotlin(args0)
})
}),
scmType = javaType.scmType().map({ args0 -> args0 }).orElse(null),
scmUseMainIpRestriction = javaType.scmUseMainIpRestriction().map({ args0 -> args0 }).orElse(null),
use32BitWorkerProcess = javaType.use32BitWorkerProcess().map({ args0 -> args0 }).orElse(null),
vnetRouteAllEnabled = javaType.vnetRouteAllEnabled().map({ args0 -> args0 }).orElse(null),
websocketsEnabled = javaType.websocketsEnabled().map({ args0 -> args0 }).orElse(null),
windowsFxVersion = javaType.windowsFxVersion().map({ args0 -> args0 }).orElse(null),
)
}
}