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

com.pulumi.azure.kusto.kotlin.ClusterArgs.kt Maven / Gradle / Ivy

Go to download

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

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

package com.pulumi.azure.kusto.kotlin

import com.pulumi.azure.kusto.ClusterArgs.builder
import com.pulumi.azure.kusto.kotlin.inputs.ClusterIdentityArgs
import com.pulumi.azure.kusto.kotlin.inputs.ClusterIdentityArgsBuilder
import com.pulumi.azure.kusto.kotlin.inputs.ClusterOptimizedAutoScaleArgs
import com.pulumi.azure.kusto.kotlin.inputs.ClusterOptimizedAutoScaleArgsBuilder
import com.pulumi.azure.kusto.kotlin.inputs.ClusterSkuArgs
import com.pulumi.azure.kusto.kotlin.inputs.ClusterSkuArgsBuilder
import com.pulumi.azure.kusto.kotlin.inputs.ClusterVirtualNetworkConfigurationArgs
import com.pulumi.azure.kusto.kotlin.inputs.ClusterVirtualNetworkConfigurationArgsBuilder
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.Deprecated
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 Kusto (also known as Azure Data Explorer) Cluster
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "my-kusto-cluster-rg",
 *     location: "West Europe",
 * });
 * const exampleCluster = new azure.kusto.Cluster("example", {
 *     name: "kustocluster",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     sku: {
 *         name: "Standard_D13_v2",
 *         capacity: 2,
 *     },
 *     tags: {
 *         Environment: "Production",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="my-kusto-cluster-rg",
 *     location="West Europe")
 * example_cluster = azure.kusto.Cluster("example",
 *     name="kustocluster",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     sku={
 *         "name": "Standard_D13_v2",
 *         "capacity": 2,
 *     },
 *     tags={
 *         "Environment": "Production",
 *     })
 * ```
 * ```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 = "my-kusto-cluster-rg",
 *         Location = "West Europe",
 *     });
 *     var exampleCluster = new Azure.Kusto.Cluster("example", new()
 *     {
 *         Name = "kustocluster",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Sku = new Azure.Kusto.Inputs.ClusterSkuArgs
 *         {
 *             Name = "Standard_D13_v2",
 *             Capacity = 2,
 *         },
 *         Tags =
 *         {
 *             { "Environment", "Production" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/kusto"
 * 	"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("my-kusto-cluster-rg"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = kusto.NewCluster(ctx, "example", &kusto.ClusterArgs{
 * 			Name:              pulumi.String("kustocluster"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Sku: &kusto.ClusterSkuArgs{
 * 				Name:     pulumi.String("Standard_D13_v2"),
 * 				Capacity: pulumi.Int(2),
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"Environment": pulumi.String("Production"),
 * 			},
 * 		})
 * 		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.kusto.Cluster;
 * import com.pulumi.azure.kusto.ClusterArgs;
 * import com.pulumi.azure.kusto.inputs.ClusterSkuArgs;
 * 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("my-kusto-cluster-rg")
 *             .location("West Europe")
 *             .build());
 *         var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
 *             .name("kustocluster")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .sku(ClusterSkuArgs.builder()
 *                 .name("Standard_D13_v2")
 *                 .capacity(2)
 *                 .build())
 *             .tags(Map.of("Environment", "Production"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: my-kusto-cluster-rg
 *       location: West Europe
 *   exampleCluster:
 *     type: azure:kusto:Cluster
 *     name: example
 *     properties:
 *       name: kustocluster
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       sku:
 *         name: Standard_D13_v2
 *         capacity: 2
 *       tags:
 *         Environment: Production
 * ```
 * 
 * ## Import
 * Kusto Clusters can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:kusto/cluster:Cluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/clusters/cluster1
 * ```
 * @property allowedFqdns List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
 * @property allowedIpRanges The list of ips in the format of CIDR allowed to connect to the cluster.
 * @property autoStopEnabled Specifies if the cluster could be automatically stopped (due to lack of data or no activity for many days). Defaults to `true`.
 * @property diskEncryptionEnabled Specifies if the cluster's disks are encrypted.
 * @property doubleEncryptionEnabled Is the cluster's double encryption enabled? Changing this forces a new resource to be created.
 * @property engine
 * @property identity An `identity` block as defined below.
 * @property languageExtensions An list of `language_extensions` to enable. Valid values are: `PYTHON`, `PYTHON_3.10.8` and `R`. `PYTHON` is used to specify Python 3.6.5 image and `PYTHON_3.10.8` is used to specify Python 3.10.8 image. Note that `PYTHON_3.10.8` is only available in skus which support nested virtualization.
 * > **NOTE:** In `v4.0.0` and later version of the AzureRM Provider, `language_extensions` will be changed to a list of `language_extension` block. In each block, `name` and `image` are required. `name` is the name of the language extension, possible values are `PYTHON`, `R`. `image` is the image of the language extension, possible values are `Python3_6_5`, `Python3_10_8` and `R`.
 * @property location The location where the Kusto Cluster should be created. Changing this forces a new resource to be created.
 * @property name The name of the Kusto Cluster to create. Only lowercase Alphanumeric characters allowed, starting with a letter. Changing this forces a new resource to be created.
 * @property optimizedAutoScale An `optimized_auto_scale` block as defined below.
 * @property outboundNetworkAccessRestricted Whether to restrict outbound network access. Value is optional but if passed in, must be `true` or `false`, default is `false`.
 * @property publicIpType Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). Defaults to `IPv4`.
 * @property publicNetworkAccessEnabled Is the public network access enabled? Defaults to `true`.
 * @property purgeEnabled Specifies if the purge operations are enabled.
 * @property resourceGroupName Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.
 * @property sku A `sku` block as defined below.
 * @property streamingIngestionEnabled Specifies if the streaming ingest is enabled.
 * @property tags A mapping of tags to assign to the resource.
 * @property trustedExternalTenants Specifies a list of tenant IDs that are trusted by the cluster. Default setting trusts all other tenants. Use `trusted_external_tenants = ["*"]` to explicitly allow all other tenants, `trusted_external_tenants = ["MyTenantOnly"]` for only your tenant or `trusted_external_tenants = ["", ""]` to allow specific other tenants.
 * > **NOTE:** In v3.0 of `azurerm` a new or updated Kusto Cluster will only allow your own tenant by default. Explicit configuration of this setting will change from `trusted_external_tenants = ["MyTenantOnly"]` to `trusted_external_tenants = []`.
 * @property virtualNetworkConfiguration A `virtual_network_configuration` block as defined below.
 * > **NOTE:** Currently removing `virtual_network_configuration` sets the `virtual_network_configuration` to `Disabled` state. But any changes to `virtual_network_configuration` in `Disabled` state forces a new resource to be created.
 * @property zones Specifies a list of Availability Zones in which this Kusto Cluster should be located. Changing this forces a new Kusto Cluster to be created.
 */
public data class ClusterArgs(
    public val allowedFqdns: Output>? = null,
    public val allowedIpRanges: Output>? = null,
    public val autoStopEnabled: Output? = null,
    public val diskEncryptionEnabled: Output? = null,
    public val doubleEncryptionEnabled: Output? = null,
    @Deprecated(
        message = """
  This property has been deprecated as it will no longer be supported by the API. It will be removed
      in v4.0 of the AzureRM Provider.
  """,
    )
    public val engine: Output? = null,
    public val identity: Output? = null,
    public val languageExtensions: Output>? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val optimizedAutoScale: Output? = null,
    public val outboundNetworkAccessRestricted: Output? = null,
    public val publicIpType: Output? = null,
    public val publicNetworkAccessEnabled: Output? = null,
    public val purgeEnabled: Output? = null,
    public val resourceGroupName: Output? = null,
    public val sku: Output? = null,
    public val streamingIngestionEnabled: Output? = null,
    public val tags: Output>? = null,
    public val trustedExternalTenants: Output>? = null,
    public val virtualNetworkConfiguration: Output? = null,
    public val zones: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.kusto.ClusterArgs =
        com.pulumi.azure.kusto.ClusterArgs.builder()
            .allowedFqdns(allowedFqdns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .allowedIpRanges(allowedIpRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .autoStopEnabled(autoStopEnabled?.applyValue({ args0 -> args0 }))
            .diskEncryptionEnabled(diskEncryptionEnabled?.applyValue({ args0 -> args0 }))
            .doubleEncryptionEnabled(doubleEncryptionEnabled?.applyValue({ args0 -> args0 }))
            .engine(engine?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .languageExtensions(languageExtensions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .optimizedAutoScale(
                optimizedAutoScale?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .outboundNetworkAccessRestricted(outboundNetworkAccessRestricted?.applyValue({ args0 -> args0 }))
            .publicIpType(publicIpType?.applyValue({ args0 -> args0 }))
            .publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
            .purgeEnabled(purgeEnabled?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .streamingIngestionEnabled(streamingIngestionEnabled?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .trustedExternalTenants(
                trustedExternalTenants?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .virtualNetworkConfiguration(
                virtualNetworkConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ClusterArgs].
 */
@PulumiTagMarker
public class ClusterArgsBuilder internal constructor() {
    private var allowedFqdns: Output>? = null

    private var allowedIpRanges: Output>? = null

    private var autoStopEnabled: Output? = null

    private var diskEncryptionEnabled: Output? = null

    private var doubleEncryptionEnabled: Output? = null

    private var engine: Output? = null

    private var identity: Output? = null

    private var languageExtensions: Output>? = null

    private var location: Output? = null

    private var name: Output? = null

    private var optimizedAutoScale: Output? = null

    private var outboundNetworkAccessRestricted: Output? = null

    private var publicIpType: Output? = null

    private var publicNetworkAccessEnabled: Output? = null

    private var purgeEnabled: Output? = null

    private var resourceGroupName: Output? = null

    private var sku: Output? = null

    private var streamingIngestionEnabled: Output? = null

    private var tags: Output>? = null

    private var trustedExternalTenants: Output>? = null

    private var virtualNetworkConfiguration: Output? = null

    private var zones: Output>? = null

    /**
     * @param value List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
     */
    @JvmName("ujracdkoaalqxlux")
    public suspend fun allowedFqdns(`value`: Output>) {
        this.allowedFqdns = value
    }

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

    /**
     * @param values List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
     */
    @JvmName("mtidmksrviasgmgu")
    public suspend fun allowedFqdns(values: List>) {
        this.allowedFqdns = Output.all(values)
    }

    /**
     * @param value The list of ips in the format of CIDR allowed to connect to the cluster.
     */
    @JvmName("yepwcikoyhyeyrxj")
    public suspend fun allowedIpRanges(`value`: Output>) {
        this.allowedIpRanges = value
    }

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

    /**
     * @param values The list of ips in the format of CIDR allowed to connect to the cluster.
     */
    @JvmName("ryfqoiqgcvhorpaq")
    public suspend fun allowedIpRanges(values: List>) {
        this.allowedIpRanges = Output.all(values)
    }

    /**
     * @param value Specifies if the cluster could be automatically stopped (due to lack of data or no activity for many days). Defaults to `true`.
     */
    @JvmName("srbwvbaffwcaqnqr")
    public suspend fun autoStopEnabled(`value`: Output) {
        this.autoStopEnabled = value
    }

    /**
     * @param value Specifies if the cluster's disks are encrypted.
     */
    @JvmName("uomjrhhwapjulvsb")
    public suspend fun diskEncryptionEnabled(`value`: Output) {
        this.diskEncryptionEnabled = value
    }

    /**
     * @param value Is the cluster's double encryption enabled? Changing this forces a new resource to be created.
     */
    @JvmName("napefqcqxkiahlwe")
    public suspend fun doubleEncryptionEnabled(`value`: Output) {
        this.doubleEncryptionEnabled = value
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  This property has been deprecated as it will no longer be supported by the API. It will be removed
      in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("jpheiuhkfkhukkuv")
    public suspend fun engine(`value`: Output) {
        this.engine = value
    }

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

    /**
     * @param value An list of `language_extensions` to enable. Valid values are: `PYTHON`, `PYTHON_3.10.8` and `R`. `PYTHON` is used to specify Python 3.6.5 image and `PYTHON_3.10.8` is used to specify Python 3.10.8 image. Note that `PYTHON_3.10.8` is only available in skus which support nested virtualization.
     * > **NOTE:** In `v4.0.0` and later version of the AzureRM Provider, `language_extensions` will be changed to a list of `language_extension` block. In each block, `name` and `image` are required. `name` is the name of the language extension, possible values are `PYTHON`, `R`. `image` is the image of the language extension, possible values are `Python3_6_5`, `Python3_10_8` and `R`.
     */
    @JvmName("wpuytxoigpyfdiih")
    public suspend fun languageExtensions(`value`: Output>) {
        this.languageExtensions = value
    }

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

    /**
     * @param values An list of `language_extensions` to enable. Valid values are: `PYTHON`, `PYTHON_3.10.8` and `R`. `PYTHON` is used to specify Python 3.6.5 image and `PYTHON_3.10.8` is used to specify Python 3.10.8 image. Note that `PYTHON_3.10.8` is only available in skus which support nested virtualization.
     * > **NOTE:** In `v4.0.0` and later version of the AzureRM Provider, `language_extensions` will be changed to a list of `language_extension` block. In each block, `name` and `image` are required. `name` is the name of the language extension, possible values are `PYTHON`, `R`. `image` is the image of the language extension, possible values are `Python3_6_5`, `Python3_10_8` and `R`.
     */
    @JvmName("hoswdvdteawwdsoa")
    public suspend fun languageExtensions(values: List>) {
        this.languageExtensions = Output.all(values)
    }

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

    /**
     * @param value The name of the Kusto Cluster to create. Only lowercase Alphanumeric characters allowed, starting with a letter. Changing this forces a new resource to be created.
     */
    @JvmName("psioghdlnflyotnk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value Whether to restrict outbound network access. Value is optional but if passed in, must be `true` or `false`, default is `false`.
     */
    @JvmName("pdskpswfwwaxetcm")
    public suspend fun outboundNetworkAccessRestricted(`value`: Output) {
        this.outboundNetworkAccessRestricted = value
    }

    /**
     * @param value Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). Defaults to `IPv4`.
     */
    @JvmName("puqdubrdtbmdxpjm")
    public suspend fun publicIpType(`value`: Output) {
        this.publicIpType = value
    }

    /**
     * @param value Is the public network access enabled? Defaults to `true`.
     */
    @JvmName("cfuwlwhyfllirbnt")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

    /**
     * @param value Specifies if the purge operations are enabled.
     */
    @JvmName("pkilawfyqhnodnhy")
    public suspend fun purgeEnabled(`value`: Output) {
        this.purgeEnabled = value
    }

    /**
     * @param value Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.
     */
    @JvmName("luxbuyaejfmoijjy")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

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

    /**
     * @param value Specifies if the streaming ingest is enabled.
     */
    @JvmName("kmswgrxabyoyutqk")
    public suspend fun streamingIngestionEnabled(`value`: Output) {
        this.streamingIngestionEnabled = value
    }

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

    /**
     * @param value Specifies a list of tenant IDs that are trusted by the cluster. Default setting trusts all other tenants. Use `trusted_external_tenants = ["*"]` to explicitly allow all other tenants, `trusted_external_tenants = ["MyTenantOnly"]` for only your tenant or `trusted_external_tenants = ["", ""]` to allow specific other tenants.
     * > **NOTE:** In v3.0 of `azurerm` a new or updated Kusto Cluster will only allow your own tenant by default. Explicit configuration of this setting will change from `trusted_external_tenants = ["MyTenantOnly"]` to `trusted_external_tenants = []`.
     */
    @JvmName("vjrfpangspndoqvh")
    public suspend fun trustedExternalTenants(`value`: Output>) {
        this.trustedExternalTenants = value
    }

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

    /**
     * @param values Specifies a list of tenant IDs that are trusted by the cluster. Default setting trusts all other tenants. Use `trusted_external_tenants = ["*"]` to explicitly allow all other tenants, `trusted_external_tenants = ["MyTenantOnly"]` for only your tenant or `trusted_external_tenants = ["", ""]` to allow specific other tenants.
     * > **NOTE:** In v3.0 of `azurerm` a new or updated Kusto Cluster will only allow your own tenant by default. Explicit configuration of this setting will change from `trusted_external_tenants = ["MyTenantOnly"]` to `trusted_external_tenants = []`.
     */
    @JvmName("iwtfohufrknhwlrn")
    public suspend fun trustedExternalTenants(values: List>) {
        this.trustedExternalTenants = Output.all(values)
    }

    /**
     * @param value A `virtual_network_configuration` block as defined below.
     * > **NOTE:** Currently removing `virtual_network_configuration` sets the `virtual_network_configuration` to `Disabled` state. But any changes to `virtual_network_configuration` in `Disabled` state forces a new resource to be created.
     */
    @JvmName("hhdqetduijdesclm")
    public suspend fun virtualNetworkConfiguration(`value`: Output) {
        this.virtualNetworkConfiguration = value
    }

    /**
     * @param value Specifies a list of Availability Zones in which this Kusto Cluster should be located. Changing this forces a new Kusto Cluster to be created.
     */
    @JvmName("lqvctidpwbwdhrvh")
    public suspend fun zones(`value`: Output>) {
        this.zones = value
    }

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

    /**
     * @param values Specifies a list of Availability Zones in which this Kusto Cluster should be located. Changing this forces a new Kusto Cluster to be created.
     */
    @JvmName("htkttwfcwjreiwss")
    public suspend fun zones(values: List>) {
        this.zones = Output.all(values)
    }

    /**
     * @param value List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
     */
    @JvmName("xcyrkitjevhpqoyo")
    public suspend fun allowedFqdns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedFqdns = mapped
    }

    /**
     * @param values List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster.
     */
    @JvmName("vlkyliiarugxwssv")
    public suspend fun allowedFqdns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedFqdns = mapped
    }

    /**
     * @param value The list of ips in the format of CIDR allowed to connect to the cluster.
     */
    @JvmName("ckgjnguclneqaetq")
    public suspend fun allowedIpRanges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedIpRanges = mapped
    }

    /**
     * @param values The list of ips in the format of CIDR allowed to connect to the cluster.
     */
    @JvmName("gccvvhvimdcjiwah")
    public suspend fun allowedIpRanges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedIpRanges = mapped
    }

    /**
     * @param value Specifies if the cluster could be automatically stopped (due to lack of data or no activity for many days). Defaults to `true`.
     */
    @JvmName("vqnnaaqrvmujbywd")
    public suspend fun autoStopEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoStopEnabled = mapped
    }

    /**
     * @param value Specifies if the cluster's disks are encrypted.
     */
    @JvmName("ewjdlobddgyrrblh")
    public suspend fun diskEncryptionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptionEnabled = mapped
    }

    /**
     * @param value Is the cluster's double encryption enabled? Changing this forces a new resource to be created.
     */
    @JvmName("clxsufyqenopxewg")
    public suspend fun doubleEncryptionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.doubleEncryptionEnabled = mapped
    }

    /**
     * @param value
     */
    @Deprecated(
        message = """
  This property has been deprecated as it will no longer be supported by the API. It will be removed
      in v4.0 of the AzureRM Provider.
  """,
    )
    @JvmName("drvuuhadcvjdsvhh")
    public suspend fun engine(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engine = mapped
    }

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

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

    /**
     * @param value An list of `language_extensions` to enable. Valid values are: `PYTHON`, `PYTHON_3.10.8` and `R`. `PYTHON` is used to specify Python 3.6.5 image and `PYTHON_3.10.8` is used to specify Python 3.10.8 image. Note that `PYTHON_3.10.8` is only available in skus which support nested virtualization.
     * > **NOTE:** In `v4.0.0` and later version of the AzureRM Provider, `language_extensions` will be changed to a list of `language_extension` block. In each block, `name` and `image` are required. `name` is the name of the language extension, possible values are `PYTHON`, `R`. `image` is the image of the language extension, possible values are `Python3_6_5`, `Python3_10_8` and `R`.
     */
    @JvmName("pjbbosincmgysvnw")
    public suspend fun languageExtensions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.languageExtensions = mapped
    }

    /**
     * @param values An list of `language_extensions` to enable. Valid values are: `PYTHON`, `PYTHON_3.10.8` and `R`. `PYTHON` is used to specify Python 3.6.5 image and `PYTHON_3.10.8` is used to specify Python 3.10.8 image. Note that `PYTHON_3.10.8` is only available in skus which support nested virtualization.
     * > **NOTE:** In `v4.0.0` and later version of the AzureRM Provider, `language_extensions` will be changed to a list of `language_extension` block. In each block, `name` and `image` are required. `name` is the name of the language extension, possible values are `PYTHON`, `R`. `image` is the image of the language extension, possible values are `Python3_6_5`, `Python3_10_8` and `R`.
     */
    @JvmName("bukspbhpgduhwqjk")
    public suspend fun languageExtensions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.languageExtensions = mapped
    }

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

    /**
     * @param value The name of the Kusto Cluster to create. Only lowercase Alphanumeric characters allowed, starting with a letter. Changing this forces a new resource to be created.
     */
    @JvmName("cessqeagltwewkqv")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

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

    /**
     * @param value Whether to restrict outbound network access. Value is optional but if passed in, must be `true` or `false`, default is `false`.
     */
    @JvmName("qwjljlwhaqujvvkj")
    public suspend fun outboundNetworkAccessRestricted(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outboundNetworkAccessRestricted = mapped
    }

    /**
     * @param value Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). Defaults to `IPv4`.
     */
    @JvmName("owimwxsmangoqwep")
    public suspend fun publicIpType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpType = mapped
    }

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

    /**
     * @param value Specifies if the purge operations are enabled.
     */
    @JvmName("sesajcrneebianhc")
    public suspend fun purgeEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.purgeEnabled = mapped
    }

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

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

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

    /**
     * @param value Specifies if the streaming ingest is enabled.
     */
    @JvmName("kurwckebhcvuhrme")
    public suspend fun streamingIngestionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamingIngestionEnabled = mapped
    }

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

    /**
     * @param value Specifies a list of tenant IDs that are trusted by the cluster. Default setting trusts all other tenants. Use `trusted_external_tenants = ["*"]` to explicitly allow all other tenants, `trusted_external_tenants = ["MyTenantOnly"]` for only your tenant or `trusted_external_tenants = ["", ""]` to allow specific other tenants.
     * > **NOTE:** In v3.0 of `azurerm` a new or updated Kusto Cluster will only allow your own tenant by default. Explicit configuration of this setting will change from `trusted_external_tenants = ["MyTenantOnly"]` to `trusted_external_tenants = []`.
     */
    @JvmName("peehrtahklfjjemp")
    public suspend fun trustedExternalTenants(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustedExternalTenants = mapped
    }

    /**
     * @param values Specifies a list of tenant IDs that are trusted by the cluster. Default setting trusts all other tenants. Use `trusted_external_tenants = ["*"]` to explicitly allow all other tenants, `trusted_external_tenants = ["MyTenantOnly"]` for only your tenant or `trusted_external_tenants = ["", ""]` to allow specific other tenants.
     * > **NOTE:** In v3.0 of `azurerm` a new or updated Kusto Cluster will only allow your own tenant by default. Explicit configuration of this setting will change from `trusted_external_tenants = ["MyTenantOnly"]` to `trusted_external_tenants = []`.
     */
    @JvmName("iywbwljrltmomeya")
    public suspend fun trustedExternalTenants(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trustedExternalTenants = mapped
    }

    /**
     * @param value A `virtual_network_configuration` block as defined below.
     * > **NOTE:** Currently removing `virtual_network_configuration` sets the `virtual_network_configuration` to `Disabled` state. But any changes to `virtual_network_configuration` in `Disabled` state forces a new resource to be created.
     */
    @JvmName("mtylhdqsovexxhpu")
    public suspend fun virtualNetworkConfiguration(`value`: ClusterVirtualNetworkConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualNetworkConfiguration = mapped
    }

    /**
     * @param argument A `virtual_network_configuration` block as defined below.
     * > **NOTE:** Currently removing `virtual_network_configuration` sets the `virtual_network_configuration` to `Disabled` state. But any changes to `virtual_network_configuration` in `Disabled` state forces a new resource to be created.
     */
    @JvmName("wlmgtkfvxvqcbmui")
    public suspend fun virtualNetworkConfiguration(argument: suspend ClusterVirtualNetworkConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterVirtualNetworkConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.virtualNetworkConfiguration = mapped
    }

    /**
     * @param value Specifies a list of Availability Zones in which this Kusto Cluster should be located. Changing this forces a new Kusto Cluster to be created.
     */
    @JvmName("hpersrewgaadeayv")
    public suspend fun zones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    /**
     * @param values Specifies a list of Availability Zones in which this Kusto Cluster should be located. Changing this forces a new Kusto Cluster to be created.
     */
    @JvmName("dknainxnbxoodpcs")
    public suspend fun zones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    internal fun build(): ClusterArgs = ClusterArgs(
        allowedFqdns = allowedFqdns,
        allowedIpRanges = allowedIpRanges,
        autoStopEnabled = autoStopEnabled,
        diskEncryptionEnabled = diskEncryptionEnabled,
        doubleEncryptionEnabled = doubleEncryptionEnabled,
        engine = engine,
        identity = identity,
        languageExtensions = languageExtensions,
        location = location,
        name = name,
        optimizedAutoScale = optimizedAutoScale,
        outboundNetworkAccessRestricted = outboundNetworkAccessRestricted,
        publicIpType = publicIpType,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        purgeEnabled = purgeEnabled,
        resourceGroupName = resourceGroupName,
        sku = sku,
        streamingIngestionEnabled = streamingIngestionEnabled,
        tags = tags,
        trustedExternalTenants = trustedExternalTenants,
        virtualNetworkConfiguration = virtualNetworkConfiguration,
        zones = zones,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy