
com.pulumi.azure.hdinsight.kotlin.InteractiveQueryClusterArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.hdinsight.kotlin
import com.pulumi.azure.hdinsight.InteractiveQueryClusterArgs.builder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterComponentVersionArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterComponentVersionArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterComputeIsolationArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterComputeIsolationArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterDiskEncryptionArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterDiskEncryptionArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterExtensionArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterExtensionArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterGatewayArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterGatewayArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterMetastoresArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterMetastoresArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterMonitorArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterMonitorArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterNetworkArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterNetworkArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterPrivateLinkConfigurationArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterPrivateLinkConfigurationArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterRolesArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterRolesArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterSecurityProfileArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterSecurityProfileArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterStorageAccountArgs
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterStorageAccountArgsBuilder
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterStorageAccountGen2Args
import com.pulumi.azure.hdinsight.kotlin.inputs.InteractiveQueryClusterStorageAccountGen2ArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a HDInsight Interactive Query Cluster.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleAccount = new azure.storage.Account("example", {
* name: "hdinsightstor",
* resourceGroupName: example.name,
* location: example.location,
* accountTier: "Standard",
* accountReplicationType: "LRS",
* });
* const exampleContainer = new azure.storage.Container("example", {
* name: "hdinsight",
* storageAccountName: exampleAccount.name,
* containerAccessType: "private",
* });
* const exampleInteractiveQueryCluster = new azure.hdinsight.InteractiveQueryCluster("example", {
* name: "example-hdicluster",
* resourceGroupName: example.name,
* location: example.location,
* clusterVersion: "3.6",
* tier: "Standard",
* componentVersion: {
* interactiveHive: "2.1",
* },
* gateway: {
* username: "acctestusrgw",
* password: "Password!",
* },
* storageAccounts: [{
* storageContainerId: exampleContainer.id,
* storageAccountKey: exampleAccount.primaryAccessKey,
* isDefault: true,
* }],
* roles: {
* headNode: {
* vmSize: "Standard_D13_V2",
* username: "acctestusrvm",
* password: "AccTestvdSC4daf986!",
* },
* workerNode: {
* vmSize: "Standard_D14_V2",
* username: "acctestusrvm",
* password: "AccTestvdSC4daf986!",
* targetInstanceCount: 3,
* },
* zookeeperNode: {
* vmSize: "Standard_A4_V2",
* username: "acctestusrvm",
* password: "AccTestvdSC4daf986!",
* },
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_account = azure.storage.Account("example",
* name="hdinsightstor",
* resource_group_name=example.name,
* location=example.location,
* account_tier="Standard",
* account_replication_type="LRS")
* example_container = azure.storage.Container("example",
* name="hdinsight",
* storage_account_name=example_account.name,
* container_access_type="private")
* example_interactive_query_cluster = azure.hdinsight.InteractiveQueryCluster("example",
* name="example-hdicluster",
* resource_group_name=example.name,
* location=example.location,
* cluster_version="3.6",
* tier="Standard",
* component_version={
* "interactive_hive": "2.1",
* },
* gateway={
* "username": "acctestusrgw",
* "password": "Password!",
* },
* storage_accounts=[{
* "storage_container_id": example_container.id,
* "storage_account_key": example_account.primary_access_key,
* "is_default": True,
* }],
* roles={
* "head_node": {
* "vm_size": "Standard_D13_V2",
* "username": "acctestusrvm",
* "password": "AccTestvdSC4daf986!",
* },
* "worker_node": {
* "vm_size": "Standard_D14_V2",
* "username": "acctestusrvm",
* "password": "AccTestvdSC4daf986!",
* "target_instance_count": 3,
* },
* "zookeeper_node": {
* "vm_size": "Standard_A4_V2",
* "username": "acctestusrvm",
* "password": "AccTestvdSC4daf986!",
* },
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var exampleAccount = new Azure.Storage.Account("example", new()
* {
* Name = "hdinsightstor",
* ResourceGroupName = example.Name,
* Location = example.Location,
* AccountTier = "Standard",
* AccountReplicationType = "LRS",
* });
* var exampleContainer = new Azure.Storage.Container("example", new()
* {
* Name = "hdinsight",
* StorageAccountName = exampleAccount.Name,
* ContainerAccessType = "private",
* });
* var exampleInteractiveQueryCluster = new Azure.HDInsight.InteractiveQueryCluster("example", new()
* {
* Name = "example-hdicluster",
* ResourceGroupName = example.Name,
* Location = example.Location,
* ClusterVersion = "3.6",
* Tier = "Standard",
* ComponentVersion = new Azure.HDInsight.Inputs.InteractiveQueryClusterComponentVersionArgs
* {
* InteractiveHive = "2.1",
* },
* Gateway = new Azure.HDInsight.Inputs.InteractiveQueryClusterGatewayArgs
* {
* Username = "acctestusrgw",
* Password = "Password!",
* },
* StorageAccounts = new[]
* {
* new Azure.HDInsight.Inputs.InteractiveQueryClusterStorageAccountArgs
* {
* StorageContainerId = exampleContainer.Id,
* StorageAccountKey = exampleAccount.PrimaryAccessKey,
* IsDefault = true,
* },
* },
* Roles = new Azure.HDInsight.Inputs.InteractiveQueryClusterRolesArgs
* {
* HeadNode = new Azure.HDInsight.Inputs.InteractiveQueryClusterRolesHeadNodeArgs
* {
* VmSize = "Standard_D13_V2",
* Username = "acctestusrvm",
* Password = "AccTestvdSC4daf986!",
* },
* WorkerNode = new Azure.HDInsight.Inputs.InteractiveQueryClusterRolesWorkerNodeArgs
* {
* VmSize = "Standard_D14_V2",
* Username = "acctestusrvm",
* Password = "AccTestvdSC4daf986!",
* TargetInstanceCount = 3,
* },
* ZookeeperNode = new Azure.HDInsight.Inputs.InteractiveQueryClusterRolesZookeeperNodeArgs
* {
* VmSize = "Standard_A4_V2",
* Username = "acctestusrvm",
* Password = "AccTestvdSC4daf986!",
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/hdinsight"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
* Name: pulumi.String("hdinsightstor"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* AccountTier: pulumi.String("Standard"),
* AccountReplicationType: pulumi.String("LRS"),
* })
* if err != nil {
* return err
* }
* exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
* Name: pulumi.String("hdinsight"),
* StorageAccountName: exampleAccount.Name,
* ContainerAccessType: pulumi.String("private"),
* })
* if err != nil {
* return err
* }
* _, err = hdinsight.NewInteractiveQueryCluster(ctx, "example", &hdinsight.InteractiveQueryClusterArgs{
* Name: pulumi.String("example-hdicluster"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* ClusterVersion: pulumi.String("3.6"),
* Tier: pulumi.String("Standard"),
* ComponentVersion: &hdinsight.InteractiveQueryClusterComponentVersionArgs{
* InteractiveHive: pulumi.String("2.1"),
* },
* Gateway: &hdinsight.InteractiveQueryClusterGatewayArgs{
* Username: pulumi.String("acctestusrgw"),
* Password: pulumi.String("Password!"),
* },
* StorageAccounts: hdinsight.InteractiveQueryClusterStorageAccountArray{
* &hdinsight.InteractiveQueryClusterStorageAccountArgs{
* StorageContainerId: exampleContainer.ID(),
* StorageAccountKey: exampleAccount.PrimaryAccessKey,
* IsDefault: pulumi.Bool(true),
* },
* },
* Roles: &hdinsight.InteractiveQueryClusterRolesArgs{
* HeadNode: &hdinsight.InteractiveQueryClusterRolesHeadNodeArgs{
* VmSize: pulumi.String("Standard_D13_V2"),
* Username: pulumi.String("acctestusrvm"),
* Password: pulumi.String("AccTestvdSC4daf986!"),
* },
* WorkerNode: &hdinsight.InteractiveQueryClusterRolesWorkerNodeArgs{
* VmSize: pulumi.String("Standard_D14_V2"),
* Username: pulumi.String("acctestusrvm"),
* Password: pulumi.String("AccTestvdSC4daf986!"),
* TargetInstanceCount: pulumi.Int(3),
* },
* ZookeeperNode: &hdinsight.InteractiveQueryClusterRolesZookeeperNodeArgs{
* VmSize: pulumi.String("Standard_A4_V2"),
* Username: pulumi.String("acctestusrvm"),
* Password: pulumi.String("AccTestvdSC4daf986!"),
* },
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.storage.Container;
* import com.pulumi.azure.storage.ContainerArgs;
* import com.pulumi.azure.hdinsight.InteractiveQueryCluster;
* import com.pulumi.azure.hdinsight.InteractiveQueryClusterArgs;
* import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterComponentVersionArgs;
* import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterGatewayArgs;
* import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterStorageAccountArgs;
* import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesArgs;
* import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesHeadNodeArgs;
* import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesWorkerNodeArgs;
* import com.pulumi.azure.hdinsight.inputs.InteractiveQueryClusterRolesZookeeperNodeArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
* .name("hdinsightstor")
* .resourceGroupName(example.name())
* .location(example.location())
* .accountTier("Standard")
* .accountReplicationType("LRS")
* .build());
* var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
* .name("hdinsight")
* .storageAccountName(exampleAccount.name())
* .containerAccessType("private")
* .build());
* var exampleInteractiveQueryCluster = new InteractiveQueryCluster("exampleInteractiveQueryCluster", InteractiveQueryClusterArgs.builder()
* .name("example-hdicluster")
* .resourceGroupName(example.name())
* .location(example.location())
* .clusterVersion("3.6")
* .tier("Standard")
* .componentVersion(InteractiveQueryClusterComponentVersionArgs.builder()
* .interactiveHive("2.1")
* .build())
* .gateway(InteractiveQueryClusterGatewayArgs.builder()
* .username("acctestusrgw")
* .password("Password!")
* .build())
* .storageAccounts(InteractiveQueryClusterStorageAccountArgs.builder()
* .storageContainerId(exampleContainer.id())
* .storageAccountKey(exampleAccount.primaryAccessKey())
* .isDefault(true)
* .build())
* .roles(InteractiveQueryClusterRolesArgs.builder()
* .headNode(InteractiveQueryClusterRolesHeadNodeArgs.builder()
* .vmSize("Standard_D13_V2")
* .username("acctestusrvm")
* .password("AccTestvdSC4daf986!")
* .build())
* .workerNode(InteractiveQueryClusterRolesWorkerNodeArgs.builder()
* .vmSize("Standard_D14_V2")
* .username("acctestusrvm")
* .password("AccTestvdSC4daf986!")
* .targetInstanceCount(3)
* .build())
* .zookeeperNode(InteractiveQueryClusterRolesZookeeperNodeArgs.builder()
* .vmSize("Standard_A4_V2")
* .username("acctestusrvm")
* .password("AccTestvdSC4daf986!")
* .build())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleAccount:
* type: azure:storage:Account
* name: example
* properties:
* name: hdinsightstor
* resourceGroupName: ${example.name}
* location: ${example.location}
* accountTier: Standard
* accountReplicationType: LRS
* exampleContainer:
* type: azure:storage:Container
* name: example
* properties:
* name: hdinsight
* storageAccountName: ${exampleAccount.name}
* containerAccessType: private
* exampleInteractiveQueryCluster:
* type: azure:hdinsight:InteractiveQueryCluster
* name: example
* properties:
* name: example-hdicluster
* resourceGroupName: ${example.name}
* location: ${example.location}
* clusterVersion: '3.6'
* tier: Standard
* componentVersion:
* interactiveHive: '2.1'
* gateway:
* username: acctestusrgw
* password: Password!
* storageAccounts:
* - storageContainerId: ${exampleContainer.id}
* storageAccountKey: ${exampleAccount.primaryAccessKey}
* isDefault: true
* roles:
* headNode:
* vmSize: Standard_D13_V2
* username: acctestusrvm
* password: AccTestvdSC4daf986!
* workerNode:
* vmSize: Standard_D14_V2
* username: acctestusrvm
* password: AccTestvdSC4daf986!
* targetInstanceCount: 3
* zookeeperNode:
* vmSize: Standard_A4_V2
* username: acctestusrvm
* password: AccTestvdSC4daf986!
* ```
*
* ## Import
* HDInsight Interactive Query Clusters can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:hdinsight/interactiveQueryCluster:InteractiveQueryCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1
* ```
* @property clusterVersion Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
* @property componentVersion A `component_version` block as defined below.
* @property computeIsolation A `compute_isolation` block as defined below.
* @property diskEncryptions A `disk_encryption` block as defined below.
* @property encryptionInTransitEnabled Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created.
* @property extension An `extension` block as defined below.
* @property gateway A `gateway` block as defined below.
* @property location Specifies the Azure Region which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created.
* @property metastores A `metastores` block as defined below.
* @property monitor A `monitor` block as defined below.
* @property name Specifies the name for this HDInsight Interactive Query Cluster. Changing this forces a new resource to be created.
* @property network A `network` block as defined below.
* @property privateLinkConfiguration A `private_link_configuration` block as defined below.
* @property resourceGroupName Specifies the name of the Resource Group in which this HDInsight Interactive Query Cluster should exist. Changing this forces a new resource to be created.
* @property roles A `roles` block as defined below.
* @property securityProfile A `security_profile` block as defined below. Changing this forces a new resource to be created.
* @property storageAccountGen2 A `storage_account_gen2` block as defined below.
* @property storageAccounts One or more `storage_account` block as defined below.
* @property tags A map of Tags which should be assigned to this HDInsight Interactive Query Cluster.
* @property tier Specifies the Tier which should be used for this HDInsight Interactive Query Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
* @property tlsMinVersion The minimal supported TLS version. Possible values are 1.0, 1.1 or 1.2. Changing this forces a new resource to be created.
* > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
*/
public data class InteractiveQueryClusterArgs(
public val clusterVersion: Output? = null,
public val componentVersion: Output? = null,
public val computeIsolation: Output? = null,
public val diskEncryptions: Output>? = null,
public val encryptionInTransitEnabled: Output? = null,
public val extension: Output? = null,
public val gateway: Output? = null,
public val location: Output? = null,
public val metastores: Output? = null,
public val monitor: Output? = null,
public val name: Output? = null,
public val network: Output? = null,
public val privateLinkConfiguration: Output? =
null,
public val resourceGroupName: Output? = null,
public val roles: Output? = null,
public val securityProfile: Output? = null,
public val storageAccountGen2: Output? = null,
public val storageAccounts: Output>? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy