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

com.pulumi.azure.hdinsight.kotlin.KafkaClusterArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.hdinsight.kotlin

import com.pulumi.azure.hdinsight.KafkaClusterArgs.builder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterComponentVersionArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterComponentVersionArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterComputeIsolationArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterComputeIsolationArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterDiskEncryptionArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterDiskEncryptionArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterExtensionArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterExtensionArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterGatewayArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterGatewayArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterMetastoresArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterMetastoresArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterMonitorArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterMonitorArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterNetworkArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterNetworkArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterPrivateLinkConfigurationArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterPrivateLinkConfigurationArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterRestProxyArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterRestProxyArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterRolesArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterRolesArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterSecurityProfileArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterSecurityProfileArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterStorageAccountArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterStorageAccountArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterStorageAccountGen2Args
import com.pulumi.azure.hdinsight.kotlin.inputs.KafkaClusterStorageAccountGen2ArgsBuilder
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 HDInsight Kafka Cluster.
 * ## 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 exampleAccount = new azure.storage.Account("example", {
 *     name: "hdinsightstor",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountReplicationType: "LRS",
 * });
 * const exampleContainer = new azure.storage.Container("example", {
 *     name: "hdinsight",
 *     storageAccountName: exampleAccount.name,
 *     containerAccessType: "private",
 * });
 * const exampleKafkaCluster = new azure.hdinsight.KafkaCluster("example", {
 *     name: "example-hdicluster",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     clusterVersion: "4.0",
 *     tier: "Standard",
 *     componentVersion: {
 *         kafka: "2.1",
 *     },
 *     gateway: {
 *         username: "acctestusrgw",
 *         password: "Password123!",
 *     },
 *     storageAccounts: [{
 *         storageContainerId: exampleContainer.id,
 *         storageAccountKey: exampleAccount.primaryAccessKey,
 *         isDefault: true,
 *     }],
 *     roles: {
 *         headNode: {
 *             vmSize: "Standard_D3_V2",
 *             username: "acctestusrvm",
 *             password: "AccTestvdSC4daf986!",
 *         },
 *         workerNode: {
 *             vmSize: "Standard_D3_V2",
 *             username: "acctestusrvm",
 *             password: "AccTestvdSC4daf986!",
 *             numberOfDisksPerNode: 3,
 *             targetInstanceCount: 3,
 *         },
 *         zookeeperNode: {
 *             vmSize: "Standard_D3_V2",
 *             username: "acctestusrvm",
 *             password: "AccTestvdSC4daf986!",
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_account = azure.storage.Account("example",
 *     name="hdinsightstor",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_replication_type="LRS")
 * example_container = azure.storage.Container("example",
 *     name="hdinsight",
 *     storage_account_name=example_account.name,
 *     container_access_type="private")
 * example_kafka_cluster = azure.hdinsight.KafkaCluster("example",
 *     name="example-hdicluster",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     cluster_version="4.0",
 *     tier="Standard",
 *     component_version=azure.hdinsight.KafkaClusterComponentVersionArgs(
 *         kafka="2.1",
 *     ),
 *     gateway=azure.hdinsight.KafkaClusterGatewayArgs(
 *         username="acctestusrgw",
 *         password="Password123!",
 *     ),
 *     storage_accounts=[azure.hdinsight.KafkaClusterStorageAccountArgs(
 *         storage_container_id=example_container.id,
 *         storage_account_key=example_account.primary_access_key,
 *         is_default=True,
 *     )],
 *     roles=azure.hdinsight.KafkaClusterRolesArgs(
 *         head_node=azure.hdinsight.KafkaClusterRolesHeadNodeArgs(
 *             vm_size="Standard_D3_V2",
 *             username="acctestusrvm",
 *             password="AccTestvdSC4daf986!",
 *         ),
 *         worker_node=azure.hdinsight.KafkaClusterRolesWorkerNodeArgs(
 *             vm_size="Standard_D3_V2",
 *             username="acctestusrvm",
 *             password="AccTestvdSC4daf986!",
 *             number_of_disks_per_node=3,
 *             target_instance_count=3,
 *         ),
 *         zookeeper_node=azure.hdinsight.KafkaClusterRolesZookeeperNodeArgs(
 *             vm_size="Standard_D3_V2",
 *             username="acctestusrvm",
 *             password="AccTestvdSC4daf986!",
 *         ),
 *     ))
 * ```
 * ```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 exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "hdinsightstor",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountReplicationType = "LRS",
 *     });
 *     var exampleContainer = new Azure.Storage.Container("example", new()
 *     {
 *         Name = "hdinsight",
 *         StorageAccountName = exampleAccount.Name,
 *         ContainerAccessType = "private",
 *     });
 *     var exampleKafkaCluster = new Azure.HDInsight.KafkaCluster("example", new()
 *     {
 *         Name = "example-hdicluster",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         ClusterVersion = "4.0",
 *         Tier = "Standard",
 *         ComponentVersion = new Azure.HDInsight.Inputs.KafkaClusterComponentVersionArgs
 *         {
 *             Kafka = "2.1",
 *         },
 *         Gateway = new Azure.HDInsight.Inputs.KafkaClusterGatewayArgs
 *         {
 *             Username = "acctestusrgw",
 *             Password = "Password123!",
 *         },
 *         StorageAccounts = new[]
 *         {
 *             new Azure.HDInsight.Inputs.KafkaClusterStorageAccountArgs
 *             {
 *                 StorageContainerId = exampleContainer.Id,
 *                 StorageAccountKey = exampleAccount.PrimaryAccessKey,
 *                 IsDefault = true,
 *             },
 *         },
 *         Roles = new Azure.HDInsight.Inputs.KafkaClusterRolesArgs
 *         {
 *             HeadNode = new Azure.HDInsight.Inputs.KafkaClusterRolesHeadNodeArgs
 *             {
 *                 VmSize = "Standard_D3_V2",
 *                 Username = "acctestusrvm",
 *                 Password = "AccTestvdSC4daf986!",
 *             },
 *             WorkerNode = new Azure.HDInsight.Inputs.KafkaClusterRolesWorkerNodeArgs
 *             {
 *                 VmSize = "Standard_D3_V2",
 *                 Username = "acctestusrvm",
 *                 Password = "AccTestvdSC4daf986!",
 *                 NumberOfDisksPerNode = 3,
 *                 TargetInstanceCount = 3,
 *             },
 *             ZookeeperNode = new Azure.HDInsight.Inputs.KafkaClusterRolesZookeeperNodeArgs
 *             {
 *                 VmSize = "Standard_D3_V2",
 *                 Username = "acctestusrvm",
 *                 Password = "AccTestvdSC4daf986!",
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/hdinsight"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("hdinsightstor"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
 * 			Name:                pulumi.String("hdinsight"),
 * 			StorageAccountName:  exampleAccount.Name,
 * 			ContainerAccessType: pulumi.String("private"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = hdinsight.NewKafkaCluster(ctx, "example", &hdinsight.KafkaClusterArgs{
 * 			Name:              pulumi.String("example-hdicluster"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			ClusterVersion:    pulumi.String("4.0"),
 * 			Tier:              pulumi.String("Standard"),
 * 			ComponentVersion: &hdinsight.KafkaClusterComponentVersionArgs{
 * 				Kafka: pulumi.String("2.1"),
 * 			},
 * 			Gateway: &hdinsight.KafkaClusterGatewayArgs{
 * 				Username: pulumi.String("acctestusrgw"),
 * 				Password: pulumi.String("Password123!"),
 * 			},
 * 			StorageAccounts: hdinsight.KafkaClusterStorageAccountArray{
 * 				&hdinsight.KafkaClusterStorageAccountArgs{
 * 					StorageContainerId: exampleContainer.ID(),
 * 					StorageAccountKey:  exampleAccount.PrimaryAccessKey,
 * 					IsDefault:          pulumi.Bool(true),
 * 				},
 * 			},
 * 			Roles: &hdinsight.KafkaClusterRolesArgs{
 * 				HeadNode: &hdinsight.KafkaClusterRolesHeadNodeArgs{
 * 					VmSize:   pulumi.String("Standard_D3_V2"),
 * 					Username: pulumi.String("acctestusrvm"),
 * 					Password: pulumi.String("AccTestvdSC4daf986!"),
 * 				},
 * 				WorkerNode: &hdinsight.KafkaClusterRolesWorkerNodeArgs{
 * 					VmSize:               pulumi.String("Standard_D3_V2"),
 * 					Username:             pulumi.String("acctestusrvm"),
 * 					Password:             pulumi.String("AccTestvdSC4daf986!"),
 * 					NumberOfDisksPerNode: pulumi.Int(3),
 * 					TargetInstanceCount:  pulumi.Int(3),
 * 				},
 * 				ZookeeperNode: &hdinsight.KafkaClusterRolesZookeeperNodeArgs{
 * 					VmSize:   pulumi.String("Standard_D3_V2"),
 * 					Username: pulumi.String("acctestusrvm"),
 * 					Password: pulumi.String("AccTestvdSC4daf986!"),
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.storage.Container;
 * import com.pulumi.azure.storage.ContainerArgs;
 * import com.pulumi.azure.hdinsight.KafkaCluster;
 * import com.pulumi.azure.hdinsight.KafkaClusterArgs;
 * import com.pulumi.azure.hdinsight.inputs.KafkaClusterComponentVersionArgs;
 * import com.pulumi.azure.hdinsight.inputs.KafkaClusterGatewayArgs;
 * import com.pulumi.azure.hdinsight.inputs.KafkaClusterStorageAccountArgs;
 * import com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesArgs;
 * import com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesHeadNodeArgs;
 * import com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesWorkerNodeArgs;
 * import com.pulumi.azure.hdinsight.inputs.KafkaClusterRolesZookeeperNodeArgs;
 * 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 exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("hdinsightstor")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .build());
 *         var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
 *             .name("hdinsight")
 *             .storageAccountName(exampleAccount.name())
 *             .containerAccessType("private")
 *             .build());
 *         var exampleKafkaCluster = new KafkaCluster("exampleKafkaCluster", KafkaClusterArgs.builder()
 *             .name("example-hdicluster")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .clusterVersion("4.0")
 *             .tier("Standard")
 *             .componentVersion(KafkaClusterComponentVersionArgs.builder()
 *                 .kafka("2.1")
 *                 .build())
 *             .gateway(KafkaClusterGatewayArgs.builder()
 *                 .username("acctestusrgw")
 *                 .password("Password123!")
 *                 .build())
 *             .storageAccounts(KafkaClusterStorageAccountArgs.builder()
 *                 .storageContainerId(exampleContainer.id())
 *                 .storageAccountKey(exampleAccount.primaryAccessKey())
 *                 .isDefault(true)
 *                 .build())
 *             .roles(KafkaClusterRolesArgs.builder()
 *                 .headNode(KafkaClusterRolesHeadNodeArgs.builder()
 *                     .vmSize("Standard_D3_V2")
 *                     .username("acctestusrvm")
 *                     .password("AccTestvdSC4daf986!")
 *                     .build())
 *                 .workerNode(KafkaClusterRolesWorkerNodeArgs.builder()
 *                     .vmSize("Standard_D3_V2")
 *                     .username("acctestusrvm")
 *                     .password("AccTestvdSC4daf986!")
 *                     .numberOfDisksPerNode(3)
 *                     .targetInstanceCount(3)
 *                     .build())
 *                 .zookeeperNode(KafkaClusterRolesZookeeperNodeArgs.builder()
 *                     .vmSize("Standard_D3_V2")
 *                     .username("acctestusrvm")
 *                     .password("AccTestvdSC4daf986!")
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: hdinsightstor
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountReplicationType: LRS
 *   exampleContainer:
 *     type: azure:storage:Container
 *     name: example
 *     properties:
 *       name: hdinsight
 *       storageAccountName: ${exampleAccount.name}
 *       containerAccessType: private
 *   exampleKafkaCluster:
 *     type: azure:hdinsight:KafkaCluster
 *     name: example
 *     properties:
 *       name: example-hdicluster
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       clusterVersion: '4.0'
 *       tier: Standard
 *       componentVersion:
 *         kafka: '2.1'
 *       gateway:
 *         username: acctestusrgw
 *         password: Password123!
 *       storageAccounts:
 *         - storageContainerId: ${exampleContainer.id}
 *           storageAccountKey: ${exampleAccount.primaryAccessKey}
 *           isDefault: true
 *       roles:
 *         headNode:
 *           vmSize: Standard_D3_V2
 *           username: acctestusrvm
 *           password: AccTestvdSC4daf986!
 *         workerNode:
 *           vmSize: Standard_D3_V2
 *           username: acctestusrvm
 *           password: AccTestvdSC4daf986!
 *           numberOfDisksPerNode: 3
 *           targetInstanceCount: 3
 *         zookeeperNode:
 *           vmSize: Standard_D3_V2
 *           username: acctestusrvm
 *           password: AccTestvdSC4daf986!
 * ```
 * 
 * ## Import
 * HDInsight Kafka Clusters can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:hdinsight/kafkaCluster:KafkaCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1
 * ```
 * @property clusterVersion Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
 * @property componentVersion A `component_version` block as defined below.
 * @property computeIsolation A `compute_isolation` block as defined below.
 * @property diskEncryptions One or more `disk_encryption` block as defined below.
 * > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
 * @property encryptionInTransitEnabled Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
 * @property extension An `extension` block as defined below.
 * @property gateway A `gateway` block as defined below.
 * @property location Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
 * @property metastores A `metastores` block as defined below.
 * @property monitor A `monitor` block as defined below.
 * @property name Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
 * @property network A `network` block as defined below.
 * @property privateLinkConfiguration A `private_link_configuration` block as defined below.
 * @property resourceGroupName Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
 * @property restProxy A `rest_proxy` block as defined below.
 * @property roles A `roles` block as defined below.
 * @property securityProfile A `security_profile` block as defined below. Changing this forces a new resource to be created.
 * @property storageAccountGen2 A `storage_account_gen2` block as defined below.
 * @property storageAccounts One or more `storage_account` block as defined below.
 * @property tags A map of Tags which should be assigned to this HDInsight Kafka Cluster.
 * @property tier Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
 * @property tlsMinVersion The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created.
 */
public data class KafkaClusterArgs(
    public val clusterVersion: Output? = null,
    public val componentVersion: Output? = null,
    public val computeIsolation: Output? = null,
    public val diskEncryptions: Output>? = null,
    public val encryptionInTransitEnabled: Output? = null,
    public val extension: Output? = null,
    public val gateway: Output? = null,
    public val location: Output? = null,
    public val metastores: Output? = null,
    public val monitor: Output? = null,
    public val name: Output? = null,
    public val network: Output? = null,
    public val privateLinkConfiguration: Output? = null,
    public val resourceGroupName: Output? = null,
    public val restProxy: Output? = null,
    @Deprecated(
        message = """
  `kafka_management_node` will be removed in version 4.0 of the AzureRM Provider since it no longer
      support configurations from the user
  """,
    )
    public val roles: Output? = null,
    public val securityProfile: Output? = null,
    public val storageAccountGen2: Output? = null,
    public val storageAccounts: Output>? = null,
    public val tags: Output>? = null,
    public val tier: Output? = null,
    public val tlsMinVersion: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.hdinsight.KafkaClusterArgs =
        com.pulumi.azure.hdinsight.KafkaClusterArgs.builder()
            .clusterVersion(clusterVersion?.applyValue({ args0 -> args0 }))
            .componentVersion(componentVersion?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .computeIsolation(computeIsolation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .diskEncryptions(
                diskEncryptions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .encryptionInTransitEnabled(encryptionInTransitEnabled?.applyValue({ args0 -> args0 }))
            .extension(extension?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .gateway(gateway?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .metastores(metastores?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .monitor(monitor?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .privateLinkConfiguration(
                privateLinkConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .restProxy(restProxy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .roles(roles?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .securityProfile(securityProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .storageAccountGen2(
                storageAccountGen2?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .storageAccounts(
                storageAccounts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .tier(tier?.applyValue({ args0 -> args0 }))
            .tlsMinVersion(tlsMinVersion?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KafkaClusterArgs].
 */
@PulumiTagMarker
public class KafkaClusterArgsBuilder internal constructor() {
    private var clusterVersion: Output? = null

    private var componentVersion: Output? = null

    private var computeIsolation: Output? = null

    private var diskEncryptions: Output>? = null

    private var encryptionInTransitEnabled: Output? = null

    private var extension: Output? = null

    private var gateway: Output? = null

    private var location: Output? = null

    private var metastores: Output? = null

    private var monitor: Output? = null

    private var name: Output? = null

    private var network: Output? = null

    private var privateLinkConfiguration: Output? = null

    private var resourceGroupName: Output? = null

    private var restProxy: Output? = null

    private var roles: Output? = null

    private var securityProfile: Output? = null

    private var storageAccountGen2: Output? = null

    private var storageAccounts: Output>? = null

    private var tags: Output>? = null

    private var tier: Output? = null

    private var tlsMinVersion: Output? = null

    /**
     * @param value Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("irapphcwybymslpl")
    public suspend fun clusterVersion(`value`: Output) {
        this.clusterVersion = value
    }

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

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

    /**
     * @param value One or more `disk_encryption` block as defined below.
     * > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
     */
    @JvmName("kuksckjlosyypvkr")
    public suspend fun diskEncryptions(`value`: Output>) {
        this.diskEncryptions = value
    }

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

    /**
     * @param values One or more `disk_encryption` block as defined below.
     * > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
     */
    @JvmName("ykpoyojmdcsjlphn")
    public suspend fun diskEncryptions(values: List>) {
        this.diskEncryptions = Output.all(values)
    }

    /**
     * @param value Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("fqdhepwbpqlxkrbm")
    public suspend fun encryptionInTransitEnabled(`value`: Output) {
        this.encryptionInTransitEnabled = value
    }

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

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

    /**
     * @param value Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
     */
    @JvmName("qouxnbjspimvsemj")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

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

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

    /**
     * @param value Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("hrisdtmdnpchwmca")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

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

    /**
     * @param value Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
     */
    @JvmName("mgdutnhmtncickqs")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

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

    /**
     * @param value A `roles` block as defined below.
     */
    @Deprecated(
        message = """
  `kafka_management_node` will be removed in version 4.0 of the AzureRM Provider since it no longer
      support configurations from the user
  """,
    )
    @JvmName("frhmwogterjpgoso")
    public suspend fun roles(`value`: Output) {
        this.roles = value
    }

    /**
     * @param value A `security_profile` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("fnwajxyqenamxdqk")
    public suspend fun securityProfile(`value`: Output) {
        this.securityProfile = value
    }

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

    /**
     * @param value One or more `storage_account` block as defined below.
     */
    @JvmName("lkpemwetrlxwgilq")
    public suspend fun storageAccounts(`value`: Output>) {
        this.storageAccounts = value
    }

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

    /**
     * @param values One or more `storage_account` block as defined below.
     */
    @JvmName("iuugdxguykpcnjlp")
    public suspend fun storageAccounts(values: List>) {
        this.storageAccounts = Output.all(values)
    }

    /**
     * @param value A map of Tags which should be assigned to this HDInsight Kafka Cluster.
     */
    @JvmName("bwcsskmhvkpfioij")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
     */
    @JvmName("lbcepvthprqpyenb")
    public suspend fun tier(`value`: Output) {
        this.tier = value
    }

    /**
     * @param value The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created.
     */
    @JvmName("hfgesdctpnqdtitp")
    public suspend fun tlsMinVersion(`value`: Output) {
        this.tlsMinVersion = value
    }

    /**
     * @param value Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("ddinkdyuidxnukva")
    public suspend fun clusterVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterVersion = mapped
    }

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

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

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

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

    /**
     * @param value One or more `disk_encryption` block as defined below.
     * > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
     */
    @JvmName("xkgscpkekxtkuogp")
    public suspend fun diskEncryptions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptions = mapped
    }

    /**
     * @param argument One or more `disk_encryption` block as defined below.
     * > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
     */
    @JvmName("jiibqclqtnhvxheg")
    public suspend
    fun diskEncryptions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            KafkaClusterDiskEncryptionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.diskEncryptions = mapped
    }

    /**
     * @param argument One or more `disk_encryption` block as defined below.
     * > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
     */
    @JvmName("qyjepuuhqvsgyheg")
    public suspend fun diskEncryptions(
        vararg
        argument: suspend KafkaClusterDiskEncryptionArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            KafkaClusterDiskEncryptionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.diskEncryptions = mapped
    }

    /**
     * @param argument One or more `disk_encryption` block as defined below.
     * > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
     */
    @JvmName("cfplmikaqqofcihe")
    public suspend
    fun diskEncryptions(argument: suspend KafkaClusterDiskEncryptionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            KafkaClusterDiskEncryptionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.diskEncryptions = mapped
    }

    /**
     * @param values One or more `disk_encryption` block as defined below.
     * > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
     */
    @JvmName("lclmesskbknbbcsy")
    public suspend fun diskEncryptions(vararg values: KafkaClusterDiskEncryptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.diskEncryptions = mapped
    }

    /**
     * @param value Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("ancimomqlxyjfgqx")
    public suspend fun encryptionInTransitEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryptionInTransitEnabled = mapped
    }

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

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

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

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

    /**
     * @param value Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
     */
    @JvmName("mmghwqavgadaefvl")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

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

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

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

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

    /**
     * @param value Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
     */
    @JvmName("qrvacqnmqjbmdqub")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

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

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

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

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

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

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

    /**
     * @param value A `roles` block as defined below.
     */
    @Deprecated(
        message = """
  `kafka_management_node` will be removed in version 4.0 of the AzureRM Provider since it no longer
      support configurations from the user
  """,
    )
    @JvmName("htciktyyosvfophw")
    public suspend fun roles(`value`: KafkaClusterRolesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    /**
     * @param argument A `roles` block as defined below.
     */
    @Deprecated(
        message = """
  `kafka_management_node` will be removed in version 4.0 of the AzureRM Provider since it no longer
      support configurations from the user
  """,
    )
    @JvmName("jylogabpomnudxmp")
    public suspend fun roles(argument: suspend KafkaClusterRolesArgsBuilder.() -> Unit) {
        val toBeMapped = KafkaClusterRolesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.roles = mapped
    }

    /**
     * @param value A `security_profile` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("wlvashaaiphtanch")
    public suspend fun securityProfile(`value`: KafkaClusterSecurityProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityProfile = mapped
    }

    /**
     * @param argument A `security_profile` block as defined below. Changing this forces a new resource to be created.
     */
    @JvmName("jopktdmaoyfyjyms")
    public suspend
    fun securityProfile(argument: suspend KafkaClusterSecurityProfileArgsBuilder.() -> Unit) {
        val toBeMapped = KafkaClusterSecurityProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.securityProfile = mapped
    }

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

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

    /**
     * @param value One or more `storage_account` block as defined below.
     */
    @JvmName("sgyqmtlgtqxbtwpf")
    public suspend fun storageAccounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageAccounts = mapped
    }

    /**
     * @param argument One or more `storage_account` block as defined below.
     */
    @JvmName("iplafrjplggajhxl")
    public suspend
    fun storageAccounts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            KafkaClusterStorageAccountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.storageAccounts = mapped
    }

    /**
     * @param argument One or more `storage_account` block as defined below.
     */
    @JvmName("kbrenpueckhcsjdx")
    public suspend fun storageAccounts(
        vararg
        argument: suspend KafkaClusterStorageAccountArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            KafkaClusterStorageAccountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.storageAccounts = mapped
    }

    /**
     * @param argument One or more `storage_account` block as defined below.
     */
    @JvmName("giqmtdnmbtkcsgiw")
    public suspend
    fun storageAccounts(argument: suspend KafkaClusterStorageAccountArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            KafkaClusterStorageAccountArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.storageAccounts = mapped
    }

    /**
     * @param values One or more `storage_account` block as defined below.
     */
    @JvmName("qsmmdcxdcfjwufer")
    public suspend fun storageAccounts(vararg values: KafkaClusterStorageAccountArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageAccounts = mapped
    }

    /**
     * @param value A map of Tags which should be assigned to this HDInsight Kafka Cluster.
     */
    @JvmName("buojpfukwwsxsrsq")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A map of Tags which should be assigned to this HDInsight Kafka Cluster.
     */
    @JvmName("uwvqgsfsfdohjirv")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
     */
    @JvmName("ummrsyytyfieeekm")
    public suspend fun tier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tier = mapped
    }

    /**
     * @param value The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created.
     */
    @JvmName("bxufqatyboyyfhdh")
    public suspend fun tlsMinVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tlsMinVersion = mapped
    }

    internal fun build(): KafkaClusterArgs = KafkaClusterArgs(
        clusterVersion = clusterVersion,
        componentVersion = componentVersion,
        computeIsolation = computeIsolation,
        diskEncryptions = diskEncryptions,
        encryptionInTransitEnabled = encryptionInTransitEnabled,
        extension = extension,
        gateway = gateway,
        location = location,
        metastores = metastores,
        monitor = monitor,
        name = name,
        network = network,
        privateLinkConfiguration = privateLinkConfiguration,
        resourceGroupName = resourceGroupName,
        restProxy = restProxy,
        roles = roles,
        securityProfile = securityProfile,
        storageAccountGen2 = storageAccountGen2,
        storageAccounts = storageAccounts,
        tags = tags,
        tier = tier,
        tlsMinVersion = tlsMinVersion,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy