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

com.pulumi.azurenative.hdinsight.Cluster Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.hdinsight;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.hdinsight.ClusterArgs;
import com.pulumi.azurenative.hdinsight.outputs.ClusterGetPropertiesResponse;
import com.pulumi.azurenative.hdinsight.outputs.ClusterIdentityResponse;
import com.pulumi.azurenative.hdinsight.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The HDInsight cluster.
 * Azure REST API version: 2021-06-01. Prior API version in Azure Native 1.x: 2018-06-01-preview.
 * 
 * Other available API versions: 2023-04-15-preview, 2023-06-01-preview, 2023-08-15-preview, 2023-11-01-preview, 2024-05-01-preview, 2024-08-01-preview.
 * 
 * ## Example Usage
 * ### Create HDInsight cluster with Autoscale configuration
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .componentVersion(Map.of("Hadoop", "2.7"))
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("hadoop")
 *                     .build())
 *                 .clusterVersion("3.6")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(RoleArgs.builder()
 *                         .autoscaleConfiguration(AutoscaleArgs.builder()
 *                             .recurrence(AutoscaleRecurrenceArgs.builder()
 *                                 .schedule(                                
 *                                     AutoscaleScheduleArgs.builder()
 *                                         .days(                                        
 *                                             "Monday",
 *                                             "Tuesday",
 *                                             "Wednesday",
 *                                             "Thursday",
 *                                             "Friday")
 *                                         .timeAndCapacity(AutoscaleTimeAndCapacityArgs.builder()
 *                                             .maxInstanceCount(3)
 *                                             .minInstanceCount(3)
 *                                             .time("09:00")
 *                                             .build())
 *                                         .build(),
 *                                     AutoscaleScheduleArgs.builder()
 *                                         .days(                                        
 *                                             "Monday",
 *                                             "Tuesday",
 *                                             "Wednesday",
 *                                             "Thursday",
 *                                             "Friday")
 *                                         .timeAndCapacity(AutoscaleTimeAndCapacityArgs.builder()
 *                                             .maxInstanceCount(6)
 *                                             .minInstanceCount(6)
 *                                             .time("18:00")
 *                                             .build())
 *                                         .build(),
 *                                     AutoscaleScheduleArgs.builder()
 *                                         .days(                                        
 *                                             "Saturday",
 *                                             "Sunday")
 *                                         .timeAndCapacity(AutoscaleTimeAndCapacityArgs.builder()
 *                                             .maxInstanceCount(2)
 *                                             .minInstanceCount(2)
 *                                             .time("09:00")
 *                                             .build())
 *                                         .build(),
 *                                     AutoscaleScheduleArgs.builder()
 *                                         .days(                                        
 *                                             "Saturday",
 *                                             "Sunday")
 *                                         .timeAndCapacity(AutoscaleTimeAndCapacityArgs.builder()
 *                                             .maxInstanceCount(4)
 *                                             .minInstanceCount(4)
 *                                             .time("18:00")
 *                                             .build())
 *                                         .build())
 *                                 .timeZone("China Standard Time")
 *                                 .build())
 *                             .build())
 *                         .hardwareProfile(HardwareProfileArgs.builder()
 *                             .vmSize("Standard_D4_V2")
 *                             .build())
 *                         .name("workernode")
 *                         .osProfile(OsProfileArgs.builder()
 *                             .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                 .password("**********")
 *                                 .username("sshuser")
 *                                 .build())
 *                             .build())
 *                         .scriptActions()
 *                         .targetInstanceCount(4)
 *                         .build())
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("hdinsight-autoscale-tes-2019-06-18t05-49-16-591z")
 *                         .isDefault(true)
 *                         .key("storagekey")
 *                         .name("mystorage.blob.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Standard")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create Hadoop cluster with Azure Data Lake Storage Gen 2 * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", "true"),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("Hadoop")
 *                     .build())
 *                 .clusterVersion("3.6")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D3_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D3_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(4)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Small")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("zookeepernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build())
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .fileSystem("default")
 *                         .isDefault(true)
 *                         .key("storagekey")
 *                         .name("mystorage.dfs.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Standard")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .tags(Map.of("key1", "val1"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create Hadoop on Linux cluster with SSH password * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", "true"),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("Hadoop")
 *                     .build())
 *                 .clusterVersion("3.5")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D3_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D3_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(4)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Small")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("zookeepernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build())
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("containername")
 *                         .isDefault(true)
 *                         .key("storagekey")
 *                         .name("mystorage.blob.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Standard")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .tags(Map.of("key1", "val1"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create Hadoop on Linux cluster with SSH public key * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("Hadoop")
 *                     .build())
 *                 .clusterVersion("3.5")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D3_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D3_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(4)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Small")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("zookeepernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build())
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("containername")
 *                         .isDefault(true)
 *                         .key("storagekey")
 *                         .name("mystorage.blob.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Standard")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .tags(Map.of("key1", "val1"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create Kafka cluster with Kafka Rest Proxy * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.KafkaRestPropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClientGroupInfoArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .componentVersion(Map.of("Kafka", "2.1"))
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("kafka")
 *                     .build())
 *                 .clusterVersion("4.0")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Large")
 *                                 .build())
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .dataDisksGroups(DataDisksGroupsArgs.builder()
 *                                 .disksPerNode(8)
 *                                 .build())
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Large")
 *                                 .build())
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Small")
 *                                 .build())
 *                             .name("zookeepernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D4_v2")
 *                                 .build())
 *                             .name("kafkamanagementnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("kafkauser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build())
 *                     .build())
 *                 .kafkaRestProperties(KafkaRestPropertiesArgs.builder()
 *                     .clientGroupInfo(ClientGroupInfoArgs.builder()
 *                         .groupId("00000000-0000-0000-0000-111111111111")
 *                         .groupName("Kafka security group name")
 *                         .build())
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("containername")
 *                         .isDefault(true)
 *                         .key("storagekey")
 *                         .name("mystorage.blob.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Standard")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create Secure Hadoop cluster * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.SecurityProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("Hadoop")
 *                     .build())
 *                 .clusterVersion("3.5")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D3_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .scriptActions()
 *                             .targetInstanceCount(2)
 *                             .virtualNetworkProfile(VirtualNetworkProfileArgs.builder()
 *                                 .id("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname")
 *                                 .subnet("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet")
 *                                 .build())
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D3_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .scriptActions()
 *                             .targetInstanceCount(4)
 *                             .virtualNetworkProfile(VirtualNetworkProfileArgs.builder()
 *                                 .id("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname")
 *                                 .subnet("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet")
 *                                 .build())
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Small")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("zookeepernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .scriptActions()
 *                             .targetInstanceCount(3)
 *                             .virtualNetworkProfile(VirtualNetworkProfileArgs.builder()
 *                                 .id("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname")
 *                                 .subnet("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet")
 *                                 .build())
 *                             .build())
 *                     .build())
 *                 .osType("Linux")
 *                 .securityProfile(SecurityProfileArgs.builder()
 *                     .clusterUsersGroupDNs("hdiusers")
 *                     .directoryType("ActiveDirectory")
 *                     .domain("DomainName")
 *                     .domainUserPassword("**********")
 *                     .domainUsername("DomainUsername")
 *                     .ldapsUrls("ldaps://10.10.0.4:636")
 *                     .organizationalUnitDN("OU=Hadoop,DC=hdinsight,DC=test")
 *                     .build())
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("containername")
 *                         .isDefault(true)
 *                         .key("storage account key")
 *                         .name("mystorage.blob.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Premium")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .tags(Map.of("key1", "val1"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create Spark on Linux Cluster with SSH password * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .componentVersion(Map.of("Spark", "2.0"))
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("Spark")
 *                     .build())
 *                 .clusterVersion("3.5")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D12_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_D4_V2")
 *                                 .build())
 *                             .minInstanceCount(1)
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(4)
 *                             .build())
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("containername")
 *                         .isDefault(true)
 *                         .key("storageapikey*")
 *                         .name("mystorage.blob.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Standard")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .tags(Map.of("key1", "val1"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create cluster with TLS 1.2 * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("Hadoop")
 *                     .build())
 *                 .clusterVersion("3.6")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Large")
 *                                 .build())
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Large")
 *                                 .build())
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Small")
 *                                 .build())
 *                             .name("zookeepernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build())
 *                     .build())
 *                 .minSupportedTlsVersion("1.2")
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("default8525")
 *                         .isDefault(true)
 *                         .key("storagekey")
 *                         .name("mystorage.blob.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Standard")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create cluster with availability zones * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.ofEntries(
 *                         Map.entry("ambari-conf", Map.ofEntries(
 *                             Map.entry("database-name", "{ambari database name}"),
 *                             Map.entry("database-server", "{sql server name}.database.windows.net"),
 *                             Map.entry("database-user-name", "**********"),
 *                             Map.entry("database-user-password", "**********")
 *                         )),
 *                         Map.entry("gateway", Map.ofEntries(
 *                             Map.entry("restAuthCredential.isEnabled", true),
 *                             Map.entry("restAuthCredential.password", "**********"),
 *                             Map.entry("restAuthCredential.username", "admin")
 *                         )),
 *                         Map.entry("hive-env", Map.ofEntries(
 *                             Map.entry("hive_database", "Existing MSSQL Server database with SQL authentication"),
 *                             Map.entry("hive_database_name", "{hive metastore name}"),
 *                             Map.entry("hive_database_type", "mssql"),
 *                             Map.entry("hive_existing_mssql_server_database", "{hive metastore name}"),
 *                             Map.entry("hive_existing_mssql_server_host", "{sql server name}.database.windows.net"),
 *                             Map.entry("hive_hostname", "{sql server name}.database.windows.net")
 *                         )),
 *                         Map.entry("hive-site", Map.ofEntries(
 *                             Map.entry("javax.jdo.option.ConnectionDriverName", "com.microsoft.sqlserver.jdbc.SQLServerDriver"),
 *                             Map.entry("javax.jdo.option.ConnectionPassword", "**********!"),
 *                             Map.entry("javax.jdo.option.ConnectionURL", "jdbc:sqlserver://{sql server name}.database.windows.net;database={hive metastore name};encrypt=true;trustServerCertificate=true;create=false;loginTimeout=300;sendStringParametersAsUnicode=true;prepareSQL=0"),
 *                             Map.entry("javax.jdo.option.ConnectionUserName", "**********")
 *                         )),
 *                         Map.entry("oozie-env", Map.ofEntries(
 *                             Map.entry("oozie_database", "Existing MSSQL Server database with SQL authentication"),
 *                             Map.entry("oozie_database_name", "{oozie metastore name}"),
 *                             Map.entry("oozie_database_type", "mssql"),
 *                             Map.entry("oozie_existing_mssql_server_database", "{oozie metastore name}"),
 *                             Map.entry("oozie_existing_mssql_server_host", "{sql server name}.database.windows.net"),
 *                             Map.entry("oozie_hostname", "{sql server name}.database.windows.net")
 *                         )),
 *                         Map.entry("oozie-site", Map.ofEntries(
 *                             Map.entry("oozie.db.schema.name", "oozie"),
 *                             Map.entry("oozie.service.JPAService.jdbc.driver", "com.microsoft.sqlserver.jdbc.SQLServerDriver"),
 *                             Map.entry("oozie.service.JPAService.jdbc.password", "**********"),
 *                             Map.entry("oozie.service.JPAService.jdbc.url", "jdbc:sqlserver://{sql server name}.database.windows.net;database={oozie metastore name};encrypt=true;trustServerCertificate=true;create=false;loginTimeout=300;sendStringParametersAsUnicode=true;prepareSQL=0"),
 *                             Map.entry("oozie.service.JPAService.jdbc.username", "**********")
 *                         ))
 *                     ))
 *                     .kind("hadoop")
 *                     .build())
 *                 .clusterVersion("3.6")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("standard_d3")
 *                                 .build())
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .virtualNetworkProfile(VirtualNetworkProfileArgs.builder()
 *                                 .id("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname")
 *                                 .subnet("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet")
 *                                 .build())
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("standard_d3")
 *                                 .build())
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .virtualNetworkProfile(VirtualNetworkProfileArgs.builder()
 *                                 .id("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname")
 *                                 .subnet("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet")
 *                                 .build())
 *                             .build())
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("containername")
 *                         .isDefault(true)
 *                         .key("storage account key")
 *                         .name("mystorage")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .zones("1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create cluster with compute isolation properties * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeIsolationPropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("hadoop")
 *                     .build())
 *                 .clusterVersion("3.6")
 *                 .computeIsolationProperties(ComputeIsolationPropertiesArgs.builder()
 *                     .enableComputeIsolation(true)
 *                     .build())
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("standard_d3")
 *                                 .build())
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("standard_d3")
 *                                 .build())
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build())
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("containername")
 *                         .isDefault(true)
 *                         .key("storage account key")
 *                         .name("mystorage")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create cluster with encryption at host * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.DiskEncryptionPropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("Hadoop")
 *                     .build())
 *                 .clusterVersion("3.6")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_DS14_v2")
 *                                 .build())
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_DS14_v2")
 *                                 .build())
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Standard_DS14_v2")
 *                                 .build())
 *                             .name("zookeepernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build())
 *                     .build())
 *                 .diskEncryptionProperties(DiskEncryptionPropertiesArgs.builder()
 *                     .encryptionAtHost(true)
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("default8525")
 *                         .isDefault(true)
 *                         .key("storagekey")
 *                         .name("mystorage.blob.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Standard")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create cluster with encryption in transit * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.EncryptionInTransitPropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("Hadoop")
 *                     .build())
 *                 .clusterVersion("3.6")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Large")
 *                                 .build())
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Large")
 *                                 .build())
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("Small")
 *                                 .build())
 *                             .name("zookeepernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(3)
 *                             .build())
 *                     .build())
 *                 .encryptionInTransitProperties(EncryptionInTransitPropertiesArgs.builder()
 *                     .isEncryptionInTransitEnabled(true)
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("default8525")
 *                         .isDefault(true)
 *                         .key("storagekey")
 *                         .name("mystorage.blob.core.windows.net")
 *                         .build())
 *                     .build())
 *                 .tier("Standard")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create cluster with network properties * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.Cluster;
 * import com.pulumi.azurenative.hdinsight.ClusterArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterCreatePropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterDefinitionArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ComputeProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.NetworkPropertiesArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.StorageProfileArgs;
 * 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 cluster = new Cluster("cluster", ClusterArgs.builder()
 *             .clusterName("cluster1")
 *             .properties(ClusterCreatePropertiesArgs.builder()
 *                 .clusterDefinition(ClusterDefinitionArgs.builder()
 *                     .configurations(Map.of("gateway", Map.ofEntries(
 *                         Map.entry("restAuthCredential.isEnabled", true),
 *                         Map.entry("restAuthCredential.password", "**********"),
 *                         Map.entry("restAuthCredential.username", "admin")
 *                     )))
 *                     .kind("hadoop")
 *                     .build())
 *                 .clusterVersion("3.6")
 *                 .computeProfile(ComputeProfileArgs.builder()
 *                     .roles(                    
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("standard_d3")
 *                                 .build())
 *                             .name("headnode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .virtualNetworkProfile(VirtualNetworkProfileArgs.builder()
 *                                 .id("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname")
 *                                 .subnet("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet")
 *                                 .build())
 *                             .build(),
 *                         RoleArgs.builder()
 *                             .hardwareProfile(HardwareProfileArgs.builder()
 *                                 .vmSize("standard_d3")
 *                                 .build())
 *                             .name("workernode")
 *                             .osProfile(OsProfileArgs.builder()
 *                                 .linuxOperatingSystemProfile(LinuxOperatingSystemProfileArgs.builder()
 *                                     .password("**********")
 *                                     .sshProfile(SshProfileArgs.builder()
 *                                         .publicKeys(SshPublicKeyArgs.builder()
 *                                             .certificateData("**********")
 *                                             .build())
 *                                         .build())
 *                                     .username("sshuser")
 *                                     .build())
 *                                 .build())
 *                             .targetInstanceCount(2)
 *                             .virtualNetworkProfile(VirtualNetworkProfileArgs.builder()
 *                                 .id("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname")
 *                                 .subnet("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet")
 *                                 .build())
 *                             .build())
 *                     .build())
 *                 .networkProperties(NetworkPropertiesArgs.builder()
 *                     .privateLink("Enabled")
 *                     .resourceProviderConnection("Outbound")
 *                     .build())
 *                 .osType("Linux")
 *                 .storageProfile(StorageProfileArgs.builder()
 *                     .storageaccounts(StorageAccountArgs.builder()
 *                         .container("containername")
 *                         .isDefault(true)
 *                         .key("storage account key")
 *                         .name("mystorage")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:hdinsight:Cluster cluster1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName} * ``` * */ @ResourceType(type="azure-native:hdinsight:Cluster") public class Cluster extends com.pulumi.resources.CustomResource { /** * The ETag for the resource * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return The ETag for the resource * */ public Output> etag() { return Codegen.optional(this.etag); } /** * The identity of the cluster, if configured. * */ @Export(name="identity", refs={ClusterIdentityResponse.class}, tree="[0]") private Output identity; /** * @return The identity of the cluster, if configured. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return this.location; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * The properties of the cluster. * */ @Export(name="properties", refs={ClusterGetPropertiesResponse.class}, tree="[0]") private Output properties; /** * @return The properties of the cluster. * */ public Output properties() { return this.properties; } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ public Output systemData() { return this.systemData; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * The availability zones. * */ @Export(name="zones", refs={List.class,String.class}, tree="[0,1]") private Output> zones; /** * @return The availability zones. * */ public Output>> zones() { return Codegen.optional(this.zones); } /** * * @param name The _unique_ name of the resulting resource. */ public Cluster(java.lang.String name) { this(name, ClusterArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Cluster(java.lang.String name, ClusterArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Cluster(java.lang.String name, ClusterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:hdinsight:Cluster", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Cluster(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:hdinsight:Cluster", name, null, makeResourceOptions(options, id), false); } private static ClusterArgs makeArgs(ClusterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ClusterArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:hdinsight/v20150301preview:Cluster").build()), Output.of(Alias.builder().type("azure-native:hdinsight/v20180601preview:Cluster").build()), Output.of(Alias.builder().type("azure-native:hdinsight/v20210601:Cluster").build()), Output.of(Alias.builder().type("azure-native:hdinsight/v20230415preview:Cluster").build()), Output.of(Alias.builder().type("azure-native:hdinsight/v20230815preview:Cluster").build()), Output.of(Alias.builder().type("azure-native:hdinsight/v20240801preview:Cluster").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static Cluster get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Cluster(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy