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

com.pulumi.azure.bot.kotlin.ServiceAzureBotArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.bot.kotlin

import com.pulumi.azure.bot.ServiceAzureBotArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an Azure Bot Service.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleInsights = new azure.appinsights.Insights("example", {
 *     name: "example-appinsights",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     applicationType: "web",
 * });
 * const exampleApiKey = new azure.appinsights.ApiKey("example", {
 *     name: "example-appinsightsapikey",
 *     applicationInsightsId: exampleInsights.id,
 *     readPermissions: [
 *         "aggregate",
 *         "api",
 *         "draft",
 *         "extendqueries",
 *         "search",
 *     ],
 * });
 * const current = azure.core.getClientConfig({});
 * const exampleServiceAzureBot = new azure.bot.ServiceAzureBot("example", {
 *     name: "exampleazurebot",
 *     resourceGroupName: example.name,
 *     location: "global",
 *     microsoftAppId: current.then(current => current.clientId),
 *     sku: "F0",
 *     endpoint: "https://example.com",
 *     developerAppInsightsApiKey: exampleApiKey.apiKey,
 *     developerAppInsightsApplicationId: exampleInsights.appId,
 *     tags: {
 *         environment: "test",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_insights = azure.appinsights.Insights("example",
 *     name="example-appinsights",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     application_type="web")
 * example_api_key = azure.appinsights.ApiKey("example",
 *     name="example-appinsightsapikey",
 *     application_insights_id=example_insights.id,
 *     read_permissions=[
 *         "aggregate",
 *         "api",
 *         "draft",
 *         "extendqueries",
 *         "search",
 *     ])
 * current = azure.core.get_client_config()
 * example_service_azure_bot = azure.bot.ServiceAzureBot("example",
 *     name="exampleazurebot",
 *     resource_group_name=example.name,
 *     location="global",
 *     microsoft_app_id=current.client_id,
 *     sku="F0",
 *     endpoint="https://example.com",
 *     developer_app_insights_api_key=example_api_key.api_key,
 *     developer_app_insights_application_id=example_insights.app_id,
 *     tags={
 *         "environment": "test",
 *     })
 * ```
 * ```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 = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleInsights = new Azure.AppInsights.Insights("example", new()
 *     {
 *         Name = "example-appinsights",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         ApplicationType = "web",
 *     });
 *     var exampleApiKey = new Azure.AppInsights.ApiKey("example", new()
 *     {
 *         Name = "example-appinsightsapikey",
 *         ApplicationInsightsId = exampleInsights.Id,
 *         ReadPermissions = new[]
 *         {
 *             "aggregate",
 *             "api",
 *             "draft",
 *             "extendqueries",
 *             "search",
 *         },
 *     });
 *     var current = Azure.Core.GetClientConfig.Invoke();
 *     var exampleServiceAzureBot = new Azure.Bot.ServiceAzureBot("example", new()
 *     {
 *         Name = "exampleazurebot",
 *         ResourceGroupName = example.Name,
 *         Location = "global",
 *         MicrosoftAppId = current.Apply(getClientConfigResult => getClientConfigResult.ClientId),
 *         Sku = "F0",
 *         Endpoint = "https://example.com",
 *         DeveloperAppInsightsApiKey = exampleApiKey.ApiKey,
 *         DeveloperAppInsightsApplicationId = exampleInsights.AppId,
 *         Tags =
 *         {
 *             { "environment", "test" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/bot"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"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("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
 * 			Name:              pulumi.String("example-appinsights"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			ApplicationType:   pulumi.String("web"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleApiKey, err := appinsights.NewApiKey(ctx, "example", &appinsights.ApiKeyArgs{
 * 			Name:                  pulumi.String("example-appinsightsapikey"),
 * 			ApplicationInsightsId: exampleInsights.ID(),
 * 			ReadPermissions: pulumi.StringArray{
 * 				pulumi.String("aggregate"),
 * 				pulumi.String("api"),
 * 				pulumi.String("draft"),
 * 				pulumi.String("extendqueries"),
 * 				pulumi.String("search"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		current, err := core.GetClientConfig(ctx, nil, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = bot.NewServiceAzureBot(ctx, "example", &bot.ServiceAzureBotArgs{
 * 			Name:                              pulumi.String("exampleazurebot"),
 * 			ResourceGroupName:                 example.Name,
 * 			Location:                          pulumi.String("global"),
 * 			MicrosoftAppId:                    pulumi.String(current.ClientId),
 * 			Sku:                               pulumi.String("F0"),
 * 			Endpoint:                          pulumi.String("https://example.com"),
 * 			DeveloperAppInsightsApiKey:        exampleApiKey.ApiKey,
 * 			DeveloperAppInsightsApplicationId: exampleInsights.AppId,
 * 			Tags: pulumi.StringMap{
 * 				"environment": pulumi.String("test"),
 * 			},
 * 		})
 * 		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.appinsights.Insights;
 * import com.pulumi.azure.appinsights.InsightsArgs;
 * import com.pulumi.azure.appinsights.ApiKey;
 * import com.pulumi.azure.appinsights.ApiKeyArgs;
 * import com.pulumi.azure.core.CoreFunctions;
 * import com.pulumi.azure.bot.ServiceAzureBot;
 * import com.pulumi.azure.bot.ServiceAzureBotArgs;
 * 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("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
 *             .name("example-appinsights")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationType("web")
 *             .build());
 *         var exampleApiKey = new ApiKey("exampleApiKey", ApiKeyArgs.builder()
 *             .name("example-appinsightsapikey")
 *             .applicationInsightsId(exampleInsights.id())
 *             .readPermissions(
 *                 "aggregate",
 *                 "api",
 *                 "draft",
 *                 "extendqueries",
 *                 "search")
 *             .build());
 *         final var current = CoreFunctions.getClientConfig();
 *         var exampleServiceAzureBot = new ServiceAzureBot("exampleServiceAzureBot", ServiceAzureBotArgs.builder()
 *             .name("exampleazurebot")
 *             .resourceGroupName(example.name())
 *             .location("global")
 *             .microsoftAppId(current.applyValue(getClientConfigResult -> getClientConfigResult.clientId()))
 *             .sku("F0")
 *             .endpoint("https://example.com")
 *             .developerAppInsightsApiKey(exampleApiKey.apiKey())
 *             .developerAppInsightsApplicationId(exampleInsights.appId())
 *             .tags(Map.of("environment", "test"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleInsights:
 *     type: azure:appinsights:Insights
 *     name: example
 *     properties:
 *       name: example-appinsights
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       applicationType: web
 *   exampleApiKey:
 *     type: azure:appinsights:ApiKey
 *     name: example
 *     properties:
 *       name: example-appinsightsapikey
 *       applicationInsightsId: ${exampleInsights.id}
 *       readPermissions:
 *         - aggregate
 *         - api
 *         - draft
 *         - extendqueries
 *         - search
 *   exampleServiceAzureBot:
 *     type: azure:bot:ServiceAzureBot
 *     name: example
 *     properties:
 *       name: exampleazurebot
 *       resourceGroupName: ${example.name}
 *       location: global
 *       microsoftAppId: ${current.clientId}
 *       sku: F0
 *       endpoint: https://example.com
 *       developerAppInsightsApiKey: ${exampleApiKey.apiKey}
 *       developerAppInsightsApplicationId: ${exampleInsights.appId}
 *       tags:
 *         environment: test
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: azure:core:getClientConfig
 *       Arguments: {}
 * ```
 * 
 * ## Import
 * Azure Bot Services can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:bot/serviceAzureBot:ServiceAzureBot example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.BotService/botServices/botService1
 * ```
 * @property cmkKeyVaultKeyUrl The CMK Key Vault Key URL that will be used to encrypt the Bot with the Customer Managed Encryption Key.
 * > **Note:** In order to utilize CMEK, you must add the `Key Vault Crypto Service Encryption User` role to the Azure-defined `Bot Service CMEK Prod` Service Principal. You must also enable `soft_delete_enabled` and `purge_protection_enabled` on the `azure.keyvault.KeyVault` that `cmk_key_vault_key_url` refers to. [See Azure Documentation](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-encryption?view=azure-bot-service-4.0#how-to-configure-your-azure-key-vault-instance)
 * @property developerAppInsightsApiKey The Application Insights API Key to associate with this Azure Bot Service.
 * @property developerAppInsightsApplicationId The resource ID of the Application Insights instance to associate with this Azure Bot Service.
 * @property developerAppInsightsKey The Application Insight Key to associate with this Azure Bot Service.
 * @property displayName The name that the Azure Bot Service will be displayed as. This defaults to the value set for `name` if not specified.
 * @property endpoint The Azure Bot Service endpoint.
 * @property iconUrl The Icon Url of the Azure Bot Service. Defaults to `https://docs.botframework.com/static/devportal/client/images/bot-framework-default.png`.
 * @property localAuthenticationEnabled Is local authentication enabled? Defaults to `true`.
 * @property location The supported Azure location where the Azure Bot Service should exist. Changing this forces a new resource to be created.
 * @property luisAppIds A list of LUIS App IDs to associate with this Azure Bot Service.
 * @property luisKey The LUIS key to associate with this Azure Bot Service.
 * @property microsoftAppId The Microsoft Application ID for the Azure Bot Service. Changing this forces a new resource to be created.
 * @property microsoftAppMsiId The ID of the Microsoft App Managed Identity for this Azure Bot Service. Changing this forces a new resource to be created.
 * @property microsoftAppTenantId The Tenant ID of the Microsoft App for this Azure Bot Service. Changing this forces a new resource to be created.
 * @property microsoftAppType The Microsoft App Type for this Azure Bot Service. Possible values are `MultiTenant`, `SingleTenant` and `UserAssignedMSI`. Changing this forces a new resource to be created.
 * @property name The name which should be used for this Azure Bot Service. Changing this forces a new resource to be created.
 * @property publicNetworkAccessEnabled Whether public network access is enabled. Defaults to `true`.
 * @property resourceGroupName The name of the Resource Group where the Azure Bot Service should exist. Changing this forces a new resource to be created.
 * @property sku The SKU of the Azure Bot Service. Accepted values are `F0` or `S1`. Changing this forces a new resource to be created.
 * @property streamingEndpointEnabled Is the streaming endpoint enabled for this Azure Bot Service. Defaults to `false`.
 * @property tags A mapping of tags which should be assigned to this Azure Bot Service.
 */
public data class ServiceAzureBotArgs(
    public val cmkKeyVaultKeyUrl: Output? = null,
    public val developerAppInsightsApiKey: Output? = null,
    public val developerAppInsightsApplicationId: Output? = null,
    public val developerAppInsightsKey: Output? = null,
    public val displayName: Output? = null,
    public val endpoint: Output? = null,
    public val iconUrl: Output? = null,
    public val localAuthenticationEnabled: Output? = null,
    public val location: Output? = null,
    public val luisAppIds: Output>? = null,
    public val luisKey: Output? = null,
    public val microsoftAppId: Output? = null,
    public val microsoftAppMsiId: Output? = null,
    public val microsoftAppTenantId: Output? = null,
    public val microsoftAppType: Output? = null,
    public val name: Output? = null,
    public val publicNetworkAccessEnabled: Output? = null,
    public val resourceGroupName: Output? = null,
    public val sku: Output? = null,
    public val streamingEndpointEnabled: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.bot.ServiceAzureBotArgs =
        com.pulumi.azure.bot.ServiceAzureBotArgs.builder()
            .cmkKeyVaultKeyUrl(cmkKeyVaultKeyUrl?.applyValue({ args0 -> args0 }))
            .developerAppInsightsApiKey(developerAppInsightsApiKey?.applyValue({ args0 -> args0 }))
            .developerAppInsightsApplicationId(
                developerAppInsightsApplicationId?.applyValue({ args0 ->
                    args0
                }),
            )
            .developerAppInsightsKey(developerAppInsightsKey?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .endpoint(endpoint?.applyValue({ args0 -> args0 }))
            .iconUrl(iconUrl?.applyValue({ args0 -> args0 }))
            .localAuthenticationEnabled(localAuthenticationEnabled?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .luisAppIds(luisAppIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .luisKey(luisKey?.applyValue({ args0 -> args0 }))
            .microsoftAppId(microsoftAppId?.applyValue({ args0 -> args0 }))
            .microsoftAppMsiId(microsoftAppMsiId?.applyValue({ args0 -> args0 }))
            .microsoftAppTenantId(microsoftAppTenantId?.applyValue({ args0 -> args0 }))
            .microsoftAppType(microsoftAppType?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sku(sku?.applyValue({ args0 -> args0 }))
            .streamingEndpointEnabled(streamingEndpointEnabled?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ServiceAzureBotArgs].
 */
@PulumiTagMarker
public class ServiceAzureBotArgsBuilder internal constructor() {
    private var cmkKeyVaultKeyUrl: Output? = null

    private var developerAppInsightsApiKey: Output? = null

    private var developerAppInsightsApplicationId: Output? = null

    private var developerAppInsightsKey: Output? = null

    private var displayName: Output? = null

    private var endpoint: Output? = null

    private var iconUrl: Output? = null

    private var localAuthenticationEnabled: Output? = null

    private var location: Output? = null

    private var luisAppIds: Output>? = null

    private var luisKey: Output? = null

    private var microsoftAppId: Output? = null

    private var microsoftAppMsiId: Output? = null

    private var microsoftAppTenantId: Output? = null

    private var microsoftAppType: Output? = null

    private var name: Output? = null

    private var publicNetworkAccessEnabled: Output? = null

    private var resourceGroupName: Output? = null

    private var sku: Output? = null

    private var streamingEndpointEnabled: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The CMK Key Vault Key URL that will be used to encrypt the Bot with the Customer Managed Encryption Key.
     * > **Note:** In order to utilize CMEK, you must add the `Key Vault Crypto Service Encryption User` role to the Azure-defined `Bot Service CMEK Prod` Service Principal. You must also enable `soft_delete_enabled` and `purge_protection_enabled` on the `azure.keyvault.KeyVault` that `cmk_key_vault_key_url` refers to. [See Azure Documentation](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-encryption?view=azure-bot-service-4.0#how-to-configure-your-azure-key-vault-instance)
     */
    @JvmName("sxbudcdaldbmvclt")
    public suspend fun cmkKeyVaultKeyUrl(`value`: Output) {
        this.cmkKeyVaultKeyUrl = value
    }

    /**
     * @param value The Application Insights API Key to associate with this Azure Bot Service.
     */
    @JvmName("ahmdqaexogkcosji")
    public suspend fun developerAppInsightsApiKey(`value`: Output) {
        this.developerAppInsightsApiKey = value
    }

    /**
     * @param value The resource ID of the Application Insights instance to associate with this Azure Bot Service.
     */
    @JvmName("qgaqwynxsdcqmcuw")
    public suspend fun developerAppInsightsApplicationId(`value`: Output) {
        this.developerAppInsightsApplicationId = value
    }

    /**
     * @param value The Application Insight Key to associate with this Azure Bot Service.
     */
    @JvmName("wdfdhgmcurqasppk")
    public suspend fun developerAppInsightsKey(`value`: Output) {
        this.developerAppInsightsKey = value
    }

    /**
     * @param value The name that the Azure Bot Service will be displayed as. This defaults to the value set for `name` if not specified.
     */
    @JvmName("teuhjrkfsgeuclkc")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The Azure Bot Service endpoint.
     */
    @JvmName("fnyvhpowuftetavd")
    public suspend fun endpoint(`value`: Output) {
        this.endpoint = value
    }

    /**
     * @param value The Icon Url of the Azure Bot Service. Defaults to `https://docs.botframework.com/static/devportal/client/images/bot-framework-default.png`.
     */
    @JvmName("xunrkfhvhmqthbex")
    public suspend fun iconUrl(`value`: Output) {
        this.iconUrl = value
    }

    /**
     * @param value Is local authentication enabled? Defaults to `true`.
     */
    @JvmName("rbutlgsoixkwjxuu")
    public suspend fun localAuthenticationEnabled(`value`: Output) {
        this.localAuthenticationEnabled = value
    }

    /**
     * @param value The supported Azure location where the Azure Bot Service should exist. Changing this forces a new resource to be created.
     */
    @JvmName("eudfswjvkhrvwcul")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value A list of LUIS App IDs to associate with this Azure Bot Service.
     */
    @JvmName("ssgsvesfhgerndvt")
    public suspend fun luisAppIds(`value`: Output>) {
        this.luisAppIds = value
    }

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

    /**
     * @param values A list of LUIS App IDs to associate with this Azure Bot Service.
     */
    @JvmName("obysyfinetublfkl")
    public suspend fun luisAppIds(values: List>) {
        this.luisAppIds = Output.all(values)
    }

    /**
     * @param value The LUIS key to associate with this Azure Bot Service.
     */
    @JvmName("smwrflcnxpqgeyvm")
    public suspend fun luisKey(`value`: Output) {
        this.luisKey = value
    }

    /**
     * @param value The Microsoft Application ID for the Azure Bot Service. Changing this forces a new resource to be created.
     */
    @JvmName("myqlhutjhgxrpqfp")
    public suspend fun microsoftAppId(`value`: Output) {
        this.microsoftAppId = value
    }

    /**
     * @param value The ID of the Microsoft App Managed Identity for this Azure Bot Service. Changing this forces a new resource to be created.
     */
    @JvmName("seapwesorakqowpd")
    public suspend fun microsoftAppMsiId(`value`: Output) {
        this.microsoftAppMsiId = value
    }

    /**
     * @param value The Tenant ID of the Microsoft App for this Azure Bot Service. Changing this forces a new resource to be created.
     */
    @JvmName("lssoaobxgwbtnwlf")
    public suspend fun microsoftAppTenantId(`value`: Output) {
        this.microsoftAppTenantId = value
    }

    /**
     * @param value The Microsoft App Type for this Azure Bot Service. Possible values are `MultiTenant`, `SingleTenant` and `UserAssignedMSI`. Changing this forces a new resource to be created.
     */
    @JvmName("ctiybenlnuadqclk")
    public suspend fun microsoftAppType(`value`: Output) {
        this.microsoftAppType = value
    }

    /**
     * @param value The name which should be used for this Azure Bot Service. Changing this forces a new resource to be created.
     */
    @JvmName("prneqtgitfqphkok")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Whether public network access is enabled. Defaults to `true`.
     */
    @JvmName("wxxjxtdrodytomst")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

    /**
     * @param value The name of the Resource Group where the Azure Bot Service should exist. Changing this forces a new resource to be created.
     */
    @JvmName("fgbvuqkmmynyblkt")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The SKU of the Azure Bot Service. Accepted values are `F0` or `S1`. Changing this forces a new resource to be created.
     */
    @JvmName("gpqfvnvgewqeqfjy")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value Is the streaming endpoint enabled for this Azure Bot Service. Defaults to `false`.
     */
    @JvmName("vwaleifcygqglkhv")
    public suspend fun streamingEndpointEnabled(`value`: Output) {
        this.streamingEndpointEnabled = value
    }

    /**
     * @param value A mapping of tags which should be assigned to this Azure Bot Service.
     */
    @JvmName("ftwmnoxurhhsuobt")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The CMK Key Vault Key URL that will be used to encrypt the Bot with the Customer Managed Encryption Key.
     * > **Note:** In order to utilize CMEK, you must add the `Key Vault Crypto Service Encryption User` role to the Azure-defined `Bot Service CMEK Prod` Service Principal. You must also enable `soft_delete_enabled` and `purge_protection_enabled` on the `azure.keyvault.KeyVault` that `cmk_key_vault_key_url` refers to. [See Azure Documentation](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-encryption?view=azure-bot-service-4.0#how-to-configure-your-azure-key-vault-instance)
     */
    @JvmName("kimeyjhjidxsfiky")
    public suspend fun cmkKeyVaultKeyUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cmkKeyVaultKeyUrl = mapped
    }

    /**
     * @param value The Application Insights API Key to associate with this Azure Bot Service.
     */
    @JvmName("xvdxwjyqybawrsgq")
    public suspend fun developerAppInsightsApiKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.developerAppInsightsApiKey = mapped
    }

    /**
     * @param value The resource ID of the Application Insights instance to associate with this Azure Bot Service.
     */
    @JvmName("rgomarnpqjjtphvl")
    public suspend fun developerAppInsightsApplicationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.developerAppInsightsApplicationId = mapped
    }

    /**
     * @param value The Application Insight Key to associate with this Azure Bot Service.
     */
    @JvmName("dcvkwdqvxcjwqtle")
    public suspend fun developerAppInsightsKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.developerAppInsightsKey = mapped
    }

    /**
     * @param value The name that the Azure Bot Service will be displayed as. This defaults to the value set for `name` if not specified.
     */
    @JvmName("dragivsxykbffmye")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The Azure Bot Service endpoint.
     */
    @JvmName("pktssfsatmlwirne")
    public suspend fun endpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpoint = mapped
    }

    /**
     * @param value The Icon Url of the Azure Bot Service. Defaults to `https://docs.botframework.com/static/devportal/client/images/bot-framework-default.png`.
     */
    @JvmName("fkarvrlbtnjinayr")
    public suspend fun iconUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iconUrl = mapped
    }

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

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

    /**
     * @param value A list of LUIS App IDs to associate with this Azure Bot Service.
     */
    @JvmName("jqvjotwdaohmntrf")
    public suspend fun luisAppIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.luisAppIds = mapped
    }

    /**
     * @param values A list of LUIS App IDs to associate with this Azure Bot Service.
     */
    @JvmName("xxwckuxayrrqxpfv")
    public suspend fun luisAppIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.luisAppIds = mapped
    }

    /**
     * @param value The LUIS key to associate with this Azure Bot Service.
     */
    @JvmName("iwdfpnybdbbkmykl")
    public suspend fun luisKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.luisKey = mapped
    }

    /**
     * @param value The Microsoft Application ID for the Azure Bot Service. Changing this forces a new resource to be created.
     */
    @JvmName("lbboonjgsmmfnuss")
    public suspend fun microsoftAppId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.microsoftAppId = mapped
    }

    /**
     * @param value The ID of the Microsoft App Managed Identity for this Azure Bot Service. Changing this forces a new resource to be created.
     */
    @JvmName("fupvxdkwdcbrtbsq")
    public suspend fun microsoftAppMsiId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.microsoftAppMsiId = mapped
    }

    /**
     * @param value The Tenant ID of the Microsoft App for this Azure Bot Service. Changing this forces a new resource to be created.
     */
    @JvmName("ymubparrxvdosqww")
    public suspend fun microsoftAppTenantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.microsoftAppTenantId = mapped
    }

    /**
     * @param value The Microsoft App Type for this Azure Bot Service. Possible values are `MultiTenant`, `SingleTenant` and `UserAssignedMSI`. Changing this forces a new resource to be created.
     */
    @JvmName("bqpoehikcyrmcalj")
    public suspend fun microsoftAppType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.microsoftAppType = mapped
    }

    /**
     * @param value The name which should be used for this Azure Bot Service. Changing this forces a new resource to be created.
     */
    @JvmName("wuuhjktorynongal")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Whether public network access is enabled. Defaults to `true`.
     */
    @JvmName("gvajdhstiyxcdgpn")
    public suspend fun publicNetworkAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccessEnabled = mapped
    }

    /**
     * @param value The name of the Resource Group where the Azure Bot Service should exist. Changing this forces a new resource to be created.
     */
    @JvmName("etwabgkewbiqvcjl")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The SKU of the Azure Bot Service. Accepted values are `F0` or `S1`. Changing this forces a new resource to be created.
     */
    @JvmName("vfhpkiwifvpotiha")
    public suspend fun sku(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param value Is the streaming endpoint enabled for this Azure Bot Service. Defaults to `false`.
     */
    @JvmName("atgyjktaumxjahgy")
    public suspend fun streamingEndpointEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamingEndpointEnabled = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to this Azure Bot Service.
     */
    @JvmName("meppifqmshmgauyp")
    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 which should be assigned to this Azure Bot Service.
     */
    @JvmName("ndjtrdurwnvkujfj")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ServiceAzureBotArgs = ServiceAzureBotArgs(
        cmkKeyVaultKeyUrl = cmkKeyVaultKeyUrl,
        developerAppInsightsApiKey = developerAppInsightsApiKey,
        developerAppInsightsApplicationId = developerAppInsightsApplicationId,
        developerAppInsightsKey = developerAppInsightsKey,
        displayName = displayName,
        endpoint = endpoint,
        iconUrl = iconUrl,
        localAuthenticationEnabled = localAuthenticationEnabled,
        location = location,
        luisAppIds = luisAppIds,
        luisKey = luisKey,
        microsoftAppId = microsoftAppId,
        microsoftAppMsiId = microsoftAppMsiId,
        microsoftAppTenantId = microsoftAppTenantId,
        microsoftAppType = microsoftAppType,
        name = name,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        resourceGroupName = resourceGroupName,
        sku = sku,
        streamingEndpointEnabled = streamingEndpointEnabled,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy