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

com.pulumi.azurenative.hdinsight.ClusterPool 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.ClusterPoolArgs;
import com.pulumi.azurenative.hdinsight.outputs.ClusterPoolResourcePropertiesResponseAksClusterProfile;
import com.pulumi.azurenative.hdinsight.outputs.ClusterPoolResourcePropertiesResponseClusterPoolProfile;
import com.pulumi.azurenative.hdinsight.outputs.ClusterPoolResourcePropertiesResponseComputeProfile;
import com.pulumi.azurenative.hdinsight.outputs.ClusterPoolResourcePropertiesResponseLogAnalyticsProfile;
import com.pulumi.azurenative.hdinsight.outputs.ClusterPoolResourcePropertiesResponseNetworkProfile;
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;

/**
 * Cluster pool.
 * Azure REST API version: 2023-06-01-preview.
 * 
 * Other available API versions: 2023-11-01-preview, 2024-05-01-preview.
 * 
 * ## Example Usage
 * ### ClusterPoolPut
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hdinsight.ClusterPool;
 * import com.pulumi.azurenative.hdinsight.ClusterPoolArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs;
 * import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesComputeProfileArgs;
 * 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 clusterPool = new ClusterPool("clusterPool", ClusterPoolArgs.builder()
 *             .clusterPoolName("clusterpool1")
 *             .clusterPoolProfile(ClusterPoolResourcePropertiesClusterPoolProfileArgs.builder()
 *                 .clusterPoolVersion("1.2")
 *                 .build())
 *             .computeProfile(ClusterPoolResourcePropertiesComputeProfileArgs.builder()
 *                 .vmSize("Standard_D3_v2")
 *                 .build())
 *             .location("West US 2")
 *             .resourceGroupName("hiloResourcegroup")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:hdinsight:ClusterPool clusterpool1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName} * ``` * */ @ResourceType(type="azure-native:hdinsight:ClusterPool") public class ClusterPool extends com.pulumi.resources.CustomResource { /** * Properties of underlying AKS cluster. * */ @Export(name="aksClusterProfile", refs={ClusterPoolResourcePropertiesResponseAksClusterProfile.class}, tree="[0]") private Output aksClusterProfile; /** * @return Properties of underlying AKS cluster. * */ public Output aksClusterProfile() { return this.aksClusterProfile; } /** * A resource group created by AKS, to hold the infrastructure resources created by AKS on-behalf of customers. It is generated by cluster pool name and managed resource group name by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region} * */ @Export(name="aksManagedResourceGroupName", refs={String.class}, tree="[0]") private Output aksManagedResourceGroupName; /** * @return A resource group created by AKS, to hold the infrastructure resources created by AKS on-behalf of customers. It is generated by cluster pool name and managed resource group name by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region} * */ public Output aksManagedResourceGroupName() { return this.aksManagedResourceGroupName; } /** * CLuster pool profile. * */ @Export(name="clusterPoolProfile", refs={ClusterPoolResourcePropertiesResponseClusterPoolProfile.class}, tree="[0]") private Output clusterPoolProfile; /** * @return CLuster pool profile. * */ public Output> clusterPoolProfile() { return Codegen.optional(this.clusterPoolProfile); } /** * CLuster pool compute profile. * */ @Export(name="computeProfile", refs={ClusterPoolResourcePropertiesResponseComputeProfile.class}, tree="[0]") private Output computeProfile; /** * @return CLuster pool compute profile. * */ public Output computeProfile() { return this.computeProfile; } /** * A unique id generated by the RP to identify the resource. * */ @Export(name="deploymentId", refs={String.class}, tree="[0]") private Output deploymentId; /** * @return A unique id generated by the RP to identify the resource. * */ public Output deploymentId() { return this.deploymentId; } /** * 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; } /** * Cluster pool log analytics profile to enable OMS agent for AKS cluster. * */ @Export(name="logAnalyticsProfile", refs={ClusterPoolResourcePropertiesResponseLogAnalyticsProfile.class}, tree="[0]") private Output logAnalyticsProfile; /** * @return Cluster pool log analytics profile to enable OMS agent for AKS cluster. * */ public Output> logAnalyticsProfile() { return Codegen.optional(this.logAnalyticsProfile); } /** * A resource group created by RP, to hold the resources created by RP on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name restriction. * */ @Export(name="managedResourceGroupName", refs={String.class}, tree="[0]") private Output managedResourceGroupName; /** * @return A resource group created by RP, to hold the resources created by RP on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}_{clusterPoolName}_{region}. Please make sure it meets resource group name restriction. * */ public Output> managedResourceGroupName() { return Codegen.optional(this.managedResourceGroupName); } /** * 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; } /** * Cluster pool network profile. * */ @Export(name="networkProfile", refs={ClusterPoolResourcePropertiesResponseNetworkProfile.class}, tree="[0]") private Output networkProfile; /** * @return Cluster pool network profile. * */ public Output> networkProfile() { return Codegen.optional(this.networkProfile); } /** * Provisioning state of the resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state of the resource. * */ public Output provisioningState() { return this.provisioningState; } /** * Business status of the resource. * */ @Export(name="status", refs={String.class}, tree="[0]") private Output status; /** * @return Business status of the resource. * */ public Output status() { return this.status; } /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ 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; } /** * * @param name The _unique_ name of the resulting resource. */ public ClusterPool(java.lang.String name) { this(name, ClusterPoolArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ClusterPool(java.lang.String name, ClusterPoolArgs 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 ClusterPool(java.lang.String name, ClusterPoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:hdinsight:ClusterPool", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ClusterPool(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:hdinsight:ClusterPool", name, null, makeResourceOptions(options, id), false); } private static ClusterPoolArgs makeArgs(ClusterPoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ClusterPoolArgs.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/v20230601preview:ClusterPool").build()), Output.of(Alias.builder().type("azure-native:hdinsight/v20231101preview:ClusterPool").build()), Output.of(Alias.builder().type("azure-native:hdinsight/v20240501preview:ClusterPool").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 ClusterPool get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ClusterPool(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy