Kafka Cluster Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard