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.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin
import com.pulumi.azurenative.web.WebAppSlotArgs.builder
import com.pulumi.azurenative.web.kotlin.enums.ClientCertMode
import com.pulumi.azurenative.web.kotlin.enums.RedundancyMode
import com.pulumi.azurenative.web.kotlin.inputs.CloningInfoArgs
import com.pulumi.azurenative.web.kotlin.inputs.CloningInfoArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.web.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.HostNameSslStateArgs
import com.pulumi.azurenative.web.kotlin.inputs.HostNameSslStateArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.HostingEnvironmentProfileArgs
import com.pulumi.azurenative.web.kotlin.inputs.HostingEnvironmentProfileArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.web.kotlin.inputs.ManagedServiceIdentityArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.SiteConfigArgs
import com.pulumi.azurenative.web.kotlin.inputs.SiteConfigArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A web app, a mobile app backend, or an API app.
* Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-12-01.
* Other available API versions: 2016-08-01, 2018-11-01, 2020-10-01, 2023-01-01, 2023-12-01.
* ## Example Usage
* ### Clone web app slot
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var webAppSlot = new AzureNative.Web.WebAppSlot("webAppSlot", new()
* {
* CloningInfo = new AzureNative.Web.Inputs.CloningInfoArgs
* {
* AppSettingsOverrides =
* {
* { "Setting1", "NewValue1" },
* { "Setting3", "NewValue5" },
* },
* CloneCustomHostNames = true,
* CloneSourceControl = true,
* ConfigureLoadBalancing = false,
* HostingEnvironment = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites",
* Overwrite = false,
* SourceWebAppId = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478/slot/qa",
* SourceWebAppLocation = "West Europe",
* },
* Kind = "app",
* Location = "East US",
* Name = "sitef6141",
* ResourceGroupName = "testrg123",
* Slot = "staging",
* });
* });
* ```
* ```go
* package main
* import (
* web "github.com/pulumi/pulumi-azure-native-sdk/web/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := web.NewWebAppSlot(ctx, "webAppSlot", &web.WebAppSlotArgs{
* CloningInfo: &web.CloningInfoArgs{
* AppSettingsOverrides: pulumi.StringMap{
* "Setting1": pulumi.String("NewValue1"),
* "Setting3": pulumi.String("NewValue5"),
* },
* CloneCustomHostNames: pulumi.Bool(true),
* CloneSourceControl: pulumi.Bool(true),
* ConfigureLoadBalancing: pulumi.Bool(false),
* HostingEnvironment: pulumi.String("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites"),
* Overwrite: pulumi.Bool(false),
* SourceWebAppId: pulumi.String("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478/slot/qa"),
* SourceWebAppLocation: pulumi.String("West Europe"),
* },
* Kind: pulumi.String("app"),
* Location: pulumi.String("East US"),
* Name: pulumi.String("sitef6141"),
* ResourceGroupName: pulumi.String("testrg123"),
* Slot: pulumi.String("staging"),
* })
* 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.azurenative.web.WebAppSlot;
* import com.pulumi.azurenative.web.WebAppSlotArgs;
* import com.pulumi.azurenative.web.inputs.CloningInfoArgs;
* 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 webAppSlot = new WebAppSlot("webAppSlot", WebAppSlotArgs.builder()
* .cloningInfo(CloningInfoArgs.builder()
* .appSettingsOverrides(Map.ofEntries(
* Map.entry("Setting1", "NewValue1"),
* Map.entry("Setting3", "NewValue5")
* ))
* .cloneCustomHostNames(true)
* .cloneSourceControl(true)
* .configureLoadBalancing(false)
* .hostingEnvironment("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/hostingenvironments/aseforsites")
* .overwrite(false)
* .sourceWebAppId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg456/providers/Microsoft.Web/sites/srcsiteg478/slot/qa")
* .sourceWebAppLocation("West Europe")
* .build())
* .kind("app")
* .location("East US")
* .name("sitef6141")
* .resourceGroupName("testrg123")
* .slot("staging")
* .build());
* }
* }
* ```
* ### Create or Update Web App Slot
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var webAppSlot = new AzureNative.Web.WebAppSlot("webAppSlot", new()
* {
* Kind = "app",
* Location = "East US",
* Name = "sitef6141",
* ResourceGroupName = "testrg123",
* ServerFarmId = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp",
* Slot = "staging",
* });
* });
* ```
* ```go
* package main
* import (
* web "github.com/pulumi/pulumi-azure-native-sdk/web/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := web.NewWebAppSlot(ctx, "webAppSlot", &web.WebAppSlotArgs{
* Kind: pulumi.String("app"),
* Location: pulumi.String("East US"),
* Name: pulumi.String("sitef6141"),
* ResourceGroupName: pulumi.String("testrg123"),
* ServerFarmId: pulumi.String("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp"),
* Slot: pulumi.String("staging"),
* })
* 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.azurenative.web.WebAppSlot;
* import com.pulumi.azurenative.web.WebAppSlotArgs;
* 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 webAppSlot = new WebAppSlot("webAppSlot", WebAppSlotArgs.builder()
* .kind("app")
* .location("East US")
* .name("sitef6141")
* .resourceGroupName("testrg123")
* .serverFarmId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/DefaultAsp")
* .slot("staging")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:web:WebAppSlot sitef6141/staging /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}
* ```
* @property clientAffinityEnabled true to enable client affinity; false to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is true.
* @property clientCertEnabled true to enable client certificate authentication (TLS mutual authentication); otherwise, false. Default is false.
* @property clientCertExclusionPaths client certificate authentication comma-separated exclusion paths
* @property clientCertMode This composes with ClientCertEnabled setting.
* - ClientCertEnabled: false means ClientCert is ignored.
* - ClientCertEnabled: true and ClientCertMode: Required means ClientCert is required.
* - ClientCertEnabled: true and ClientCertMode: Optional means ClientCert is optional or accepted.
* @property cloningInfo If specified during app creation, the app is cloned from a source app.
* @property containerSize Size of the function container.
* @property customDomainVerificationId Unique identifier that verifies the custom domains assigned to the app. Customer will add this id to a txt record for verification.
* @property dailyMemoryTimeQuota Maximum allowed daily memory-time quota (applicable on dynamic apps only).
* @property enabled true if the app is enabled; otherwise, false. Setting this value to false disables the app (takes the app offline).
* @property extendedLocation Extended Location.
* @property hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames.
* @property hostNamesDisabled true to disable the public hostnames of the app; otherwise, false.
* If true, the app is only accessible via API management process.
* @property hostingEnvironmentProfile App Service Environment to use for the app.
* @property httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for
* http requests
* @property hyperV Hyper-V sandbox.
* @property identity Managed service identity.
* @property isXenon Obsolete: Hyper-V sandbox.
* @property keyVaultReferenceIdentity Identity to use for Key Vault Reference authentication.
* @property kind Kind of resource.
* @property location Resource Location.
* @property managedEnvironmentId Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}
* @property name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter.
* @property publicNetworkAccess Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled' or an empty string.
* @property redundancyMode Site redundancy mode
* @property reserved true if reserved; otherwise, false.
* @property resourceGroupName Name of the resource group to which the resource belongs.
* @property scmSiteAlsoStopped true to stop SCM (KUDU) site when the app is stopped; otherwise, false. The default is false.
* @property serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
* @property siteConfig Configuration of the app.
* @property slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot.
* @property storageAccountRequired Checks if Customer provided storage account is required
* @property tags Resource tags.
* @property virtualNetworkSubnetId Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.
* This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
* @property vnetContentShareEnabled To enable accessing content over virtual network
* @property vnetImagePullEnabled To enable pulling image over Virtual Network
* @property vnetRouteAllEnabled Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.
*/
public data class WebAppSlotArgs(
public val clientAffinityEnabled: Output? = null,
public val clientCertEnabled: Output? = null,
public val clientCertExclusionPaths: Output? = null,
public val clientCertMode: Output? = null,
public val cloningInfo: Output? = null,
public val containerSize: Output? = null,
public val customDomainVerificationId: Output? = null,
public val dailyMemoryTimeQuota: Output? = null,
public val enabled: Output? = null,
public val extendedLocation: Output? = null,
public val hostNameSslStates: Output>? = null,
public val hostNamesDisabled: Output? = null,
public val hostingEnvironmentProfile: Output? = null,
public val httpsOnly: Output? = null,
public val hyperV: Output? = null,
public val identity: Output? = null,
public val isXenon: Output? = null,
public val keyVaultReferenceIdentity: Output? = null,
public val kind: Output? = null,
public val location: Output? = null,
public val managedEnvironmentId: Output? = null,
public val name: Output? = null,
public val publicNetworkAccess: Output? = null,
public val redundancyMode: Output? = null,
public val reserved: Output? = null,
public val resourceGroupName: Output? = null,
public val scmSiteAlsoStopped: Output? = null,
public val serverFarmId: Output? = null,
public val siteConfig: Output? = null,
public val slot: Output? = null,
public val storageAccountRequired: Output? = null,
public val tags: Output