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.azurenative.web.kotlin
import com.pulumi.azurenative.web.AppServicePlanArgs.builder
import com.pulumi.azurenative.web.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.web.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.HostingEnvironmentProfileArgs
import com.pulumi.azurenative.web.kotlin.inputs.HostingEnvironmentProfileArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.KubeEnvironmentProfileArgs
import com.pulumi.azurenative.web.kotlin.inputs.KubeEnvironmentProfileArgsBuilder
import com.pulumi.azurenative.web.kotlin.inputs.SkuDescriptionArgs
import com.pulumi.azurenative.web.kotlin.inputs.SkuDescriptionArgsBuilder
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.Map
import kotlin.jvm.JvmName
/**
* App Service plan.
* Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-12-01.
* Other available API versions: 2016-09-01, 2020-10-01, 2023-01-01, 2023-12-01.
* ## Example Usage
* ### Create Or Update App Service plan
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var appServicePlan = new AzureNative.Web.AppServicePlan("appServicePlan", new()
* {
* Kind = "app",
* Location = "East US",
* Name = "testsf6141",
* ResourceGroupName = "testrg123",
* Sku = new AzureNative.Web.Inputs.SkuDescriptionArgs
* {
* Capacity = 1,
* Family = "P",
* Name = "P1",
* Size = "P1",
* Tier = "Premium",
* },
* });
* });
* ```
* ```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.NewAppServicePlan(ctx, "appServicePlan", &web.AppServicePlanArgs{
* Kind: pulumi.String("app"),
* Location: pulumi.String("East US"),
* Name: pulumi.String("testsf6141"),
* ResourceGroupName: pulumi.String("testrg123"),
* Sku: &web.SkuDescriptionArgs{
* Capacity: pulumi.Int(1),
* Family: pulumi.String("P"),
* Name: pulumi.String("P1"),
* Size: pulumi.String("P1"),
* Tier: pulumi.String("Premium"),
* },
* })
* 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.AppServicePlan;
* import com.pulumi.azurenative.web.AppServicePlanArgs;
* import com.pulumi.azurenative.web.inputs.SkuDescriptionArgs;
* 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 appServicePlan = new AppServicePlan("appServicePlan", AppServicePlanArgs.builder()
* .kind("app")
* .location("East US")
* .name("testsf6141")
* .resourceGroupName("testrg123")
* .sku(SkuDescriptionArgs.builder()
* .capacity(1)
* .family("P")
* .name("P1")
* .size("P1")
* .tier("Premium")
* .build())
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:web:AppServicePlan testsf6141 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}
* ```
* @property elasticScaleEnabled ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku
* @property extendedLocation Extended Location.
* @property freeOfferExpirationTime The time when the server farm free offer expires.
* @property hostingEnvironmentProfile Specification for the App Service Environment to use for the App Service plan.
* @property hyperV If Hyper-V container app service plan true, false otherwise.
* @property isSpot If true, this App Service Plan owns spot instances.
* @property isXenon Obsolete: If Hyper-V container app service plan true, false otherwise.
* @property kind Kind of resource.
* @property kubeEnvironmentProfile Specification for the Kubernetes Environment to use for the App Service plan.
* @property location Resource Location.
* @property maximumElasticWorkerCount Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan
* @property name Name of the App Service plan.
* @property perSiteScaling If true, apps assigned to this App Service plan can be scaled independently.
* If false, apps assigned to this App Service plan will scale to all instances of the plan.
* @property reserved If Linux app service plan true, false otherwise.
* @property resourceGroupName Name of the resource group to which the resource belongs.
* @property sku Description of a SKU for a scalable resource.
* @property spotExpirationTime The time when the server farm expires. Valid only if it is a spot server farm.
* @property tags Resource tags.
* @property targetWorkerCount Scaling worker count.
* @property targetWorkerSizeId Scaling worker size ID.
* @property workerTierName Target worker tier assigned to the App Service plan.
* @property zoneRedundant If true, this App Service Plan will perform availability zone balancing.
* If false, this App Service Plan will not perform availability zone balancing.
*/
public data class AppServicePlanArgs(
public val elasticScaleEnabled: Output? = null,
public val extendedLocation: Output? = null,
public val freeOfferExpirationTime: Output? = null,
public val hostingEnvironmentProfile: Output? = null,
public val hyperV: Output? = null,
public val isSpot: Output? = null,
public val isXenon: Output? = null,
public val kind: Output? = null,
public val kubeEnvironmentProfile: Output? = null,
public val location: Output? = null,
public val maximumElasticWorkerCount: Output? = null,
public val name: Output? = null,
public val perSiteScaling: Output? = null,
public val reserved: Output? = null,
public val resourceGroupName: Output? = null,
public val sku: Output? = null,
public val spotExpirationTime: Output? = null,
public val tags: Output