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

com.pulumi.azure.appservice.kotlin.FunctionAppArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin

import com.pulumi.azure.appservice.FunctionAppArgs.builder
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppAuthSettingsArgs
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppAuthSettingsArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppConnectionStringArgs
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppConnectionStringArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppIdentityArgs
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppIdentityArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppSiteConfigArgs
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppSiteConfigArgsBuilder
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppSourceControlArgs
import com.pulumi.azure.appservice.kotlin.inputs.FunctionAppSourceControlArgsBuilder
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

/**
 * Manages a Function App.
 * !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `azure.appservice.LinuxFunctionApp` resources instead.
 * > **Note:** To connect an Azure Function App and a subnet within the same region `azure.appservice.VirtualNetworkSwiftConnection` can be used.
 * For an example, check the `azure.appservice.VirtualNetworkSwiftConnection` documentation.
 * ## Example Usage
 * ### With App Service Plan)
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "azure-functions-test-rg",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "functionsapptestsa",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "LRS",
 * });
 * const examplePlan = new azure.appservice.Plan("example", {
 *     name: "azure-functions-test-service-plan",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     sku: {
 *         tier: "Standard",
 *         size: "S1",
 *     },
 * });
 * const exampleFunctionApp = new azure.appservice.FunctionApp("example", {
 *     name: "test-azure-functions",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     appServicePlanId: examplePlan.id,
 *     storageAccountName: exampleAccount.name,
 *     storageAccountAccessKey: exampleAccount.primaryAccessKey,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="azure-functions-test-rg",
 *     location="West Europe")
 * example_account = azure.storage.Account("example",
 *     name="functionsapptestsa",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="LRS")
 * example_plan = azure.appservice.Plan("example",
 *     name="azure-functions-test-service-plan",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     sku={
 *         "tier": "Standard",
 *         "size": "S1",
 *     })
 * example_function_app = azure.appservice.FunctionApp("example",
 *     name="test-azure-functions",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     app_service_plan_id=example_plan.id,
 *     storage_account_name=example_account.name,
 *     storage_account_access_key=example_account.primary_access_key)
 * ```
 * ```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 = "azure-functions-test-rg",
 *         Location = "West Europe",
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "functionsapptestsa",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "LRS",
 *     });
 *     var examplePlan = new Azure.AppService.Plan("example", new()
 *     {
 *         Name = "azure-functions-test-service-plan",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Sku = new Azure.AppService.Inputs.PlanSkuArgs
 *         {
 *             Tier = "Standard",
 *             Size = "S1",
 *         },
 *     });
 *     var exampleFunctionApp = new Azure.AppService.FunctionApp("example", new()
 *     {
 *         Name = "test-azure-functions",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         AppServicePlanId = examplePlan.Id,
 *         StorageAccountName = exampleAccount.Name,
 *         StorageAccountAccessKey = exampleAccount.PrimaryAccessKey,
 *     });
 * });
 * ```
 * ```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/storage"
 * 	"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("azure-functions-test-rg"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("functionsapptestsa"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{
 * 			Name:              pulumi.String("azure-functions-test-service-plan"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Sku: &appservice.PlanSkuArgs{
 * 				Tier: pulumi.String("Standard"),
 * 				Size: pulumi.String("S1"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = appservice.NewFunctionApp(ctx, "example", &appservice.FunctionAppArgs{
 * 			Name:                    pulumi.String("test-azure-functions"),
 * 			Location:                example.Location,
 * 			ResourceGroupName:       example.Name,
 * 			AppServicePlanId:        examplePlan.ID(),
 * 			StorageAccountName:      exampleAccount.Name,
 * 			StorageAccountAccessKey: exampleAccount.PrimaryAccessKey,
 * 		})
 * 		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.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.appservice.Plan;
 * import com.pulumi.azure.appservice.PlanArgs;
 * import com.pulumi.azure.appservice.inputs.PlanSkuArgs;
 * import com.pulumi.azure.appservice.FunctionApp;
 * import com.pulumi.azure.appservice.FunctionAppArgs;
 * 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("azure-functions-test-rg")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("functionsapptestsa")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .build());
 *         var examplePlan = new Plan("examplePlan", PlanArgs.builder()
 *             .name("azure-functions-test-service-plan")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .sku(PlanSkuArgs.builder()
 *                 .tier("Standard")
 *                 .size("S1")
 *                 .build())
 *             .build());
 *         var exampleFunctionApp = new FunctionApp("exampleFunctionApp", FunctionAppArgs.builder()
 *             .name("test-azure-functions")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .appServicePlanId(examplePlan.id())
 *             .storageAccountName(exampleAccount.name())
 *             .storageAccountAccessKey(exampleAccount.primaryAccessKey())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: azure-functions-test-rg
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: functionsapptestsa
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *   examplePlan:
 *     type: azure:appservice:Plan
 *     name: example
 *     properties:
 *       name: azure-functions-test-service-plan
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       sku:
 *         tier: Standard
 *         size: S1
 *   exampleFunctionApp:
 *     type: azure:appservice:FunctionApp
 *     name: example
 *     properties:
 *       name: test-azure-functions
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       appServicePlanId: ${examplePlan.id}
 *       storageAccountName: ${exampleAccount.name}
 *       storageAccountAccessKey: ${exampleAccount.primaryAccessKey}
 * ```
 * 
 * ### In A Consumption Plan)
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "azure-functions-cptest-rg",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "functionsapptestsa",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "LRS",
 * });
 * const examplePlan = new azure.appservice.Plan("example", {
 *     name: "azure-functions-test-service-plan",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     kind: "FunctionApp",
 *     sku: {
 *         tier: "Dynamic",
 *         size: "Y1",
 *     },
 * });
 * const exampleFunctionApp = new azure.appservice.FunctionApp("example", {
 *     name: "test-azure-functions",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     appServicePlanId: examplePlan.id,
 *     storageAccountName: exampleAccount.name,
 *     storageAccountAccessKey: exampleAccount.primaryAccessKey,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="azure-functions-cptest-rg",
 *     location="West Europe")
 * example_account = azure.storage.Account("example",
 *     name="functionsapptestsa",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="LRS")
 * example_plan = azure.appservice.Plan("example",
 *     name="azure-functions-test-service-plan",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     kind="FunctionApp",
 *     sku={
 *         "tier": "Dynamic",
 *         "size": "Y1",
 *     })
 * example_function_app = azure.appservice.FunctionApp("example",
 *     name="test-azure-functions",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     app_service_plan_id=example_plan.id,
 *     storage_account_name=example_account.name,
 *     storage_account_access_key=example_account.primary_access_key)
 * ```
 * ```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 = "azure-functions-cptest-rg",
 *         Location = "West Europe",
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "functionsapptestsa",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "LRS",
 *     });
 *     var examplePlan = new Azure.AppService.Plan("example", new()
 *     {
 *         Name = "azure-functions-test-service-plan",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Kind = "FunctionApp",
 *         Sku = new Azure.AppService.Inputs.PlanSkuArgs
 *         {
 *             Tier = "Dynamic",
 *             Size = "Y1",
 *         },
 *     });
 *     var exampleFunctionApp = new Azure.AppService.FunctionApp("example", new()
 *     {
 *         Name = "test-azure-functions",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         AppServicePlanId = examplePlan.Id,
 *         StorageAccountName = exampleAccount.Name,
 *         StorageAccountAccessKey = exampleAccount.PrimaryAccessKey,
 *     });
 * });
 * ```
 * ```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/storage"
 * 	"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("azure-functions-cptest-rg"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("functionsapptestsa"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{
 * 			Name:              pulumi.String("azure-functions-test-service-plan"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Kind:              pulumi.Any("FunctionApp"),
 * 			Sku: &appservice.PlanSkuArgs{
 * 				Tier: pulumi.String("Dynamic"),
 * 				Size: pulumi.String("Y1"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = appservice.NewFunctionApp(ctx, "example", &appservice.FunctionAppArgs{
 * 			Name:                    pulumi.String("test-azure-functions"),
 * 			Location:                example.Location,
 * 			ResourceGroupName:       example.Name,
 * 			AppServicePlanId:        examplePlan.ID(),
 * 			StorageAccountName:      exampleAccount.Name,
 * 			StorageAccountAccessKey: exampleAccount.PrimaryAccessKey,
 * 		})
 * 		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.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.appservice.Plan;
 * import com.pulumi.azure.appservice.PlanArgs;
 * import com.pulumi.azure.appservice.inputs.PlanSkuArgs;
 * import com.pulumi.azure.appservice.FunctionApp;
 * import com.pulumi.azure.appservice.FunctionAppArgs;
 * 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("azure-functions-cptest-rg")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("functionsapptestsa")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .build());
 *         var examplePlan = new Plan("examplePlan", PlanArgs.builder()
 *             .name("azure-functions-test-service-plan")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .kind("FunctionApp")
 *             .sku(PlanSkuArgs.builder()
 *                 .tier("Dynamic")
 *                 .size("Y1")
 *                 .build())
 *             .build());
 *         var exampleFunctionApp = new FunctionApp("exampleFunctionApp", FunctionAppArgs.builder()
 *             .name("test-azure-functions")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .appServicePlanId(examplePlan.id())
 *             .storageAccountName(exampleAccount.name())
 *             .storageAccountAccessKey(exampleAccount.primaryAccessKey())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: azure-functions-cptest-rg
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: functionsapptestsa
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *   examplePlan:
 *     type: azure:appservice:Plan
 *     name: example
 *     properties:
 *       name: azure-functions-test-service-plan
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       kind: FunctionApp
 *       sku:
 *         tier: Dynamic
 *         size: Y1
 *   exampleFunctionApp:
 *     type: azure:appservice:FunctionApp
 *     name: example
 *     properties:
 *       name: test-azure-functions
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       appServicePlanId: ${examplePlan.id}
 *       storageAccountName: ${exampleAccount.name}
 *       storageAccountAccessKey: ${exampleAccount.primaryAccessKey}
 * ```
 * 
 * ### Linux)
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "azure-functions-cptest-rg",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "functionsapptestsa",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "LRS",
 * });
 * const examplePlan = new azure.appservice.Plan("example", {
 *     name: "azure-functions-test-service-plan",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     kind: "Linux",
 *     reserved: true,
 *     sku: {
 *         tier: "Dynamic",
 *         size: "Y1",
 *     },
 * });
 * const exampleFunctionApp = new azure.appservice.FunctionApp("example", {
 *     name: "test-azure-functions",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     appServicePlanId: examplePlan.id,
 *     storageAccountName: exampleAccount.name,
 *     storageAccountAccessKey: exampleAccount.primaryAccessKey,
 *     osType: "linux",
 *     version: "~3",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="azure-functions-cptest-rg",
 *     location="West Europe")
 * example_account = azure.storage.Account("example",
 *     name="functionsapptestsa",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="LRS")
 * example_plan = azure.appservice.Plan("example",
 *     name="azure-functions-test-service-plan",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     kind="Linux",
 *     reserved=True,
 *     sku={
 *         "tier": "Dynamic",
 *         "size": "Y1",
 *     })
 * example_function_app = azure.appservice.FunctionApp("example",
 *     name="test-azure-functions",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     app_service_plan_id=example_plan.id,
 *     storage_account_name=example_account.name,
 *     storage_account_access_key=example_account.primary_access_key,
 *     os_type="linux",
 *     version="~3")
 * ```
 * ```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 = "azure-functions-cptest-rg",
 *         Location = "West Europe",
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "functionsapptestsa",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "LRS",
 *     });
 *     var examplePlan = new Azure.AppService.Plan("example", new()
 *     {
 *         Name = "azure-functions-test-service-plan",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Kind = "Linux",
 *         Reserved = true,
 *         Sku = new Azure.AppService.Inputs.PlanSkuArgs
 *         {
 *             Tier = "Dynamic",
 *             Size = "Y1",
 *         },
 *     });
 *     var exampleFunctionApp = new Azure.AppService.FunctionApp("example", new()
 *     {
 *         Name = "test-azure-functions",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         AppServicePlanId = examplePlan.Id,
 *         StorageAccountName = exampleAccount.Name,
 *         StorageAccountAccessKey = exampleAccount.PrimaryAccessKey,
 *         OsType = "linux",
 *         Version = "~3",
 *     });
 * });
 * ```
 * ```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/storage"
 * 	"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("azure-functions-cptest-rg"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("functionsapptestsa"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		examplePlan, err := appservice.NewPlan(ctx, "example", &appservice.PlanArgs{
 * 			Name:              pulumi.String("azure-functions-test-service-plan"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Kind:              pulumi.Any("Linux"),
 * 			Reserved:          pulumi.Bool(true),
 * 			Sku: &appservice.PlanSkuArgs{
 * 				Tier: pulumi.String("Dynamic"),
 * 				Size: pulumi.String("Y1"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = appservice.NewFunctionApp(ctx, "example", &appservice.FunctionAppArgs{
 * 			Name:                    pulumi.String("test-azure-functions"),
 * 			Location:                example.Location,
 * 			ResourceGroupName:       example.Name,
 * 			AppServicePlanId:        examplePlan.ID(),
 * 			StorageAccountName:      exampleAccount.Name,
 * 			StorageAccountAccessKey: exampleAccount.PrimaryAccessKey,
 * 			OsType:                  pulumi.String("linux"),
 * 			Version:                 pulumi.String("~3"),
 * 		})
 * 		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.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.appservice.Plan;
 * import com.pulumi.azure.appservice.PlanArgs;
 * import com.pulumi.azure.appservice.inputs.PlanSkuArgs;
 * import com.pulumi.azure.appservice.FunctionApp;
 * import com.pulumi.azure.appservice.FunctionAppArgs;
 * 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("azure-functions-cptest-rg")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("functionsapptestsa")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .build());
 *         var examplePlan = new Plan("examplePlan", PlanArgs.builder()
 *             .name("azure-functions-test-service-plan")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .kind("Linux")
 *             .reserved(true)
 *             .sku(PlanSkuArgs.builder()
 *                 .tier("Dynamic")
 *                 .size("Y1")
 *                 .build())
 *             .build());
 *         var exampleFunctionApp = new FunctionApp("exampleFunctionApp", FunctionAppArgs.builder()
 *             .name("test-azure-functions")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .appServicePlanId(examplePlan.id())
 *             .storageAccountName(exampleAccount.name())
 *             .storageAccountAccessKey(exampleAccount.primaryAccessKey())
 *             .osType("linux")
 *             .version("~3")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: azure-functions-cptest-rg
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: functionsapptestsa
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *   examplePlan:
 *     type: azure:appservice:Plan
 *     name: example
 *     properties:
 *       name: azure-functions-test-service-plan
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       kind: Linux
 *       reserved: true
 *       sku:
 *         tier: Dynamic
 *         size: Y1
 *   exampleFunctionApp:
 *     type: azure:appservice:FunctionApp
 *     name: example
 *     properties:
 *       name: test-azure-functions
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       appServicePlanId: ${examplePlan.id}
 *       storageAccountName: ${exampleAccount.name}
 *       storageAccountAccessKey: ${exampleAccount.primaryAccessKey}
 *       osType: linux
 *       version: ~3
 * ```
 * 
 * > **Note:** Version `~3` or `~4` is required for Linux Function Apps.
 * ### Python In A Consumption Plan)
 * 
 * ```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.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.appservice.Plan;
 * import com.pulumi.azure.appservice.PlanArgs;
 * import com.pulumi.azure.appservice.inputs.PlanSkuArgs;
 * import com.pulumi.azure.appservice.FunctionApp;
 * import com.pulumi.azure.appservice.FunctionAppArgs;
 * import com.pulumi.azure.appservice.inputs.FunctionAppSiteConfigArgs;
 * 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("azure-functions-example-rg")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("functionsappexamlpesa")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .build());
 *         var examplePlan = new Plan("examplePlan", PlanArgs.builder()
 *             .name("azure-functions-example-sp")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .kind("Linux")
 *             .reserved(true)
 *             .sku(PlanSkuArgs.builder()
 *                 .tier("Dynamic")
 *                 .size("Y1")
 *                 .build())
 *             .build());
 *         var exampleFunctionApp = new FunctionApp("exampleFunctionApp", FunctionAppArgs.builder()
 *             .name("example-azure-function")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .appServicePlanId(examplePlan.id())
 *             .storageAccountName(exampleAccount.name())
 *             .storageAccountAccessKey(exampleAccount.primaryAccessKey())
 *             .osType("linux")
 *             .version("~4")
 *             .appSettings(Map.of("FUNCTIONS_WORKER_RUNTIME", "python"))
 *             .siteConfig(FunctionAppSiteConfigArgs.builder()
 *                 .linuxFxVersion("python|3.9")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: azure-functions-example-rg
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: functionsappexamlpesa
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *   examplePlan:
 *     type: azure:appservice:Plan
 *     name: example
 *     properties:
 *       name: azure-functions-example-sp
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       kind: Linux
 *       reserved: true
 *       sku:
 *         tier: Dynamic
 *         size: Y1
 *   exampleFunctionApp:
 *     type: azure:appservice:FunctionApp
 *     name: example
 *     properties:
 *       name: example-azure-function
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       appServicePlanId: ${examplePlan.id}
 *       storageAccountName: ${exampleAccount.name}
 *       storageAccountAccessKey: ${exampleAccount.primaryAccessKey}
 *       osType: linux
 *       version: ~4
 *       appSettings:
 *         - FUNCTIONS_WORKER_RUNTIME: python
 *       siteConfig:
 *         linuxFxVersion: python|3.9
 * ```
 * 
 * > **Note:** The Python runtime is only supported on a Linux based hosting plan.  See [the documentation for additional information](https://docs.microsoft.com/azure/azure-functions/functions-reference-python).
 * ## Import
 * Function Apps can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:appservice/functionApp:FunctionApp functionapp1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/functionapp1
 * ```
 * @property appServicePlanId The ID of the App Service Plan within which to create this Function App.
 * @property appSettings A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
 * > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storage_account_name` and `storage_account_access_key`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`.
 * @property authSettings A `auth_settings` block as defined below.
 * @property clientCertMode The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
 * @property connectionStrings An `connection_string` block as defined below.
 * @property dailyMemoryTimeQuota The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan.
 * @property enableBuiltinLogging Should the built-in logging of this Function App be enabled? Defaults to `true`.
 * @property enabled Is the Function App enabled? Defaults to `true`.
 * @property httpsOnly Can the Function App only be accessed via HTTPS? Defaults to `false`.
 * @property identity An `identity` block as defined below.
 * @property keyVaultReferenceIdentityId The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information.
 * @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property name Specifies the name of the Function App. Changing this forces a new resource to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftweb).
 * @property osType A string indicating the Operating System type for this function app. Possible values are `linux` and ``(empty string). Changing this forces a new resource to be created. Defaults to `""`.
 * > **NOTE:** This value will be `linux` for Linux derivatives, or an empty string for Windows (default). When set to `linux` you must also set `azure.appservice.Plan` arguments as `kind = "Linux"` and `reserved = true`
 * @property resourceGroupName The name of the resource group in which to create the Function App. Changing this forces a new resource to be created.
 * @property siteConfig A `site_config` object as defined below.
 * @property sourceControl A `source_control` block, as defined below.
 * @property storageAccountAccessKey The access key which will be used to access the backend storage account for the Function App.
 * > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`).
 * > **Note:**  When using an App Service Plan in the `Free` or `Shared` Tiers `use_32_bit_worker_process` must be set to `true`.
 * @property storageAccountName The backend storage account name which will be used by this Function App (such as the dashboard, logs). Changing this forces a new resource to be created.
 * @property tags A mapping of tags to assign to the resource.
 * @property version The runtime version associated with the Function App. Defaults to `~1`.
 */
