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

com.pulumi.azure.bot.kotlin.ChannelsRegistrationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.bot.kotlin

import com.pulumi.azure.bot.ChannelsRegistrationArgs.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.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Bot Channels Registration.
 * > **Note:** Bot Channels Registration has been [deprecated by Azure](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-resources-faq-azure?view=azure-bot-service-4.0#why-are-web-app-bot-and-bot-channel-registration-being-deprecated). New implementations should use the `azure.bot.ServiceAzureBot` resource.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const current = azure.core.getClientConfig({});
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleChannelsRegistration = new azure.bot.ChannelsRegistration("example", {
 *     name: "example",
 *     location: "global",
 *     resourceGroupName: example.name,
 *     sku: "F0",
 *     microsoftAppId: current.then(current => current.clientId),
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * current = azure.core.get_client_config()
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_channels_registration = azure.bot.ChannelsRegistration("example",
 *     name="example",
 *     location="global",
 *     resource_group_name=example.name,
 *     sku="F0",
 *     microsoft_app_id=current.client_id)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var current = Azure.Core.GetClientConfig.Invoke();
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleChannelsRegistration = new Azure.Bot.ChannelsRegistration("example", new()
 *     {
 *         Name = "example",
 *         Location = "global",
 *         ResourceGroupName = example.Name,
 *         Sku = "F0",
 *         MicrosoftAppId = current.Apply(getClientConfigResult => getClientConfigResult.ClientId),
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"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 {
 * 		current, err := core.GetClientConfig(ctx, nil, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = bot.NewChannelsRegistration(ctx, "example", &bot.ChannelsRegistrationArgs{
 * 			Name:              pulumi.String("example"),
 * 			Location:          pulumi.String("global"),
 * 			ResourceGroupName: example.Name,
 * 			Sku:               pulumi.String("F0"),
 * 			MicrosoftAppId:    pulumi.String(current.ClientId),
 * 		})
 * 		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.CoreFunctions;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.bot.ChannelsRegistration;
 * import com.pulumi.azure.bot.ChannelsRegistrationArgs;
 * 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) {
 *         final var current = CoreFunctions.getClientConfig();
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleChannelsRegistration = new ChannelsRegistration("exampleChannelsRegistration", ChannelsRegistrationArgs.builder()
 *             .name("example")
 *             .location("global")
 *             .resourceGroupName(example.name())
 *             .sku("F0")
 *             .microsoftAppId(current.applyValue(getClientConfigResult -> getClientConfigResult.clientId()))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleChannelsRegistration:
 *     type: azure:bot:ChannelsRegistration
 *     name: example
 *     properties:
 *       name: example
 *       location: global
 *       resourceGroupName: ${example.name}
 *       sku: F0
 *       microsoftAppId: ${current.clientId}
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: azure:core:getClientConfig
 *       Arguments: {}
 * ```
 * 
 * ## Import
 * Bot Channels Registration can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:bot/channelsRegistration:ChannelsRegistration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.BotService/botServices/example
 * ```
 * @property cmkKeyVaultUrl The CMK Key Vault Key URL to encrypt the Bot Channels Registration with the Customer Managed Encryption Key.
 * > **Note:** It has to add the Key Vault Access Policy for the `Bot Service CMEK Prod` Service Principal and the `soft_delete_enabled` and the `purge_protection_enabled` is enabled on the `azure.keyvault.KeyVault` resource while using `cmk_key_vault_url`.
 * > **Note:** It has to turn off the CMK feature before revoking Key Vault Access Policy. For more information, please refer to [Revoke access to customer-managed keys](https://docs.microsoft.com/azure/bot-service/bot-service-encryption?view=azure-bot-service-4.0&WT.mc_id=Portal-Microsoft_Azure_BotService#revoke-access-to-customer-managed-keys).
 * @property description The description of the Bot Channels Registration.
 * @property developerAppInsightsApiKey The Application Insights API Key to associate with the Bot Channels Registration.
 * @property developerAppInsightsApplicationId The Application Insights Application ID to associate with the Bot Channels Registration.
 * @property developerAppInsightsKey The Application Insights Key to associate with the Bot Channels Registration.
 * @property displayName The name of the Bot Channels Registration will be displayed as. This defaults to `name` if not specified.
 * @property endpoint The Bot Channels Registration endpoint.
 * @property iconUrl The icon URL to visually identify the Bot Channels Registration.
 * @property isolatedNetworkEnabled Is the Bot Channels Registration in an isolated network?
 * > **NOTE:** `isolated_network_enabled` is deprecated and will be removed in favour of the property `public_network_access_enabled` in version 4.0 of the AzureRM Provider.
 * @property location The supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property microsoftAppId The Microsoft Application ID for the Bot Channels Registration. Changing this forces a new resource to be created.
 * @property name Specifies the name of the Bot Channels Registration. Changing this forces a new resource to be created. Must be globally unique.
 * @property publicNetworkAccessEnabled Is the Bot Channels Registration in an isolated network?
 * @property resourceGroupName The name of the resource group in which to create the Bot Channels Registration. Changing this forces a new resource to be created.
 * @property sku The SKU of the Bot Channels Registration. Valid values include `F0` or `S1`. Changing this forces a new resource to be created.
 * @property streamingEndpointEnabled Is the streaming endpoint enabled for the Bot Channels Registration. Defaults to `false`.
 * @property tags A mapping of tags to assign to the resource.
 */
public data class ChannelsRegistrationArgs(
    public val cmkKeyVaultUrl: Output? = null,
    public val description: 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,
    @Deprecated(
        message = """
  `isolated_network_enabled` will be removed in favour of the property
      `public_network_access_enabled` in version 4.0 of the AzureRM Provider.
  """,
    )
    public val isolatedNetworkEnabled: Output? = null,
    public val location: Output? = null,
    public val microsoftAppId: 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.ChannelsRegistrationArgs =
        com.pulumi.azure.bot.ChannelsRegistrationArgs.builder()
            .cmkKeyVaultUrl(cmkKeyVaultUrl?.applyValue({ args0 -> args0 }))
            .description(description?.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 }))
            .isolatedNetworkEnabled(isolatedNetworkEnabled?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .microsoftAppId(microsoftAppId?.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 [ChannelsRegistrationArgs].
 */
@PulumiTagMarker
public class ChannelsRegistrationArgsBuilder internal constructor() {
    private var cmkKeyVaultUrl: Output? = null

    private var description: 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 isolatedNetworkEnabled: Output? = null

    private var location: Output? = null

    private var microsoftAppId: 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 to encrypt the Bot Channels Registration with the Customer Managed Encryption Key.
     * > **Note:** It has to add the Key Vault Access Policy for the `Bot Service CMEK Prod` Service Principal and the `soft_delete_enabled` and the `purge_protection_enabled` is enabled on the `azure.keyvault.KeyVault` resource while using `cmk_key_vault_url`.
     * > **Note:** It has to turn off the CMK feature before revoking Key Vault Access Policy. For more information, please refer to [Revoke access to customer-managed keys](https://docs.microsoft.com/azure/bot-service/bot-service-encryption?view=azure-bot-service-4.0&WT.mc_id=Portal-Microsoft_Azure_BotService#revoke-access-to-customer-managed-keys).
     */
    @JvmName("xdtxyiwxpflawarf")
    public suspend fun cmkKeyVaultUrl(`value`: Output) {
        this.cmkKeyVaultUrl = value
    }

    /**
     * @param value The description of the Bot Channels Registration.
     */
    @JvmName("jjqdontgvfrpyefy")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

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

    /**
     * @param value The Application Insights Application ID to associate with the Bot Channels Registration.
     */
    @JvmName("jdwtstypsgvoelio")
    public suspend fun developerAppInsightsApplicationId(`value`: Output) {
        this.developerAppInsightsApplicationId = value
    }

    /**
     * @param value The Application Insights Key to associate with the Bot Channels Registration.
     */
    @JvmName("aiinstkmhwdfbrkv")
    public suspend fun developerAppInsightsKey(`value`: Output) {
        this.developerAppInsightsKey = value
    }

    /**
     * @param value The name of the Bot Channels Registration will be displayed as. This defaults to `name` if not specified.
     */
    @JvmName("mhielvykrvjqbvkn")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The Bot Channels Registration endpoint.
     */
    @JvmName("kdoxkjcydeajruxp")
    public suspend fun endpoint(`value`: Output) {
        this.endpoint = value
    }

    /**
     * @param value The icon URL to visually identify the Bot Channels Registration.
     */
    @JvmName("jpnbnxbomjkyjfrj")
    public suspend fun iconUrl(`value`: Output) {
        this.iconUrl = value
    }

    /**
     * @param value Is the Bot Channels Registration in an isolated network?
     * > **NOTE:** `isolated_network_enabled` is deprecated and will be removed in favour of the property `public_network_access_enabled` in version 4.0 of the AzureRM Provider.
     */
    @Deprecated(
        message = """
  `isolated_network_enabled` will be removed in favour of the property
      `public_network_access_enabled` in version 4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("cpobrstajmxstbpc")
    public suspend fun isolatedNetworkEnabled(`value`: Output) {
        this.isolatedNetworkEnabled = value
    }

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

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

    /**
     * @param value Specifies the name of the Bot Channels Registration. Changing this forces a new resource to be created. Must be globally unique.
     */
    @JvmName("jxugxahlrsspyfsq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Is the Bot Channels Registration in an isolated network?
     */
    @JvmName("xnobucghfprctjdm")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

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

    /**
     * @param value The SKU of the Bot Channels Registration. Valid values include `F0` or `S1`. Changing this forces a new resource to be created.
     */
    @JvmName("nlftbnkraelyvmfq")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

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

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

    /**
     * @param value The CMK Key Vault Key URL to encrypt the Bot Channels Registration with the Customer Managed Encryption Key.
     * > **Note:** It has to add the Key Vault Access Policy for the `Bot Service CMEK Prod` Service Principal and the `soft_delete_enabled` and the `purge_protection_enabled` is enabled on the `azure.keyvault.KeyVault` resource while using `cmk_key_vault_url`.
     * > **Note:** It has to turn off the CMK feature before revoking Key Vault Access Policy. For more information, please refer to [Revoke access to customer-managed keys](https://docs.microsoft.com/azure/bot-service/bot-service-encryption?view=azure-bot-service-4.0&WT.mc_id=Portal-Microsoft_Azure_BotService#revoke-access-to-customer-managed-keys).
     */
    @JvmName("pqohdlgcclsjmexi")
    public suspend fun cmkKeyVaultUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cmkKeyVaultUrl = mapped
    }

    /**
     * @param value The description of the Bot Channels Registration.
     */
    @JvmName("yxqgijvplbffrpkp")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

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

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

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

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

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

    /**
     * @param value The icon URL to visually identify the Bot Channels Registration.
     */
    @JvmName("bvtaolfqoqdxldru")
    public suspend fun iconUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iconUrl = mapped
    }

    /**
     * @param value Is the Bot Channels Registration in an isolated network?
     * > **NOTE:** `isolated_network_enabled` is deprecated and will be removed in favour of the property `public_network_access_enabled` in version 4.0 of the AzureRM Provider.
     */
    @Deprecated(
        message = """
  `isolated_network_enabled` will be removed in favour of the property
      `public_network_access_enabled` in version 4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("ndmgnbfsfwkvsflu")
    public suspend fun isolatedNetworkEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.isolatedNetworkEnabled = mapped
    }

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

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

    /**
     * @param value Specifies the name of the Bot Channels Registration. Changing this forces a new resource to be created. Must be globally unique.
     */
    @JvmName("bkcpmqxvlbodcwoc")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Is the Bot Channels Registration in an isolated network?
     */
    @JvmName("qnwktfjbvfivulxy")
    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 in which to create the Bot Channels Registration. Changing this forces a new resource to be created.
     */
    @JvmName("yaipiuuhumqafcox")
    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 Bot Channels Registration. Valid values include `F0` or `S1`. Changing this forces a new resource to be created.
     */
    @JvmName("invvqbwqafxchofx")
    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 the Bot Channels Registration. Defaults to `false`.
     */
    @JvmName("yjbhxgumewycryoe")
    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 to assign to the resource.
     */
    @JvmName("pplyfwukmimfniqr")
    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("surloybwxfojxedg")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ChannelsRegistrationArgs = ChannelsRegistrationArgs(
        cmkKeyVaultUrl = cmkKeyVaultUrl,
        description = description,
        developerAppInsightsApiKey = developerAppInsightsApiKey,
        developerAppInsightsApplicationId = developerAppInsightsApplicationId,
        developerAppInsightsKey = developerAppInsightsKey,
        displayName = displayName,
        endpoint = endpoint,
        iconUrl = iconUrl,
        isolatedNetworkEnabled = isolatedNetworkEnabled,
        location = location,
        microsoftAppId = microsoftAppId,
        name = name,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        resourceGroupName = resourceGroupName,
        sku = sku,
        streamingEndpointEnabled = streamingEndpointEnabled,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy