All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.hdinsight.SparkClusterArgs Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.hdinsight;
import com.pulumi.azure.hdinsight.inputs.SparkClusterComponentVersionArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterComputeIsolationArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterDiskEncryptionArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterExtensionArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterGatewayArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterMetastoresArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterMonitorArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterNetworkArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterPrivateLinkConfigurationArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterRolesArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterSecurityProfileArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterStorageAccountArgs;
import com.pulumi.azure.hdinsight.inputs.SparkClusterStorageAccountGen2Args;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class SparkClusterArgs extends com.pulumi.resources.ResourceArgs {
public static final SparkClusterArgs Empty = new SparkClusterArgs();
/**
* Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
*
*/
@Import(name="clusterVersion", required=true)
private Output clusterVersion;
/**
* @return Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
*
*/
public Output clusterVersion() {
return this.clusterVersion;
}
/**
* A `component_version` block as defined below.
*
*/
@Import(name="componentVersion", required=true)
private Output componentVersion;
/**
* @return A `component_version` block as defined below.
*
*/
public Output componentVersion() {
return this.componentVersion;
}
/**
* A `compute_isolation` block as defined below.
*
*/
@Import(name="computeIsolation")
private @Nullable Output computeIsolation;
/**
* @return A `compute_isolation` block as defined below.
*
*/
public Optional> computeIsolation() {
return Optional.ofNullable(this.computeIsolation);
}
/**
* One or more `disk_encryption` block as defined below.
*
*/
@Import(name="diskEncryptions")
private @Nullable Output> diskEncryptions;
/**
* @return One or more `disk_encryption` block as defined below.
*
*/
public Optional>> diskEncryptions() {
return Optional.ofNullable(this.diskEncryptions);
}
/**
* Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created.
*
*/
@Import(name="encryptionInTransitEnabled")
private @Nullable Output encryptionInTransitEnabled;
/**
* @return Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created.
*
*/
public Optional> encryptionInTransitEnabled() {
return Optional.ofNullable(this.encryptionInTransitEnabled);
}
/**
* An `extension` block as defined below.
*
*/
@Import(name="extension")
private @Nullable Output extension;
/**
* @return An `extension` block as defined below.
*
*/
public Optional> extension() {
return Optional.ofNullable(this.extension);
}
/**
* A `gateway` block as defined below.
*
*/
@Import(name="gateway", required=true)
private Output gateway;
/**
* @return A `gateway` block as defined below.
*
*/
public Output gateway() {
return this.gateway;
}
/**
* Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created.
*
*/
@Import(name="location")
private @Nullable Output location;
/**
* @return Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created.
*
*/
public Optional> location() {
return Optional.ofNullable(this.location);
}
/**
* A `metastores` block as defined below.
*
*/
@Import(name="metastores")
private @Nullable Output metastores;
/**
* @return A `metastores` block as defined below.
*
*/
public Optional> metastores() {
return Optional.ofNullable(this.metastores);
}
/**
* A `monitor` block as defined below.
*
*/
@Import(name="monitor")
private @Nullable Output monitor;
/**
* @return A `monitor` block as defined below.
*
*/
public Optional> monitor() {
return Optional.ofNullable(this.monitor);
}
/**
* Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* A `network` block as defined below.
*
*/
@Import(name="network")
private @Nullable Output network;
/**
* @return A `network` block as defined below.
*
*/
public Optional> network() {
return Optional.ofNullable(this.network);
}
/**
* A `private_link_configuration` block as defined below.
*
*/
@Import(name="privateLinkConfiguration")
private @Nullable Output privateLinkConfiguration;
/**
* @return A `private_link_configuration` block as defined below.
*
*/
public Optional> privateLinkConfiguration() {
return Optional.ofNullable(this.privateLinkConfiguration);
}
/**
* Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created.
*
*/
@Import(name="resourceGroupName", required=true)
private Output resourceGroupName;
/**
* @return Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* A `roles` block as defined below.
*
*/
@Import(name="roles", required=true)
private Output roles;
/**
* @return A `roles` block as defined below.
*
*/
public Output roles() {
return this.roles;
}
/**
* A `security_profile` block as defined below. Changing this forces a new resource to be created.
*
*/
@Import(name="securityProfile")
private @Nullable Output securityProfile;
/**
* @return A `security_profile` block as defined below. Changing this forces a new resource to be created.
*
*/
public Optional> securityProfile() {
return Optional.ofNullable(this.securityProfile);
}
/**
* A `storage_account_gen2` block as defined below.
*
*/
@Import(name="storageAccountGen2")
private @Nullable Output storageAccountGen2;
/**
* @return A `storage_account_gen2` block as defined below.
*
*/
public Optional> storageAccountGen2() {
return Optional.ofNullable(this.storageAccountGen2);
}
/**
* One or more `storage_account` block as defined below.
*
*/
@Import(name="storageAccounts")
private @Nullable Output> storageAccounts;
/**
* @return One or more `storage_account` block as defined below.
*
*/
public Optional>> storageAccounts() {
return Optional.ofNullable(this.storageAccounts);
}
/**
* A map of Tags which should be assigned to this HDInsight Spark Cluster.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return A map of Tags which should be assigned to this HDInsight Spark Cluster.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
*
*/
@Import(name="tier", required=true)
private Output tier;
/**
* @return Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
*
*/
public Output tier() {
return this.tier;
}
/**
* 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/).
*
*/
@Import(name="tlsMinVersion")
private @Nullable Output tlsMinVersion;
/**
* @return 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 Optional> tlsMinVersion() {
return Optional.ofNullable(this.tlsMinVersion);
}
private SparkClusterArgs() {}
private SparkClusterArgs(SparkClusterArgs $) {
this.clusterVersion = $.clusterVersion;
this.componentVersion = $.componentVersion;
this.computeIsolation = $.computeIsolation;
this.diskEncryptions = $.diskEncryptions;
this.encryptionInTransitEnabled = $.encryptionInTransitEnabled;
this.extension = $.extension;
this.gateway = $.gateway;
this.location = $.location;
this.metastores = $.metastores;
this.monitor = $.monitor;
this.name = $.name;
this.network = $.network;
this.privateLinkConfiguration = $.privateLinkConfiguration;
this.resourceGroupName = $.resourceGroupName;
this.roles = $.roles;
this.securityProfile = $.securityProfile;
this.storageAccountGen2 = $.storageAccountGen2;
this.storageAccounts = $.storageAccounts;
this.tags = $.tags;
this.tier = $.tier;
this.tlsMinVersion = $.tlsMinVersion;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SparkClusterArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SparkClusterArgs $;
public Builder() {
$ = new SparkClusterArgs();
}
public Builder(SparkClusterArgs defaults) {
$ = new SparkClusterArgs(Objects.requireNonNull(defaults));
}
/**
* @param clusterVersion Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder clusterVersion(Output clusterVersion) {
$.clusterVersion = clusterVersion;
return this;
}
/**
* @param clusterVersion Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder clusterVersion(String clusterVersion) {
return clusterVersion(Output.of(clusterVersion));
}
/**
* @param componentVersion A `component_version` block as defined below.
*
* @return builder
*
*/
public Builder componentVersion(Output componentVersion) {
$.componentVersion = componentVersion;
return this;
}
/**
* @param componentVersion A `component_version` block as defined below.
*
* @return builder
*
*/
public Builder componentVersion(SparkClusterComponentVersionArgs componentVersion) {
return componentVersion(Output.of(componentVersion));
}
/**
* @param computeIsolation A `compute_isolation` block as defined below.
*
* @return builder
*
*/
public Builder computeIsolation(@Nullable Output computeIsolation) {
$.computeIsolation = computeIsolation;
return this;
}
/**
* @param computeIsolation A `compute_isolation` block as defined below.
*
* @return builder
*
*/
public Builder computeIsolation(SparkClusterComputeIsolationArgs computeIsolation) {
return computeIsolation(Output.of(computeIsolation));
}
/**
* @param diskEncryptions One or more `disk_encryption` block as defined below.
*
* @return builder
*
*/
public Builder diskEncryptions(@Nullable Output> diskEncryptions) {
$.diskEncryptions = diskEncryptions;
return this;
}
/**
* @param diskEncryptions One or more `disk_encryption` block as defined below.
*
* @return builder
*
*/
public Builder diskEncryptions(List diskEncryptions) {
return diskEncryptions(Output.of(diskEncryptions));
}
/**
* @param diskEncryptions One or more `disk_encryption` block as defined below.
*
* @return builder
*
*/
public Builder diskEncryptions(SparkClusterDiskEncryptionArgs... diskEncryptions) {
return diskEncryptions(List.of(diskEncryptions));
}
/**
* @param encryptionInTransitEnabled Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder encryptionInTransitEnabled(@Nullable Output encryptionInTransitEnabled) {
$.encryptionInTransitEnabled = encryptionInTransitEnabled;
return this;
}
/**
* @param encryptionInTransitEnabled Whether encryption in transit is enabled for this Cluster. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder encryptionInTransitEnabled(Boolean encryptionInTransitEnabled) {
return encryptionInTransitEnabled(Output.of(encryptionInTransitEnabled));
}
/**
* @param extension An `extension` block as defined below.
*
* @return builder
*
*/
public Builder extension(@Nullable Output extension) {
$.extension = extension;
return this;
}
/**
* @param extension An `extension` block as defined below.
*
* @return builder
*
*/
public Builder extension(SparkClusterExtensionArgs extension) {
return extension(Output.of(extension));
}
/**
* @param gateway A `gateway` block as defined below.
*
* @return builder
*
*/
public Builder gateway(Output gateway) {
$.gateway = gateway;
return this;
}
/**
* @param gateway A `gateway` block as defined below.
*
* @return builder
*
*/
public Builder gateway(SparkClusterGatewayArgs gateway) {
return gateway(Output.of(gateway));
}
/**
* @param location Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder location(@Nullable Output location) {
$.location = location;
return this;
}
/**
* @param location Specifies the Azure Region which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder location(String location) {
return location(Output.of(location));
}
/**
* @param metastores A `metastores` block as defined below.
*
* @return builder
*
*/
public Builder metastores(@Nullable Output metastores) {
$.metastores = metastores;
return this;
}
/**
* @param metastores A `metastores` block as defined below.
*
* @return builder
*
*/
public Builder metastores(SparkClusterMetastoresArgs metastores) {
return metastores(Output.of(metastores));
}
/**
* @param monitor A `monitor` block as defined below.
*
* @return builder
*
*/
public Builder monitor(@Nullable Output monitor) {
$.monitor = monitor;
return this;
}
/**
* @param monitor A `monitor` block as defined below.
*
* @return builder
*
*/
public Builder monitor(SparkClusterMonitorArgs monitor) {
return monitor(Output.of(monitor));
}
/**
* @param name Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Specifies the name for this HDInsight Spark Cluster. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param network A `network` block as defined below.
*
* @return builder
*
*/
public Builder network(@Nullable Output network) {
$.network = network;
return this;
}
/**
* @param network A `network` block as defined below.
*
* @return builder
*
*/
public Builder network(SparkClusterNetworkArgs network) {
return network(Output.of(network));
}
/**
* @param privateLinkConfiguration A `private_link_configuration` block as defined below.
*
* @return builder
*
*/
public Builder privateLinkConfiguration(@Nullable Output privateLinkConfiguration) {
$.privateLinkConfiguration = privateLinkConfiguration;
return this;
}
/**
* @param privateLinkConfiguration A `private_link_configuration` block as defined below.
*
* @return builder
*
*/
public Builder privateLinkConfiguration(SparkClusterPrivateLinkConfigurationArgs privateLinkConfiguration) {
return privateLinkConfiguration(Output.of(privateLinkConfiguration));
}
/**
* @param resourceGroupName Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder resourceGroupName(Output resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param resourceGroupName Specifies the name of the Resource Group in which this HDInsight Spark Cluster should exist. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
return resourceGroupName(Output.of(resourceGroupName));
}
/**
* @param roles A `roles` block as defined below.
*
* @return builder
*
*/
public Builder roles(Output roles) {
$.roles = roles;
return this;
}
/**
* @param roles A `roles` block as defined below.
*
* @return builder
*
*/
public Builder roles(SparkClusterRolesArgs roles) {
return roles(Output.of(roles));
}
/**
* @param securityProfile A `security_profile` block as defined below. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder securityProfile(@Nullable Output securityProfile) {
$.securityProfile = securityProfile;
return this;
}
/**
* @param securityProfile A `security_profile` block as defined below. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder securityProfile(SparkClusterSecurityProfileArgs securityProfile) {
return securityProfile(Output.of(securityProfile));
}
/**
* @param storageAccountGen2 A `storage_account_gen2` block as defined below.
*
* @return builder
*
*/
public Builder storageAccountGen2(@Nullable Output storageAccountGen2) {
$.storageAccountGen2 = storageAccountGen2;
return this;
}
/**
* @param storageAccountGen2 A `storage_account_gen2` block as defined below.
*
* @return builder
*
*/
public Builder storageAccountGen2(SparkClusterStorageAccountGen2Args storageAccountGen2) {
return storageAccountGen2(Output.of(storageAccountGen2));
}
/**
* @param storageAccounts One or more `storage_account` block as defined below.
*
* @return builder
*
*/
public Builder storageAccounts(@Nullable Output> storageAccounts) {
$.storageAccounts = storageAccounts;
return this;
}
/**
* @param storageAccounts One or more `storage_account` block as defined below.
*
* @return builder
*
*/
public Builder storageAccounts(List storageAccounts) {
return storageAccounts(Output.of(storageAccounts));
}
/**
* @param storageAccounts One or more `storage_account` block as defined below.
*
* @return builder
*
*/
public Builder storageAccounts(SparkClusterStorageAccountArgs... storageAccounts) {
return storageAccounts(List.of(storageAccounts));
}
/**
* @param tags A map of Tags which should be assigned to this HDInsight Spark Cluster.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags A map of Tags which should be assigned to this HDInsight Spark Cluster.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @param tier Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder tier(Output tier) {
$.tier = tier;
return this;
}
/**
* @param tier Specifies the Tier which should be used for this HDInsight Spark Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder tier(String tier) {
return tier(Output.of(tier));
}
/**
* @param 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/).
*
* @return builder
*
*/
public Builder tlsMinVersion(@Nullable Output tlsMinVersion) {
$.tlsMinVersion = tlsMinVersion;
return this;
}
/**
* @param 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/).
*
* @return builder
*
*/
public Builder tlsMinVersion(String tlsMinVersion) {
return tlsMinVersion(Output.of(tlsMinVersion));
}
public SparkClusterArgs build() {
if ($.clusterVersion == null) {
throw new MissingRequiredPropertyException("SparkClusterArgs", "clusterVersion");
}
if ($.componentVersion == null) {
throw new MissingRequiredPropertyException("SparkClusterArgs", "componentVersion");
}
if ($.gateway == null) {
throw new MissingRequiredPropertyException("SparkClusterArgs", "gateway");
}
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("SparkClusterArgs", "resourceGroupName");
}
if ($.roles == null) {
throw new MissingRequiredPropertyException("SparkClusterArgs", "roles");
}
if ($.tier == null) {
throw new MissingRequiredPropertyException("SparkClusterArgs", "tier");
}
return $;
}
}
}