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.logicapps.kotlin.StandardArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.logicapps.kotlin
import com.pulumi.azure.logicapps.StandardArgs.builder
import com.pulumi.azure.logicapps.kotlin.inputs.StandardConnectionStringArgs
import com.pulumi.azure.logicapps.kotlin.inputs.StandardConnectionStringArgsBuilder
import com.pulumi.azure.logicapps.kotlin.inputs.StandardIdentityArgs
import com.pulumi.azure.logicapps.kotlin.inputs.StandardIdentityArgsBuilder
import com.pulumi.azure.logicapps.kotlin.inputs.StandardSiteConfigArgs
import com.pulumi.azure.logicapps.kotlin.inputs.StandardSiteConfigArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a Logic App (Standard / Single Tenant)
* ## 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,
* kind: "elastic",
* sku: {
* tier: "WorkflowStandard",
* size: "WS1",
* },
* });
* const exampleStandard = new azure.logicapps.Standard("example", {
* name: "test-azure-functions",
* location: example.location,
* resourceGroupName: example.name,
* appServicePlanId: examplePlan.id,
* storageAccountName: exampleAccount.name,
* storageAccountAccessKey: exampleAccount.primaryAccessKey,
* appSettings: {
* FUNCTIONS_WORKER_RUNTIME: "node",
* WEBSITE_NODE_DEFAULT_VERSION: "~18",
* },
* });
* ```
* ```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,
* kind="elastic",
* sku={
* "tier": "WorkflowStandard",
* "size": "WS1",
* })
* example_standard = azure.logicapps.Standard("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,
* app_settings={
* "FUNCTIONS_WORKER_RUNTIME": "node",
* "WEBSITE_NODE_DEFAULT_VERSION": "~18",
* })
* ```
* ```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,
* Kind = "elastic",
* Sku = new Azure.AppService.Inputs.PlanSkuArgs
* {
* Tier = "WorkflowStandard",
* Size = "WS1",
* },
* });
* var exampleStandard = new Azure.LogicApps.Standard("example", new()
* {
* Name = "test-azure-functions",
* Location = example.Location,
* ResourceGroupName = example.Name,
* AppServicePlanId = examplePlan.Id,
* StorageAccountName = exampleAccount.Name,
* StorageAccountAccessKey = exampleAccount.PrimaryAccessKey,
* AppSettings =
* {
* { "FUNCTIONS_WORKER_RUNTIME", "node" },
* { "WEBSITE_NODE_DEFAULT_VERSION", "~18" },
* },
* });
* });
* ```
* ```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/logicapps"
* "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,
* Kind: pulumi.Any("elastic"),
* Sku: &appservice.PlanSkuArgs{
* Tier: pulumi.String("WorkflowStandard"),
* Size: pulumi.String("WS1"),
* },
* })
* if err != nil {
* return err
* }
* _, err = logicapps.NewStandard(ctx, "example", &logicapps.StandardArgs{
* Name: pulumi.String("test-azure-functions"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* AppServicePlanId: examplePlan.ID(),
* StorageAccountName: exampleAccount.Name,
* StorageAccountAccessKey: exampleAccount.PrimaryAccessKey,
* AppSettings: pulumi.StringMap{
* "FUNCTIONS_WORKER_RUNTIME": pulumi.String("node"),
* "WEBSITE_NODE_DEFAULT_VERSION": pulumi.String("~18"),
* },
* })
* 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.logicapps.Standard;
* import com.pulumi.azure.logicapps.StandardArgs;
* 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())
* .kind("elastic")
* .sku(PlanSkuArgs.builder()
* .tier("WorkflowStandard")
* .size("WS1")
* .build())
* .build());
* var exampleStandard = new Standard("exampleStandard", StandardArgs.builder()
* .name("test-azure-functions")
* .location(example.location())
* .resourceGroupName(example.name())
* .appServicePlanId(examplePlan.id())
* .storageAccountName(exampleAccount.name())
* .storageAccountAccessKey(exampleAccount.primaryAccessKey())
* .appSettings(Map.ofEntries(
* Map.entry("FUNCTIONS_WORKER_RUNTIME", "node"),
* Map.entry("WEBSITE_NODE_DEFAULT_VERSION", "~18")
* ))
* .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}
* kind: elastic
* sku:
* tier: WorkflowStandard
* size: WS1
* exampleStandard:
* type: azure:logicapps:Standard
* name: example
* properties:
* name: test-azure-functions
* location: ${example.location}
* resourceGroupName: ${example.name}
* appServicePlanId: ${examplePlan.id}
* storageAccountName: ${exampleAccount.name}
* storageAccountAccessKey: ${exampleAccount.primaryAccessKey}
* appSettings:
* FUNCTIONS_WORKER_RUNTIME: node
* WEBSITE_NODE_DEFAULT_VERSION: ~18
* ```
*
* ### For Container Mode)
* > **Note:** You must set `azure.appservice.Plan` `kind` to `Linux` and `reserved` to `true` when used with `linux_fx_version`
*
* ```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,
* kind: "Linux",
* reserved: true,
* sku: {
* tier: "WorkflowStandard",
* size: "WS1",
* },
* });
* const exampleStandard = new azure.logicapps.Standard("example", {
* name: "test-azure-functions",
* location: example.location,
* resourceGroupName: example.name,
* appServicePlanId: examplePlan.id,
* storageAccountName: exampleAccount.name,
* storageAccountAccessKey: exampleAccount.primaryAccessKey,
* siteConfig: {
* linuxFxVersion: "DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0-appservice",
* },
* appSettings: {
* DOCKER_REGISTRY_SERVER_URL: "https://.azurecr.io",
* DOCKER_REGISTRY_SERVER_USERNAME: "username",
* DOCKER_REGISTRY_SERVER_PASSWORD: "password",
* },
* });
* ```
* ```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,
* kind="Linux",
* reserved=True,
* sku={
* "tier": "WorkflowStandard",
* "size": "WS1",
* })
* example_standard = azure.logicapps.Standard("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,
* site_config={
* "linux_fx_version": "DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0-appservice",
* },
* app_settings={
* "DOCKER_REGISTRY_SERVER_URL": "https://.azurecr.io",
* "DOCKER_REGISTRY_SERVER_USERNAME": "username",
* "DOCKER_REGISTRY_SERVER_PASSWORD": "password",
* })
* ```
* ```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,
* Kind = "Linux",
* Reserved = true,
* Sku = new Azure.AppService.Inputs.PlanSkuArgs
* {
* Tier = "WorkflowStandard",
* Size = "WS1",
* },
* });
* var exampleStandard = new Azure.LogicApps.Standard("example", new()
* {
* Name = "test-azure-functions",
* Location = example.Location,
* ResourceGroupName = example.Name,
* AppServicePlanId = examplePlan.Id,
* StorageAccountName = exampleAccount.Name,
* StorageAccountAccessKey = exampleAccount.PrimaryAccessKey,
* SiteConfig = new Azure.LogicApps.Inputs.StandardSiteConfigArgs
* {
* LinuxFxVersion = "DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0-appservice",
* },
* AppSettings =
* {
* { "DOCKER_REGISTRY_SERVER_URL", "https://.azurecr.io" },
* { "DOCKER_REGISTRY_SERVER_USERNAME", "username" },
* { "DOCKER_REGISTRY_SERVER_PASSWORD", "password" },
* },
* });
* });
* ```
* ```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/logicapps"
* "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,
* Kind: pulumi.Any("Linux"),
* Reserved: pulumi.Bool(true),
* Sku: &appservice.PlanSkuArgs{
* Tier: pulumi.String("WorkflowStandard"),
* Size: pulumi.String("WS1"),
* },
* })
* if err != nil {
* return err
* }
* _, err = logicapps.NewStandard(ctx, "example", &logicapps.StandardArgs{
* Name: pulumi.String("test-azure-functions"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* AppServicePlanId: examplePlan.ID(),
* StorageAccountName: exampleAccount.Name,
* StorageAccountAccessKey: exampleAccount.PrimaryAccessKey,
* SiteConfig: &logicapps.StandardSiteConfigArgs{
* LinuxFxVersion: pulumi.String("DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0-appservice"),
* },
* AppSettings: pulumi.StringMap{
* "DOCKER_REGISTRY_SERVER_URL": pulumi.String("https://.azurecr.io"),
* "DOCKER_REGISTRY_SERVER_USERNAME": pulumi.String("username"),
* "DOCKER_REGISTRY_SERVER_PASSWORD": pulumi.String("password"),
* },
* })
* 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.logicapps.Standard;
* import com.pulumi.azure.logicapps.StandardArgs;
* import com.pulumi.azure.logicapps.inputs.StandardSiteConfigArgs;
* 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())
* .kind("Linux")
* .reserved(true)
* .sku(PlanSkuArgs.builder()
* .tier("WorkflowStandard")
* .size("WS1")
* .build())
* .build());
* var exampleStandard = new Standard("exampleStandard", StandardArgs.builder()
* .name("test-azure-functions")
* .location(example.location())
* .resourceGroupName(example.name())
* .appServicePlanId(examplePlan.id())
* .storageAccountName(exampleAccount.name())
* .storageAccountAccessKey(exampleAccount.primaryAccessKey())
* .siteConfig(StandardSiteConfigArgs.builder()
* .linuxFxVersion("DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0-appservice")
* .build())
* .appSettings(Map.ofEntries(
* Map.entry("DOCKER_REGISTRY_SERVER_URL", "https://.azurecr.io"),
* Map.entry("DOCKER_REGISTRY_SERVER_USERNAME", "username"),
* Map.entry("DOCKER_REGISTRY_SERVER_PASSWORD", "password")
* ))
* .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}
* kind: Linux
* reserved: true
* sku:
* tier: WorkflowStandard
* size: WS1
* exampleStandard:
* type: azure:logicapps:Standard
* name: example
* properties:
* name: test-azure-functions
* location: ${example.location}
* resourceGroupName: ${example.name}
* appServicePlanId: ${examplePlan.id}
* storageAccountName: ${exampleAccount.name}
* storageAccountAccessKey: ${exampleAccount.primaryAccessKey}
* siteConfig:
* linuxFxVersion: DOCKER|mcr.microsoft.com/azure-functions/dotnet:3.0-appservice
* appSettings:
* DOCKER_REGISTRY_SERVER_URL: https://.azurecr.io
* DOCKER_REGISTRY_SERVER_USERNAME: username
* DOCKER_REGISTRY_SERVER_PASSWORD: password
* ```
*
* ## Import
* Logic Apps can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:logicapps/standard:Standard logicapp1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/logicapp1
* ```
* @property appServicePlanId The ID of the App Service Plan within which to create this Logic 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:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the app_settings you specify. `AzureWebJobsStorage` is filled based on `storage_account_name` and `storage_account_access_key`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
* @property bundleVersion If `use_extension_bundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`.
* @property clientAffinityEnabled Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance?
* @property clientCertificateMode The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
* @property connectionStrings An `connection_string` block as defined below.
* @property enabled Is the Logic App enabled? Defaults to `true`.
* @property httpsOnly Can the Logic App only be accessed via HTTPS? Defaults to `false`.
* @property identity An `identity` block as defined below.
* @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 Logic App Changing this forces a new resource to be created.
* @property resourceGroupName The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created.
* @property siteConfig A `site_config` object as defined below.
* @property storageAccountAccessKey The access key which will be used to access the backend storage account for the Logic App
* @property storageAccountName The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created.
* @property storageAccountShareName
* @property tags A mapping of tags to assign to the resource.
* @property useExtensionBundle Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`.
* @property version The runtime version associated with the Logic App. Defaults to `~3`.
* > **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/)
* @property virtualNetworkSubnetId
*/
public data class StandardArgs(
public val appServicePlanId: Output? = null,
public val appSettings: Output>? = null,
public val bundleVersion: Output? = null,
public val clientAffinityEnabled: Output? = null,
public val clientCertificateMode: Output? = null,
public val connectionStrings: Output>? = null,
public val enabled: Output? = null,
public val httpsOnly: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val siteConfig: Output? = null,
public val storageAccountAccessKey: Output? = null,
public val storageAccountName: Output? = null,
public val storageAccountShareName: Output? = null,
public val tags: Output>? = null,
public val useExtensionBundle: Output? = null,
public val version: Output? = null,
public val virtualNetworkSubnetId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.logicapps.StandardArgs =
com.pulumi.azure.logicapps.StandardArgs.builder()
.appServicePlanId(appServicePlanId?.applyValue({ args0 -> args0 }))
.appSettings(
appSettings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.bundleVersion(bundleVersion?.applyValue({ args0 -> args0 }))
.clientAffinityEnabled(clientAffinityEnabled?.applyValue({ args0 -> args0 }))
.clientCertificateMode(clientCertificateMode?.applyValue({ args0 -> args0 }))
.connectionStrings(
connectionStrings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.enabled(enabled?.applyValue({ args0 -> args0 }))
.httpsOnly(httpsOnly?.applyValue({ args0 -> args0 }))
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.siteConfig(siteConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.storageAccountAccessKey(storageAccountAccessKey?.applyValue({ args0 -> args0 }))
.storageAccountName(storageAccountName?.applyValue({ args0 -> args0 }))
.storageAccountShareName(storageAccountShareName?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.useExtensionBundle(useExtensionBundle?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 }))
.virtualNetworkSubnetId(virtualNetworkSubnetId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StandardArgs].
*/
@PulumiTagMarker
public class StandardArgsBuilder internal constructor() {
private var appServicePlanId: Output? = null
private var appSettings: Output>? = null
private var bundleVersion: Output? = null
private var clientAffinityEnabled: Output? = null
private var clientCertificateMode: Output? = null
private var connectionStrings: Output>? = null
private var enabled: Output? = null
private var httpsOnly: Output? = null
private var identity: Output? = null
private var location: Output? = null
private var name: Output? = null
private var resourceGroupName: Output? = null
private var siteConfig: Output? = null
private var storageAccountAccessKey: Output? = null
private var storageAccountName: Output? = null
private var storageAccountShareName: Output? = null
private var tags: Output>? = null
private var useExtensionBundle: Output? = null
private var version: Output? = null
private var virtualNetworkSubnetId: Output? = null
/**
* @param value The ID of the App Service Plan within which to create this Logic App
*/
@JvmName("vaffbmejtbytvbed")
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:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the app_settings you specify. `AzureWebJobsStorage` is filled based on `storage_account_name` and `storage_account_access_key`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
*/
@JvmName("umjssilvgufjsjgm")
public suspend fun appSettings(`value`: Output>) {
this.appSettings = value
}
/**
* @param value If `use_extension_bundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`.
*/
@JvmName("vnhqpctfmqajnvad")
public suspend fun bundleVersion(`value`: Output) {
this.bundleVersion = value
}
/**
* @param value Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance?
*/
@JvmName("wbqvybuxgdgctpll")
public suspend fun clientAffinityEnabled(`value`: Output) {
this.clientAffinityEnabled = value
}
/**
* @param value The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
*/
@JvmName("dqfllkwpmeamqage")
public suspend fun clientCertificateMode(`value`: Output) {
this.clientCertificateMode = value
}
/**
* @param value An `connection_string` block as defined below.
*/
@JvmName("vqvpndpuihfisilh")
public suspend fun connectionStrings(`value`: Output>) {
this.connectionStrings = value
}
@JvmName("ncpanijmckqpljkd")
public suspend fun connectionStrings(vararg values: Output) {
this.connectionStrings = Output.all(values.asList())
}
/**
* @param values An `connection_string` block as defined below.
*/
@JvmName("nvqiuvntqjgigoil")
public suspend fun connectionStrings(values: List>) {
this.connectionStrings = Output.all(values)
}
/**
* @param value Is the Logic App enabled? Defaults to `true`.
*/
@JvmName("ytfcihjwqdxrnslj")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Can the Logic App only be accessed via HTTPS? Defaults to `false`.
*/
@JvmName("bajgenpqsjxfsyiw")
public suspend fun httpsOnly(`value`: Output) {
this.httpsOnly = value
}
/**
* @param value An `identity` block as defined below.
*/
@JvmName("uhxjkgopexyjhbxt")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*/
@JvmName("lbjskmeiohfuahbx")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Specifies the name of the Logic App Changing this forces a new resource to be created.
*/
@JvmName("splknfwumixxoivp")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created.
*/
@JvmName("bnpfioalibgwggbq")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value A `site_config` object as defined below.
*/
@JvmName("axesqjrtrefesptg")
public suspend fun siteConfig(`value`: Output) {
this.siteConfig = value
}
/**
* @param value The access key which will be used to access the backend storage account for the Logic App
*/
@JvmName("bfdhemqdelkvidvd")
public suspend fun storageAccountAccessKey(`value`: Output) {
this.storageAccountAccessKey = value
}
/**
* @param value The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created.
*/
@JvmName("yfnqfilnueexrcqf")
public suspend fun storageAccountName(`value`: Output) {
this.storageAccountName = value
}
/**
* @param value
*/
@JvmName("mbmnfltinxbatutt")
public suspend fun storageAccountShareName(`value`: Output) {
this.storageAccountShareName = value
}
/**
* @param value A mapping of tags to assign to the resource.
*/
@JvmName("cbqidywuupsjhvve")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`.
*/
@JvmName("awiriigmbwwvpdcf")
public suspend fun useExtensionBundle(`value`: Output) {
this.useExtensionBundle = value
}
/**
* @param value The runtime version associated with the Logic App. Defaults to `~3`.
* > **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/)
*/
@JvmName("bmcxgmqvloxqhghe")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value
*/
@JvmName("bgulejksdcjgdrsj")
public suspend fun virtualNetworkSubnetId(`value`: Output) {
this.virtualNetworkSubnetId = value
}
/**
* @param value The ID of the App Service Plan within which to create this Logic App
*/
@JvmName("jeeiiqqwcmalfhkb")
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:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the app_settings you specify. `AzureWebJobsStorage` is filled based on `storage_account_name` and `storage_account_access_key`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
*/
@JvmName("jrncvhkvfvgqvyqv")
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:** There are a number of application settings that will be managed for you by this resource type and *shouldn't* be configured separately as part of the app_settings you specify. `AzureWebJobsStorage` is filled based on `storage_account_name` and `storage_account_access_key`. `WEBSITE_CONTENTSHARE` is detailed below. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. `APP_KIND` is set to workflowApp and `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` are set as detailed below.
*/
@JvmName("dsdiytjybuaoltje")
public fun appSettings(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.appSettings = mapped
}
/**
* @param value If `use_extension_bundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`.
*/
@JvmName("rvdyliseuowlylds")
public suspend fun bundleVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bundleVersion = mapped
}
/**
* @param value Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance?
*/
@JvmName("lejalkkthdlyhggq")
public suspend fun clientAffinityEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientAffinityEnabled = mapped
}
/**
* @param value The mode of the Logic App's client certificates requirement for incoming requests. Possible values are `Required` and `Optional`.
*/
@JvmName("hdivtjwvercwbugk")
public suspend fun clientCertificateMode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientCertificateMode = mapped
}
/**
* @param value An `connection_string` block as defined below.
*/
@JvmName("vcnmdjfagnnbovci")
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("ruyfyvbbwvurxsnb")
public suspend fun connectionStrings(argument: List Unit>) {
val toBeMapped = argument.toList().map {
StandardConnectionStringArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.connectionStrings = mapped
}
/**
* @param argument An `connection_string` block as defined below.
*/
@JvmName("ecrrtiahpkrwckoj")
public suspend fun connectionStrings(vararg argument: suspend StandardConnectionStringArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
StandardConnectionStringArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.connectionStrings = mapped
}
/**
* @param argument An `connection_string` block as defined below.
*/
@JvmName("vwtieuehrntokfgs")
public suspend fun connectionStrings(argument: suspend StandardConnectionStringArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
StandardConnectionStringArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.connectionStrings = mapped
}
/**
* @param values An `connection_string` block as defined below.
*/
@JvmName("npibuojloianaqve")
public suspend fun connectionStrings(vararg values: StandardConnectionStringArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.connectionStrings = mapped
}
/**
* @param value Is the Logic App enabled? Defaults to `true`.
*/
@JvmName("loyrsqglmwavscla")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Can the Logic App only be accessed via HTTPS? Defaults to `false`.
*/
@JvmName("rybhrcwksxghlkwa")
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("peprnowerpetunji")
public suspend fun identity(`value`: StandardIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument An `identity` block as defined below.
*/
@JvmName("aqxcdatqykmydeng")
public suspend fun identity(argument: suspend StandardIdentityArgsBuilder.() -> Unit) {
val toBeMapped = StandardIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*/
@JvmName("yhtaxgbcgguekmov")
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 Logic App Changing this forces a new resource to be created.
*/
@JvmName("ygogejwiyveglnxn")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the resource group in which to create the Logic App. Changing this forces a new resource to be created.
*/
@JvmName("tkhlleddnbndsosu")
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("ytwmlkexxxtmcxby")
public suspend fun siteConfig(`value`: StandardSiteConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.siteConfig = mapped
}
/**
* @param argument A `site_config` object as defined below.
*/
@JvmName("hdgxdrujmnfkjgki")
public suspend fun siteConfig(argument: suspend StandardSiteConfigArgsBuilder.() -> Unit) {
val toBeMapped = StandardSiteConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.siteConfig = mapped
}
/**
* @param value The access key which will be used to access the backend storage account for the Logic App
*/
@JvmName("gekjsnomcdacqccu")
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 Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created.
*/
@JvmName("fhialmeptuvfbuvr")
public suspend fun storageAccountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageAccountName = mapped
}
/**
* @param value
*/
@JvmName("mivnsgssbmpnarse")
public suspend fun storageAccountShareName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageAccountShareName = mapped
}
/**
* @param value A mapping of tags to assign to the resource.
*/
@JvmName("yaqkxgyuktghvhej")
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("wqlscgnhucgwjgeb")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Should the logic app use the bundled extension package? If true, then application settings for `AzureFunctionsJobHost__extensionBundle__id` and `AzureFunctionsJobHost__extensionBundle__version` will be created. Defaults to `true`.
*/
@JvmName("dsxkyvqwowyqwqmf")
public suspend fun useExtensionBundle(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.useExtensionBundle = mapped
}
/**
* @param value The runtime version associated with the Logic App. Defaults to `~3`.
* > **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/)
*/
@JvmName("vogcaliubdrkpiiy")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
/**
* @param value
*/
@JvmName("lmwqwpdmehulupkx")
public suspend fun virtualNetworkSubnetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualNetworkSubnetId = mapped
}
internal fun build(): StandardArgs = StandardArgs(
appServicePlanId = appServicePlanId,
appSettings = appSettings,
bundleVersion = bundleVersion,
clientAffinityEnabled = clientAffinityEnabled,
clientCertificateMode = clientCertificateMode,
connectionStrings = connectionStrings,
enabled = enabled,
httpsOnly = httpsOnly,
identity = identity,
location = location,
name = name,
resourceGroupName = resourceGroupName,
siteConfig = siteConfig,
storageAccountAccessKey = storageAccountAccessKey,
storageAccountName = storageAccountName,
storageAccountShareName = storageAccountShareName,
tags = tags,
useExtensionBundle = useExtensionBundle,
version = version,
virtualNetworkSubnetId = virtualNetworkSubnetId,
)
}