Please wait. This can take some minutes ...
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.
com.pulumi.azure.appservice.kotlin.EnvironmentArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appservice.kotlin
import com.pulumi.azure.appservice.EnvironmentArgs.builder
import com.pulumi.azure.appservice.kotlin.inputs.EnvironmentClusterSettingArgs
import com.pulumi.azure.appservice.kotlin.inputs.EnvironmentClusterSettingArgsBuilder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an App Service Environment.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "exampleRG1",
* location: "West Europe",
* });
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
* name: "example-vnet1",
* location: example.location,
* resourceGroupName: example.name,
* addressSpaces: ["10.0.0.0/16"],
* });
* const ase = new azure.network.Subnet("ase", {
* name: "asesubnet",
* resourceGroupName: example.name,
* virtualNetworkName: exampleVirtualNetwork.name,
* addressPrefixes: ["10.0.1.0/24"],
* });
* const gateway = new azure.network.Subnet("gateway", {
* name: "gatewaysubnet",
* resourceGroupName: example.name,
* virtualNetworkName: exampleVirtualNetwork.name,
* addressPrefixes: ["10.0.2.0/24"],
* });
* const exampleEnvironment = new azure.appservice.Environment("example", {
* name: "example-ase",
* resourceGroupName: example.name,
* subnetId: ase.id,
* pricingTier: "I2",
* frontEndScaleFactor: 10,
* internalLoadBalancingMode: "Web, Publishing",
* allowedUserIpCidrs: [
* "11.22.33.44/32",
* "55.66.77.0/24",
* ],
* clusterSettings: [{
* name: "DisableTls1.0",
* value: "1",
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="exampleRG1",
* location="West Europe")
* example_virtual_network = azure.network.VirtualNetwork("example",
* name="example-vnet1",
* location=example.location,
* resource_group_name=example.name,
* address_spaces=["10.0.0.0/16"])
* ase = azure.network.Subnet("ase",
* name="asesubnet",
* resource_group_name=example.name,
* virtual_network_name=example_virtual_network.name,
* address_prefixes=["10.0.1.0/24"])
* gateway = azure.network.Subnet("gateway",
* name="gatewaysubnet",
* resource_group_name=example.name,
* virtual_network_name=example_virtual_network.name,
* address_prefixes=["10.0.2.0/24"])
* example_environment = azure.appservice.Environment("example",
* name="example-ase",
* resource_group_name=example.name,
* subnet_id=ase.id,
* pricing_tier="I2",
* front_end_scale_factor=10,
* internal_load_balancing_mode="Web, Publishing",
* allowed_user_ip_cidrs=[
* "11.22.33.44/32",
* "55.66.77.0/24",
* ],
* cluster_settings=[{
* "name": "DisableTls1.0",
* "value": "1",
* }])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "exampleRG1",
* Location = "West Europe",
* });
* var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
* {
* Name = "example-vnet1",
* Location = example.Location,
* ResourceGroupName = example.Name,
* AddressSpaces = new[]
* {
* "10.0.0.0/16",
* },
* });
* var ase = new Azure.Network.Subnet("ase", new()
* {
* Name = "asesubnet",
* ResourceGroupName = example.Name,
* VirtualNetworkName = exampleVirtualNetwork.Name,
* AddressPrefixes = new[]
* {
* "10.0.1.0/24",
* },
* });
* var gateway = new Azure.Network.Subnet("gateway", new()
* {
* Name = "gatewaysubnet",
* ResourceGroupName = example.Name,
* VirtualNetworkName = exampleVirtualNetwork.Name,
* AddressPrefixes = new[]
* {
* "10.0.2.0/24",
* },
* });
* var exampleEnvironment = new Azure.AppService.Environment("example", new()
* {
* Name = "example-ase",
* ResourceGroupName = example.Name,
* SubnetId = ase.Id,
* PricingTier = "I2",
* FrontEndScaleFactor = 10,
* InternalLoadBalancingMode = "Web, Publishing",
* AllowedUserIpCidrs = new[]
* {
* "11.22.33.44/32",
* "55.66.77.0/24",
* },
* ClusterSettings = new[]
* {
* new Azure.AppService.Inputs.EnvironmentClusterSettingArgs
* {
* Name = "DisableTls1.0",
* Value = "1",
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("exampleRG1"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
* Name: pulumi.String("example-vnet1"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* AddressSpaces: pulumi.StringArray{
* pulumi.String("10.0.0.0/16"),
* },
* })
* if err != nil {
* return err
* }
* ase, err := network.NewSubnet(ctx, "ase", &network.SubnetArgs{
* Name: pulumi.String("asesubnet"),
* ResourceGroupName: example.Name,
* VirtualNetworkName: exampleVirtualNetwork.Name,
* AddressPrefixes: pulumi.StringArray{
* pulumi.String("10.0.1.0/24"),
* },
* })
* if err != nil {
* return err
* }
* _, err = network.NewSubnet(ctx, "gateway", &network.SubnetArgs{
* Name: pulumi.String("gatewaysubnet"),
* ResourceGroupName: example.Name,
* VirtualNetworkName: exampleVirtualNetwork.Name,
* AddressPrefixes: pulumi.StringArray{
* pulumi.String("10.0.2.0/24"),
* },
* })
* if err != nil {
* return err
* }
* _, err = appservice.NewEnvironment(ctx, "example", &appservice.EnvironmentArgs{
* Name: pulumi.String("example-ase"),
* ResourceGroupName: example.Name,
* SubnetId: ase.ID(),
* PricingTier: pulumi.String("I2"),
* FrontEndScaleFactor: pulumi.Int(10),
* InternalLoadBalancingMode: pulumi.String("Web, Publishing"),
* AllowedUserIpCidrs: pulumi.StringArray{
* pulumi.String("11.22.33.44/32"),
* pulumi.String("55.66.77.0/24"),
* },
* ClusterSettings: appservice.EnvironmentClusterSettingArray{
* &appservice.EnvironmentClusterSettingArgs{
* Name: pulumi.String("DisableTls1.0"),
* Value: pulumi.String("1"),
* },
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.network.VirtualNetwork;
* import com.pulumi.azure.network.VirtualNetworkArgs;
* import com.pulumi.azure.network.Subnet;
* import com.pulumi.azure.network.SubnetArgs;
* import com.pulumi.azure.appservice.Environment;
* import com.pulumi.azure.appservice.EnvironmentArgs;
* import com.pulumi.azure.appservice.inputs.EnvironmentClusterSettingArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("exampleRG1")
* .location("West Europe")
* .build());
* var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
* .name("example-vnet1")
* .location(example.location())
* .resourceGroupName(example.name())
* .addressSpaces("10.0.0.0/16")
* .build());
* var ase = new Subnet("ase", SubnetArgs.builder()
* .name("asesubnet")
* .resourceGroupName(example.name())
* .virtualNetworkName(exampleVirtualNetwork.name())
* .addressPrefixes("10.0.1.0/24")
* .build());
* var gateway = new Subnet("gateway", SubnetArgs.builder()
* .name("gatewaysubnet")
* .resourceGroupName(example.name())
* .virtualNetworkName(exampleVirtualNetwork.name())
* .addressPrefixes("10.0.2.0/24")
* .build());
* var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
* .name("example-ase")
* .resourceGroupName(example.name())
* .subnetId(ase.id())
* .pricingTier("I2")
* .frontEndScaleFactor(10)
* .internalLoadBalancingMode("Web, Publishing")
* .allowedUserIpCidrs(
* "11.22.33.44/32",
* "55.66.77.0/24")
* .clusterSettings(EnvironmentClusterSettingArgs.builder()
* .name("DisableTls1.0")
* .value("1")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: exampleRG1
* location: West Europe
* exampleVirtualNetwork:
* type: azure:network:VirtualNetwork
* name: example
* properties:
* name: example-vnet1
* location: ${example.location}
* resourceGroupName: ${example.name}
* addressSpaces:
* - 10.0.0.0/16
* ase:
* type: azure:network:Subnet
* properties:
* name: asesubnet
* resourceGroupName: ${example.name}
* virtualNetworkName: ${exampleVirtualNetwork.name}
* addressPrefixes:
* - 10.0.1.0/24
* gateway:
* type: azure:network:Subnet
* properties:
* name: gatewaysubnet
* resourceGroupName: ${example.name}
* virtualNetworkName: ${exampleVirtualNetwork.name}
* addressPrefixes:
* - 10.0.2.0/24
* exampleEnvironment:
* type: azure:appservice:Environment
* name: example
* properties:
* name: example-ase
* resourceGroupName: ${example.name}
* subnetId: ${ase.id}
* pricingTier: I2
* frontEndScaleFactor: 10
* internalLoadBalancingMode: Web, Publishing
* allowedUserIpCidrs:
* - 11.22.33.44/32
* - 55.66.77.0/24
* clusterSettings:
* - name: DisableTls1.0
* value: '1'
* ```
*
* ## Import
* The App Service Environment can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:appservice/environment:Environment myAppServiceEnv /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Web/hostingEnvironments/myAppServiceEnv
* ```
* @property allowedUserIpCidrs Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
* > **NOTE:** `allowed_user_ip_cidrs` The addresses that will be used for all outbound traffic from your App Service Environment to the internet to avoid asymmetric routing challenge. If you're routing the traffic on premises, these addresses are your NATs or gateway IPs. If you want to route the App Service Environment outbound traffic through an NVA, the egress address is the public IP of the NVA. Please visit [Create your ASE with the egress addresses](https://docs.microsoft.com/azure/app-service/environment/forced-tunnel-support#add-your-own-ips-to-the-ase-azure-sql-firewall)
* @property clusterSettings Zero or more `cluster_setting` blocks as defined below.
* @property frontEndScaleFactor Scale factor for front end instances. Possible values are between `5` and `15`. Defaults to `15`.
* @property internalLoadBalancingMode Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None`, `Web`, `Publishing` and combined value `"Web, Publishing"`. Defaults to `None`. Changing this forces a new resource to be created.
* @property name The name of the App Service Environment. Changing this forces a new resource to be created.
* @property pricingTier Pricing tier for the front end instances. Possible values are `I1`, `I2` and `I3`. Defaults to `I1`.
* @property resourceGroupName The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnet_id`).
* @property subnetId The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.
* > **NOTE** a /24 or larger CIDR is required. Once associated with an ASE this size cannot be changed.
* @property tags A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
*/
public data class EnvironmentArgs(
public val allowedUserIpCidrs: Output>? = null,
public val clusterSettings: Output>? = null,
public val frontEndScaleFactor: Output? = null,
public val internalLoadBalancingMode: Output? = null,
public val name: Output? = null,
public val pricingTier: Output? = null,
public val resourceGroupName: Output? = null,
public val subnetId: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appservice.EnvironmentArgs =
com.pulumi.azure.appservice.EnvironmentArgs.builder()
.allowedUserIpCidrs(allowedUserIpCidrs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.clusterSettings(
clusterSettings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.frontEndScaleFactor(frontEndScaleFactor?.applyValue({ args0 -> args0 }))
.internalLoadBalancingMode(internalLoadBalancingMode?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.pricingTier(pricingTier?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.subnetId(subnetId?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [EnvironmentArgs].
*/
@PulumiTagMarker
public class EnvironmentArgsBuilder internal constructor() {
private var allowedUserIpCidrs: Output>? = null
private var clusterSettings: Output>? = null
private var frontEndScaleFactor: Output? = null
private var internalLoadBalancingMode: Output? = null
private var name: Output? = null
private var pricingTier: Output? = null
private var resourceGroupName: Output? = null
private var subnetId: Output? = null
private var tags: Output>? = null
/**
* @param value Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
* > **NOTE:** `allowed_user_ip_cidrs` The addresses that will be used for all outbound traffic from your App Service Environment to the internet to avoid asymmetric routing challenge. If you're routing the traffic on premises, these addresses are your NATs or gateway IPs. If you want to route the App Service Environment outbound traffic through an NVA, the egress address is the public IP of the NVA. Please visit [Create your ASE with the egress addresses](https://docs.microsoft.com/azure/app-service/environment/forced-tunnel-support#add-your-own-ips-to-the-ase-azure-sql-firewall)
*/
@JvmName("rqawwydpoflomrdh")
public suspend fun allowedUserIpCidrs(`value`: Output>) {
this.allowedUserIpCidrs = value
}
@JvmName("tscwbopjmfkyjtrj")
public suspend fun allowedUserIpCidrs(vararg values: Output) {
this.allowedUserIpCidrs = Output.all(values.asList())
}
/**
* @param values Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
* > **NOTE:** `allowed_user_ip_cidrs` The addresses that will be used for all outbound traffic from your App Service Environment to the internet to avoid asymmetric routing challenge. If you're routing the traffic on premises, these addresses are your NATs or gateway IPs. If you want to route the App Service Environment outbound traffic through an NVA, the egress address is the public IP of the NVA. Please visit [Create your ASE with the egress addresses](https://docs.microsoft.com/azure/app-service/environment/forced-tunnel-support#add-your-own-ips-to-the-ase-azure-sql-firewall)
*/
@JvmName("uxfnhuqrxasbvmli")
public suspend fun allowedUserIpCidrs(values: List>) {
this.allowedUserIpCidrs = Output.all(values)
}
/**
* @param value Zero or more `cluster_setting` blocks as defined below.
*/
@JvmName("mlehharrbavmvfes")
public suspend fun clusterSettings(`value`: Output>) {
this.clusterSettings = value
}
@JvmName("ykltmhogbbrdcmsm")
public suspend fun clusterSettings(vararg values: Output) {
this.clusterSettings = Output.all(values.asList())
}
/**
* @param values Zero or more `cluster_setting` blocks as defined below.
*/
@JvmName("cyguwdqjrfxdnbbj")
public suspend fun clusterSettings(values: List>) {
this.clusterSettings = Output.all(values)
}
/**
* @param value Scale factor for front end instances. Possible values are between `5` and `15`. Defaults to `15`.
*/
@JvmName("uwhstloefrsnmdmg")
public suspend fun frontEndScaleFactor(`value`: Output) {
this.frontEndScaleFactor = value
}
/**
* @param value Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None`, `Web`, `Publishing` and combined value `"Web, Publishing"`. Defaults to `None`. Changing this forces a new resource to be created.
*/
@JvmName("vcoynwrfpopwjtto")
public suspend fun internalLoadBalancingMode(`value`: Output) {
this.internalLoadBalancingMode = value
}
/**
* @param value The name of the App Service Environment. Changing this forces a new resource to be created.
*/
@JvmName("xdfleeyhdqweetcf")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Pricing tier for the front end instances. Possible values are `I1`, `I2` and `I3`. Defaults to `I1`.
*/
@JvmName("mjpqppbndnnrilgc")
public suspend fun pricingTier(`value`: Output) {
this.pricingTier = value
}
/**
* @param value The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnet_id`).
*/
@JvmName("uweekoorsspeagmr")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.
* > **NOTE** a /24 or larger CIDR is required. Once associated with an ASE this size cannot be changed.
*/
@JvmName("ljdqcofxcvusnfdm")
public suspend fun subnetId(`value`: Output) {
this.subnetId = value
}
/**
* @param value A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
*/
@JvmName("htlrjvevlqnnkdft")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
* > **NOTE:** `allowed_user_ip_cidrs` The addresses that will be used for all outbound traffic from your App Service Environment to the internet to avoid asymmetric routing challenge. If you're routing the traffic on premises, these addresses are your NATs or gateway IPs. If you want to route the App Service Environment outbound traffic through an NVA, the egress address is the public IP of the NVA. Please visit [Create your ASE with the egress addresses](https://docs.microsoft.com/azure/app-service/environment/forced-tunnel-support#add-your-own-ips-to-the-ase-azure-sql-firewall)
*/
@JvmName("sxdjmcwpxeagjjis")
public suspend fun allowedUserIpCidrs(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowedUserIpCidrs = mapped
}
/**
* @param values Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.
* > **NOTE:** `allowed_user_ip_cidrs` The addresses that will be used for all outbound traffic from your App Service Environment to the internet to avoid asymmetric routing challenge. If you're routing the traffic on premises, these addresses are your NATs or gateway IPs. If you want to route the App Service Environment outbound traffic through an NVA, the egress address is the public IP of the NVA. Please visit [Create your ASE with the egress addresses](https://docs.microsoft.com/azure/app-service/environment/forced-tunnel-support#add-your-own-ips-to-the-ase-azure-sql-firewall)
*/
@JvmName("myoikpxlvpnodyyh")
public suspend fun allowedUserIpCidrs(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allowedUserIpCidrs = mapped
}
/**
* @param value Zero or more `cluster_setting` blocks as defined below.
*/
@JvmName("rlmhjnocxvdfcird")
public suspend fun clusterSettings(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterSettings = mapped
}
/**
* @param argument Zero or more `cluster_setting` blocks as defined below.
*/
@JvmName("llhnnlgcfvclnygf")
public suspend fun clusterSettings(argument: List Unit>) {
val toBeMapped = argument.toList().map {
EnvironmentClusterSettingArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.clusterSettings = mapped
}
/**
* @param argument Zero or more `cluster_setting` blocks as defined below.
*/
@JvmName("muurarleukdkljca")
public suspend fun clusterSettings(vararg argument: suspend EnvironmentClusterSettingArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
EnvironmentClusterSettingArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.clusterSettings = mapped
}
/**
* @param argument Zero or more `cluster_setting` blocks as defined below.
*/
@JvmName("ectqessgrfidxnux")
public suspend fun clusterSettings(argument: suspend EnvironmentClusterSettingArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
EnvironmentClusterSettingArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.clusterSettings = mapped
}
/**
* @param values Zero or more `cluster_setting` blocks as defined below.
*/
@JvmName("xnewywgrbiqvwlgl")
public suspend fun clusterSettings(vararg values: EnvironmentClusterSettingArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.clusterSettings = mapped
}
/**
* @param value Scale factor for front end instances. Possible values are between `5` and `15`. Defaults to `15`.
*/
@JvmName("xbeamtywchsddngv")
public suspend fun frontEndScaleFactor(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.frontEndScaleFactor = mapped
}
/**
* @param value Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are `None`, `Web`, `Publishing` and combined value `"Web, Publishing"`. Defaults to `None`. Changing this forces a new resource to be created.
*/
@JvmName("ntgshtcimcwjqlal")
public suspend fun internalLoadBalancingMode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.internalLoadBalancingMode = mapped
}
/**
* @param value The name of the App Service Environment. Changing this forces a new resource to be created.
*/
@JvmName("oewdkrfnvvmwnyrh")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Pricing tier for the front end instances. Possible values are `I1`, `I2` and `I3`. Defaults to `I1`.
*/
@JvmName("fpakqhiptrvlerfs")
public suspend fun pricingTier(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pricingTier = mapped
}
/**
* @param value The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by `subnet_id`).
*/
@JvmName("oltjbcrfsibwmayt")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.
* > **NOTE** a /24 or larger CIDR is required. Once associated with an ASE this size cannot be changed.
*/
@JvmName("pdwvnliefsheutpo")
public suspend fun subnetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subnetId = mapped
}
/**
* @param value A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
*/
@JvmName("ktmntxglwhlnumae")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
*/
@JvmName("yivqowfhtcypfrsg")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): EnvironmentArgs = EnvironmentArgs(
allowedUserIpCidrs = allowedUserIpCidrs,
clusterSettings = clusterSettings,
frontEndScaleFactor = frontEndScaleFactor,
internalLoadBalancingMode = internalLoadBalancingMode,
name = name,
pricingTier = pricingTier,
resourceGroupName = resourceGroupName,
subnetId = subnetId,
tags = tags,
)
}