"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Cluster = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Manages a Kusto (also known as Azure Data Explorer) 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",
 *     location: "West Europe",
 * });
 * const exampleCluster = new azure.kusto.Cluster("example", {
 *     name: "example",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     sku: {
 *         name: "Standard_D13_v2",
 *         capacity: 2,
 *     },
 *     tags: {
 *         Environment: "Production",
 *     },
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.Kusto` - 2024-04-13
 *
 * ## Import
 *
 * Kusto Clusters can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:kusto/cluster:Cluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/clusters/cluster1
 * ```
 */
class Cluster extends pulumi.CustomResource {
    /**
     * Get an existing Cluster 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 state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new Cluster(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:kusto/cluster:Cluster';
    /**
     * Returns true if the given object is an instance of Cluster.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === Cluster.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["allowedFqdns"] = state?.allowedFqdns;
            resourceInputs["allowedIpRanges"] = state?.allowedIpRanges;
            resourceInputs["autoStopEnabled"] = state?.autoStopEnabled;
            resourceInputs["dataIngestionUri"] = state?.dataIngestionUri;
            resourceInputs["diskEncryptionEnabled"] = state?.diskEncryptionEnabled;
            resourceInputs["doubleEncryptionEnabled"] = state?.doubleEncryptionEnabled;
            resourceInputs["identity"] = state?.identity;
            resourceInputs["languageExtension"] = state?.languageExtension;
            resourceInputs["languageExtensions"] = state?.languageExtensions;
            resourceInputs["location"] = state?.location;
            resourceInputs["name"] = state?.name;
            resourceInputs["optimizedAutoScale"] = state?.optimizedAutoScale;
            resourceInputs["outboundNetworkAccessRestricted"] = state?.outboundNetworkAccessRestricted;
            resourceInputs["publicIpType"] = state?.publicIpType;
            resourceInputs["publicNetworkAccessEnabled"] = state?.publicNetworkAccessEnabled;
            resourceInputs["purgeEnabled"] = state?.purgeEnabled;
            resourceInputs["resourceGroupName"] = state?.resourceGroupName;
            resourceInputs["sku"] = state?.sku;
            resourceInputs["streamingIngestionEnabled"] = state?.streamingIngestionEnabled;
            resourceInputs["tags"] = state?.tags;
            resourceInputs["trustedExternalTenants"] = state?.trustedExternalTenants;
            resourceInputs["uri"] = state?.uri;
            resourceInputs["virtualNetworkConfiguration"] = state?.virtualNetworkConfiguration;
            resourceInputs["zones"] = state?.zones;
        }
        else {
            const args = argsOrState;
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.sku === undefined && !opts.urn) {
                throw new Error("Missing required property 'sku'");
            }
            resourceInputs["allowedFqdns"] = args?.allowedFqdns;
            resourceInputs["allowedIpRanges"] = args?.allowedIpRanges;
            resourceInputs["autoStopEnabled"] = args?.autoStopEnabled;
            resourceInputs["diskEncryptionEnabled"] = args?.diskEncryptionEnabled;
            resourceInputs["doubleEncryptionEnabled"] = args?.doubleEncryptionEnabled;
            resourceInputs["identity"] = args?.identity;
            resourceInputs["languageExtension"] = args?.languageExtension;
            resourceInputs["languageExtensions"] = args?.languageExtensions;
            resourceInputs["location"] = args?.location;
            resourceInputs["name"] = args?.name;
            resourceInputs["optimizedAutoScale"] = args?.optimizedAutoScale;
            resourceInputs["outboundNetworkAccessRestricted"] = args?.outboundNetworkAccessRestricted;
            resourceInputs["publicIpType"] = args?.publicIpType;
            resourceInputs["publicNetworkAccessEnabled"] = args?.publicNetworkAccessEnabled;
            resourceInputs["purgeEnabled"] = args?.purgeEnabled;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["sku"] = args?.sku;
            resourceInputs["streamingIngestionEnabled"] = args?.streamingIngestionEnabled;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["trustedExternalTenants"] = args?.trustedExternalTenants;
            resourceInputs["virtualNetworkConfiguration"] = args?.virtualNetworkConfiguration;
            resourceInputs["zones"] = args?.zones;
            resourceInputs["dataIngestionUri"] = undefined /*out*/;
            resourceInputs["uri"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Cluster.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Cluster = Cluster;
//# sourceMappingURL=cluster.js.map