"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! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.HostPool = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Represents a HostPool definition.
 *
 * Uses Azure REST API version 2024-04-03. In version 2.x of the Azure Native provider, it used API version 2022-09-09.
 *
 * Other available API versions: 2022-09-09, 2022-10-14-preview, 2023-09-05, 2023-10-04-preview, 2023-11-01-preview, 2024-01-16-preview, 2024-03-06-preview, 2024-04-08-preview, 2024-08-08-preview, 2024-11-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native desktopvirtualization [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class HostPool extends pulumi.CustomResource {
    /**
     * Get an existing HostPool 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 opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new HostPool(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of HostPool.  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'] === HostPool.__pulumiType;
    }
    /**
     * Create a HostPool resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if ((!args || args.hostPoolType === undefined) && !opts.urn) {
                throw new Error("Missing required property 'hostPoolType'");
            }
            if ((!args || args.loadBalancerType === undefined) && !opts.urn) {
                throw new Error("Missing required property 'loadBalancerType'");
            }
            if ((!args || args.preferredAppGroupType === undefined) && !opts.urn) {
                throw new Error("Missing required property 'preferredAppGroupType'");
            }
            if ((!args || args.resourceGroupName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["agentUpdate"] = args ? args.agentUpdate : undefined;
            resourceInputs["customRdpProperty"] = args ? args.customRdpProperty : undefined;
            resourceInputs["description"] = args ? args.description : undefined;
            resourceInputs["friendlyName"] = args ? args.friendlyName : undefined;
            resourceInputs["hostPoolName"] = args ? args.hostPoolName : undefined;
            resourceInputs["hostPoolType"] = args ? args.hostPoolType : undefined;
            resourceInputs["identity"] = args ? args.identity : undefined;
            resourceInputs["kind"] = args ? args.kind : undefined;
            resourceInputs["loadBalancerType"] = args ? args.loadBalancerType : undefined;
            resourceInputs["location"] = args ? args.location : undefined;
            resourceInputs["managedBy"] = args ? args.managedBy : undefined;
            resourceInputs["maxSessionLimit"] = args ? args.maxSessionLimit : undefined;
            resourceInputs["personalDesktopAssignmentType"] = args ? args.personalDesktopAssignmentType : undefined;
            resourceInputs["plan"] = args ? args.plan : undefined;
            resourceInputs["preferredAppGroupType"] = args ? args.preferredAppGroupType : undefined;
            resourceInputs["publicNetworkAccess"] = args ? args.publicNetworkAccess : undefined;
            resourceInputs["registrationInfo"] = args ? args.registrationInfo : undefined;
            resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined;
            resourceInputs["ring"] = args ? args.ring : undefined;
            resourceInputs["sku"] = args ? args.sku : undefined;
            resourceInputs["ssoClientId"] = args ? args.ssoClientId : undefined;
            resourceInputs["ssoClientSecretKeyVaultPath"] = args ? args.ssoClientSecretKeyVaultPath : undefined;
            resourceInputs["ssoSecretType"] = args ? args.ssoSecretType : undefined;
            resourceInputs["ssoadfsAuthority"] = args ? args.ssoadfsAuthority : undefined;
            resourceInputs["startVMOnConnect"] = args ? args.startVMOnConnect : undefined;
            resourceInputs["tags"] = args ? args.tags : undefined;
            resourceInputs["validationEnvironment"] = args ? args.validationEnvironment : undefined;
            resourceInputs["vmTemplate"] = args ? args.vmTemplate : undefined;
            resourceInputs["appAttachPackageReferences"] = undefined /*out*/;
            resourceInputs["applicationGroupReferences"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["cloudPcResource"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["objectId"] = undefined /*out*/;
            resourceInputs["privateEndpointConnections"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["agentUpdate"] = undefined /*out*/;
            resourceInputs["appAttachPackageReferences"] = undefined /*out*/;
            resourceInputs["applicationGroupReferences"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["cloudPcResource"] = undefined /*out*/;
            resourceInputs["customRdpProperty"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["friendlyName"] = undefined /*out*/;
            resourceInputs["hostPoolType"] = undefined /*out*/;
            resourceInputs["identity"] = undefined /*out*/;
            resourceInputs["kind"] = undefined /*out*/;
            resourceInputs["loadBalancerType"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["managedBy"] = undefined /*out*/;
            resourceInputs["maxSessionLimit"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["objectId"] = undefined /*out*/;
            resourceInputs["personalDesktopAssignmentType"] = undefined /*out*/;
            resourceInputs["plan"] = undefined /*out*/;
            resourceInputs["preferredAppGroupType"] = undefined /*out*/;
            resourceInputs["privateEndpointConnections"] = undefined /*out*/;
            resourceInputs["publicNetworkAccess"] = undefined /*out*/;
            resourceInputs["registrationInfo"] = undefined /*out*/;
            resourceInputs["ring"] = undefined /*out*/;
            resourceInputs["sku"] = undefined /*out*/;
            resourceInputs["ssoClientId"] = undefined /*out*/;
            resourceInputs["ssoClientSecretKeyVaultPath"] = undefined /*out*/;
            resourceInputs["ssoSecretType"] = undefined /*out*/;
            resourceInputs["ssoadfsAuthority"] = undefined /*out*/;
            resourceInputs["startVMOnConnect"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["validationEnvironment"] = undefined /*out*/;
            resourceInputs["vmTemplate"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:desktopvirtualization/v20190123preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20190924preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20191210preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20200921preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20201019preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20201102preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20201110preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20210114preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20210201preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20210309preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20210401preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20210712:HostPool" }, { type: "azure-native:desktopvirtualization/v20210903preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20220210preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20220401preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20220909:HostPool" }, { type: "azure-native:desktopvirtualization/v20221014preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20230707preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20230905:HostPool" }, { type: "azure-native:desktopvirtualization/v20231004preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20231101preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20240116preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20240306preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20240403:HostPool" }, { type: "azure-native:desktopvirtualization/v20240408preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20240808preview:HostPool" }, { type: "azure-native:desktopvirtualization/v20241101preview:HostPool" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(HostPool.__pulumiType, name, resourceInputs, opts);
    }
}
exports.HostPool = HostPool;
/** @internal */
HostPool.__pulumiType = 'azure-native:desktopvirtualization:HostPool';
//# sourceMappingURL=data:application/json;base64, 