public data class FunctionAppArgs(
    public val appServicePlanId: Output? = null,
    public val appSettings: Output>? = null,
    public val authSettings: Output? = null,
    public val clientCertMode: Output? = null,
    public val connectionStrings: Output>? = null,
    public val dailyMemoryTimeQuota: Output? = null,
    public val enableBuiltinLogging: Output? = null,
    public val enabled: Output? = null,
    public val httpsOnly: Output? = null,
    public val identity: Output? = null,
    public val keyVaultReferenceIdentityId: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val osType: Output? = null,
    public val resourceGroupName: Output? = null,
    public val siteConfig: Output? = null,
    public val sourceControl: Output? = null,
    public val storageAccountAccessKey: Output? = null,
    public val storageAccountName: Output? = null,
    public val tags: Output>? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.FunctionAppArgs =
        com.pulumi.azure.appservice.FunctionAppArgs.builder()
            .appServicePlanId(appServicePlanId?.applyValue({ args0 -> args0 }))
            .appSettings(
                appSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .authSettings(authSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .clientCertMode(clientCertMode?.applyValue({ args0 -> args0 }))
            .connectionStrings(
                connectionStrings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .dailyMemoryTimeQuota(dailyMemoryTimeQuota?.applyValue({ args0 -> args0 }))
            .enableBuiltinLogging(enableBuiltinLogging?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .httpsOnly(httpsOnly?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyVaultReferenceIdentityId(keyVaultReferenceIdentityId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .osType(osType?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .siteConfig(siteConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sourceControl(sourceControl?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .storageAccountAccessKey(storageAccountAccessKey?.applyValue({ args0 -> args0 }))
            .storageAccountName(storageAccountName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FunctionAppArgs].
 */
@PulumiTagMarker
public class FunctionAppArgsBuilder internal constructor() {
    private var appServicePlanId: Output? = null

    private var appSettings: Output>? = null

    private var authSettings: Output? = null

    private var clientCertMode: Output? = null

    private var connectionStrings: Output>? = null

    private var dailyMemoryTimeQuota: Output? = null

    private var enableBuiltinLogging: Output? = null

    private var enabled: Output? = null

    private var httpsOnly: Output? = null

    private var identity: Output? = null

    private var keyVaultReferenceIdentityId: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var osType: Output? = null

    private var resourceGroupName: Output? = null

    private var siteConfig: Output? = null

    private var sourceControl: Output? = null

    private var storageAccountAccessKey: Output? = null

    private var storageAccountName: Output? = null

    private var tags: Output>? = null

    private var version: Output? = null

    /**
     * @param value The ID of the App Service Plan within which to create this Function App.
     */
    @JvmName("ifuebwvjabkijmyf")
    public suspend fun appServicePlanId(`value`: Output) {
        this.appServicePlanId = value
    }

    /**
     * @param value A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
     * > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storage_account_name` and `storage_account_access_key`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`.
     */
    @JvmName("tgrpxqsdmxbuxuff")
    public suspend fun appSettings(`value`: Output>) {
        this.appSettings = value
    }

    /**
     * @param value A `auth_settings` block as defined below.
     */
    @JvmName("bhrbbkhitysnlern")
    public suspend fun authSettings(`value`: Output) {
        this.authSettings = value
    }

    /**
     * @param value The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
     */
    @JvmName("figuoigygtkqvnxn")
    public suspend fun clientCertMode(`value`: Output) {
        this.clientCertMode = value
    }

    /**
     * @param value An `connection_string` block as defined below.
     */
    @JvmName("afwpxwkklelmwiwe")
    public suspend fun connectionStrings(`value`: Output>) {
        this.connectionStrings = value
    }

    @JvmName("pyqngsbwydeetqep")
    public suspend fun connectionStrings(vararg values: Output) {
        this.connectionStrings = Output.all(values.asList())
    }

    /**
     * @param values An `connection_string` block as defined below.
     */
    @JvmName("qdqhsrlggediakfp")
    public suspend fun connectionStrings(values: List>) {
        this.connectionStrings = Output.all(values)
    }

    /**
     * @param value The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan.
     */
    @JvmName("xihnrxirawtboojl")
    public suspend fun dailyMemoryTimeQuota(`value`: Output) {
        this.dailyMemoryTimeQuota = value
    }

    /**
     * @param value Should the built-in logging of this Function App be enabled? Defaults to `true`.
     */
    @JvmName("bjmysyvwmovedrqa")
    public suspend fun enableBuiltinLogging(`value`: Output) {
        this.enableBuiltinLogging = value
    }

    /**
     * @param value Is the Function App enabled? Defaults to `true`.
     */
    @JvmName("ndmiripfvvyfvesb")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Can the Function App only be accessed via HTTPS? Defaults to `false`.
     */
    @JvmName("qxnomsjnqwpdajax")
    public suspend fun httpsOnly(`value`: Output) {
        this.httpsOnly = value
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("tdfbhsonxeloqarb")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information.
     */
    @JvmName("dpigwvfuggfknepn")
    public suspend fun keyVaultReferenceIdentityId(`value`: Output) {
        this.keyVaultReferenceIdentityId = value
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("mplpatqwusdyfyyd")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Specifies the name of the Function App. Changing this forces a new resource to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftweb).
     */
    @JvmName("cickochgcjpamagk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A string indicating the Operating System type for this function app. Possible values are `linux` and ``(empty string). Changing this forces a new resource to be created. Defaults to `""`.
     * > **NOTE:** This value will be `linux` for Linux derivatives, or an empty string for Windows (default). When set to `linux` you must also set `azure.appservice.Plan` arguments as `kind = "Linux"` and `reserved = true`
     */
    @JvmName("iutejjfgiubmyhtr")
    public suspend fun osType(`value`: Output) {
        this.osType = value
    }

    /**
     * @param value The name of the resource group in which to create the Function App. Changing this forces a new resource to be created.
     */
    @JvmName("byflemulocewhpox")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A `site_config` object as defined below.
     */
    @JvmName("gsxrfgytcfmewson")
    public suspend fun siteConfig(`value`: Output) {
        this.siteConfig = value
    }

    /**
     * @param value A `source_control` block, as defined below.
     */
    @JvmName("kfsleivcxwrmuqlo")
    public suspend fun sourceControl(`value`: Output) {
        this.sourceControl = value
    }

    /**
     * @param value The access key which will be used to access the backend storage account for the Function App.
     * > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`).
     * > **Note:**  When using an App Service Plan in the `Free` or `Shared` Tiers `use_32_bit_worker_process` must be set to `true`.
     */
    @JvmName("hmvfffitdquiykbd")
    public suspend fun storageAccountAccessKey(`value`: Output) {
        this.storageAccountAccessKey = value
    }

    /**
     * @param value The backend storage account name which will be used by this Function App (such as the dashboard, logs). Changing this forces a new resource to be created.
     */
    @JvmName("pehoufqsakejkkcx")
    public suspend fun storageAccountName(`value`: Output) {
        this.storageAccountName = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("tqmuaoghvesdvbdo")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The runtime version associated with the Function App. Defaults to `~1`.
     */
    @JvmName("jqanqcreffmxgter")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value The ID of the App Service Plan within which to create this Function App.
     */
    @JvmName("xrmjqdfblqbfsiyv")
    public suspend fun appServicePlanId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appServicePlanId = mapped
    }

    /**
     * @param value A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
     * > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storage_account_name` and `storage_account_access_key`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`.
     */
    @JvmName("ycqtjswyhlsbnysa")
    public suspend fun appSettings(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appSettings = mapped
    }

    /**
     * @param values A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values.
     * > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storage_account_name` and `storage_account_access_key`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`.
     */
    @JvmName("rlxndhnteuivyrhb")
    public fun appSettings(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.appSettings = mapped
    }

    /**
     * @param value A `auth_settings` block as defined below.
     */
    @JvmName("puicdltdrxdrunwe")
    public suspend fun authSettings(`value`: FunctionAppAuthSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authSettings = mapped
    }

    /**
     * @param argument A `auth_settings` block as defined below.
     */
    @JvmName("ncsjbiorriwtmpgr")
    public suspend fun authSettings(argument: suspend FunctionAppAuthSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = FunctionAppAuthSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.authSettings = mapped
    }

    /**
     * @param value The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
     */
    @JvmName("urfqsaymfcwdaphc")
    public suspend fun clientCertMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientCertMode = mapped
    }

    /**
     * @param value An `connection_string` block as defined below.
     */
    @JvmName("cbcntlyglskhikyq")
    public suspend fun connectionStrings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionStrings = mapped
    }

    /**
     * @param argument An `connection_string` block as defined below.
     */
    @JvmName("tfxucmvhrpcxuieb")
    public suspend fun connectionStrings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FunctionAppConnectionStringArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.connectionStrings = mapped
    }

    /**
     * @param argument An `connection_string` block as defined below.
     */
    @JvmName("frajisrejyxiwyar")
    public suspend fun connectionStrings(vararg argument: suspend FunctionAppConnectionStringArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FunctionAppConnectionStringArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.connectionStrings = mapped
    }

    /**
     * @param argument An `connection_string` block as defined below.
     */
    @JvmName("dqfenupjjbhscplk")
    public suspend fun connectionStrings(argument: suspend FunctionAppConnectionStringArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FunctionAppConnectionStringArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.connectionStrings = mapped
    }

    /**
     * @param values An `connection_string` block as defined below.
     */
    @JvmName("osmicqjkwrgliqhc")
    public suspend fun connectionStrings(vararg values: FunctionAppConnectionStringArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.connectionStrings = mapped
    }

    /**
     * @param value The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan.
     */
    @JvmName("qqjfoxviicaddqub")
    public suspend fun dailyMemoryTimeQuota(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dailyMemoryTimeQuota = mapped
    }

    /**
     * @param value Should the built-in logging of this Function App be enabled? Defaults to `true`.
     */
    @JvmName("ydcwjqgwnqhpuyqy")
    public suspend fun enableBuiltinLogging(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableBuiltinLogging = mapped
    }

    /**
     * @param value Is the Function App enabled? Defaults to `true`.
     */
    @JvmName("fwdkqgbeoaaueoih")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Can the Function App only be accessed via HTTPS? Defaults to `false`.
     */
    @JvmName("twhvhupldajcccau")
    public suspend fun httpsOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpsOnly = mapped
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("rpxfdapbdwmyqoaa")
    public suspend fun identity(`value`: FunctionAppIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below.
     */
    @JvmName("rtukeeqtbocgxlbw")
    public suspend fun identity(argument: suspend FunctionAppIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = FunctionAppIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value The User Assigned Identity Id used for looking up KeyVault secrets. The identity must be assigned to the application. See [Access vaults with a user-assigned identity](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references#access-vaults-with-a-user-assigned-identity) for more information.
     */
    @JvmName("klqjbpqafrcjymvx")
    public suspend fun keyVaultReferenceIdentityId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyVaultReferenceIdentityId = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("cyipydlypqbxduig")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Specifies the name of the Function App. Changing this forces a new resource to be created. Limit the function name to 32 characters to avoid naming collisions. For more information about [Function App naming rule](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftweb).
     */
    @JvmName("xaeckbpsrgnkipmr")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A string indicating the Operating System type for this function app. Possible values are `linux` and ``(empty string). Changing this forces a new resource to be created. Defaults to `""`.
     * > **NOTE:** This value will be `linux` for Linux derivatives, or an empty string for Windows (default). When set to `linux` you must also set `azure.appservice.Plan` arguments as `kind = "Linux"` and `reserved = true`
     */
    @JvmName("odwgkpyyixiujexr")
    public suspend fun osType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.osType = mapped
    }

    /**
     * @param value The name of the resource group in which to create the Function App. Changing this forces a new resource to be created.
     */
    @JvmName("yovdqxrlqoofvhcf")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A `site_config` object as defined below.
     */
    @JvmName("qeapfwnjdkvvpdtm")
    public suspend fun siteConfig(`value`: FunctionAppSiteConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.siteConfig = mapped
    }

    /**
     * @param argument A `site_config` object as defined below.
     */
    @JvmName("ojapvkfdolyqopmo")
    public suspend fun siteConfig(argument: suspend FunctionAppSiteConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FunctionAppSiteConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.siteConfig = mapped
    }

    /**
     * @param value A `source_control` block, as defined below.
     */
    @JvmName("pmhyjrocsjtfvbur")
    public suspend fun sourceControl(`value`: FunctionAppSourceControlArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceControl = mapped
    }

    /**
     * @param argument A `source_control` block, as defined below.
     */
    @JvmName("mpbioaysgbtcuxtj")
    public suspend fun sourceControl(argument: suspend FunctionAppSourceControlArgsBuilder.() -> Unit) {
        val toBeMapped = FunctionAppSourceControlArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceControl = mapped
    }

    /**
     * @param value The access key which will be used to access the backend storage account for the Function App.
     * > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`).
     * > **Note:**  When using an App Service Plan in the `Free` or `Shared` Tiers `use_32_bit_worker_process` must be set to `true`.
     */
    @JvmName("eahijknynaldsort")
    public suspend fun storageAccountAccessKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAccountAccessKey = mapped
    }

    /**
     * @param value The backend storage account name which will be used by this Function App (such as the dashboard, logs). Changing this forces a new resource to be created.
     */
    @JvmName("tnnfejowdhuhhupv")
    public suspend fun storageAccountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAccountName = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("cfpntnfwjimhtvdt")
    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.
     */
    @JvmName("xqtcsgpotudbtgma")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The runtime version associated with the Function App. Defaults to `~1`.
     */
    @JvmName("knhehdnixgkvxkym")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): FunctionAppArgs = FunctionAppArgs(
        appServicePlanId = appServicePlanId,
        appSettings = appSettings,
        authSettings = authSettings,
        clientCertMode = clientCertMode,
        connectionStrings = connectionStrings,
        dailyMemoryTimeQuota = dailyMemoryTimeQuota,
        enableBuiltinLogging = enableBuiltinLogging,
        enabled = enabled,
        httpsOnly = httpsOnly,
        identity = identity,
        keyVaultReferenceIdentityId = keyVaultReferenceIdentityId,
        location = location,
        name = name,
        osType = osType,
        resourceGroupName = resourceGroupName,
        siteConfig = siteConfig,
        sourceControl = sourceControl,
        storageAccountAccessKey = storageAccountAccessKey,
        storageAccountName = storageAccountName,
        tags = tags,
        version = version,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy