KafkaClusterArgs

data class KafkaClusterArgs(val clusterVersion: Output<String>? = null, val componentVersion: Output<KafkaClusterComponentVersionArgs>? = null, val computeIsolation: Output<KafkaClusterComputeIsolationArgs>? = null, val diskEncryptions: Output<List<KafkaClusterDiskEncryptionArgs>>? = null, val encryptionInTransitEnabled: Output<Boolean>? = null, val extension: Output<KafkaClusterExtensionArgs>? = null, val gateway: Output<KafkaClusterGatewayArgs>? = null, val location: Output<String>? = null, val metastores: Output<KafkaClusterMetastoresArgs>? = null, val monitor: Output<KafkaClusterMonitorArgs>? = null, val name: Output<String>? = null, val network: Output<KafkaClusterNetworkArgs>? = null, val resourceGroupName: Output<String>? = null, val restProxy: Output<KafkaClusterRestProxyArgs>? = null, val roles: Output<KafkaClusterRolesArgs>? = null, val securityProfile: Output<KafkaClusterSecurityProfileArgs>? = null, val storageAccountGen2: Output<KafkaClusterStorageAccountGen2Args>? = null, val storageAccounts: Output<List<KafkaClusterStorageAccountArgs>>? = null, val tags: Output<Map<String, String>>? = null, val tier: Output<String>? = null, val tlsMinVersion: Output<String>? = null) : ConvertibleToJava<KafkaClusterArgs>

Manages a HDInsight Kafka Cluster.

Example Usage

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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
.storageAccountName(exampleAccount.name())
.containerAccessType("private")
.build());
var exampleKafkaCluster = new KafkaCluster("exampleKafkaCluster", KafkaClusterArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.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());
}
}

Import

HDInsight Kafka Clusters can be imported using the resource id, e.g.

$ pulumi import azure:hdinsight/kafkaCluster:KafkaCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1

Constructors

Link copied to clipboard
fun KafkaClusterArgs(clusterVersion: Output<String>? = null, componentVersion: Output<KafkaClusterComponentVersionArgs>? = null, computeIsolation: Output<KafkaClusterComputeIsolationArgs>? = null, diskEncryptions: Output<List<KafkaClusterDiskEncryptionArgs>>? = null, encryptionInTransitEnabled: Output<Boolean>? = null, extension: Output<KafkaClusterExtensionArgs>? = null, gateway: Output<KafkaClusterGatewayArgs>? = null, location: Output<String>? = null, metastores: Output<KafkaClusterMetastoresArgs>? = null, monitor: Output<KafkaClusterMonitorArgs>? = null, name: Output<String>? = null, network: Output<KafkaClusterNetworkArgs>? = null, resourceGroupName: Output<String>? = null, restProxy: Output<KafkaClusterRestProxyArgs>? = null, roles: Output<KafkaClusterRolesArgs>? = null, securityProfile: Output<KafkaClusterSecurityProfileArgs>? = null, storageAccountGen2: Output<KafkaClusterStorageAccountGen2Args>? = null, storageAccounts: Output<List<KafkaClusterStorageAccountArgs>>? = null, tags: Output<Map<String, String>>? = null, tier: Output<String>? = null, tlsMinVersion: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): KafkaClusterArgs

Properties

Link copied to clipboard
val clusterVersion: Output<String>? = null

Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.

Link copied to clipboard

A component_version block as defined below.

Link copied to clipboard

A compute_isolation block as defined below.

Link copied to clipboard

One or more disk_encryption block as defined below.

Link copied to clipboard
val encryptionInTransitEnabled: Output<Boolean>? = null

Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.

Link copied to clipboard

An extension block as defined below.

Link copied to clipboard
val gateway: Output<KafkaClusterGatewayArgs>? = null

A gateway block as defined below.

Link copied to clipboard
val location: Output<String>? = null

Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.

Link copied to clipboard

A metastores block as defined below.

Link copied to clipboard
val monitor: Output<KafkaClusterMonitorArgs>? = null

A monitor block as defined below.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.

Link copied to clipboard
val network: Output<KafkaClusterNetworkArgs>? = null

A network block as defined below.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.

Link copied to clipboard

A rest_proxy block as defined below.

Link copied to clipboard
val roles: Output<KafkaClusterRolesArgs>? = null

A roles block as defined below.

Link copied to clipboard

A security_profile block as defined below. Changing this forces a new resource to be created.

Link copied to clipboard

A storage_account_gen2 block as defined below.

Link copied to clipboard

One or more storage_account block as defined below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of Tags which should be assigned to this HDInsight Kafka Cluster.

Link copied to clipboard
val tier: Output<String>? = null

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.

Link copied to clipboard
val tlsMinVersion: Output<String>? = null

The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created.