"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.GetHostPoolRegistrationInfo = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Manages the Registration Info for a Virtual Desktop Host Pool.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-hostpool",
 *     location: "westeurope",
 * });
 * const exampleHostPool = new azure.desktopvirtualization.HostPool("example", {
 *     name: "example-HP",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     type: "Pooled",
 *     validateEnvironment: true,
 *     loadBalancerType: "BreadthFirst",
 * });
 * const exampleGetHostPoolRegistrationInfo = new azure.desktopvirtualization.GetHostPoolRegistrationInfo("example", {
 *     hostpoolId: exampleHostPool.id,
 *     expirationDate: "2022-01-01T23:40:52Z",
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.DesktopVirtualization` - 2024-04-03
 *
 * ## Import
 *
 * AVD Registration Infos can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:desktopvirtualization/getHostPoolRegistrationInfo:getHostPoolRegistrationInfo example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.DesktopVirtualization/hostPools/pool1/registrationInfo/default
 * ```
 */
class GetHostPoolRegistrationInfo extends pulumi.CustomResource {
    /**
     * Get an existing GetHostPoolRegistrationInfo 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 GetHostPoolRegistrationInfo(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:desktopvirtualization/getHostPoolRegistrationInfo:getHostPoolRegistrationInfo';
    /**
     * Returns true if the given object is an instance of GetHostPoolRegistrationInfo.  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'] === GetHostPoolRegistrationInfo.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["expirationDate"] = state?.expirationDate;
            resourceInputs["hostpoolId"] = state?.hostpoolId;
            resourceInputs["token"] = state?.token;
        }
        else {
            const args = argsOrState;
            if (args?.expirationDate === undefined && !opts.urn) {
                throw new Error("Missing required property 'expirationDate'");
            }
            if (args?.hostpoolId === undefined && !opts.urn) {
                throw new Error("Missing required property 'hostpoolId'");
            }
            resourceInputs["expirationDate"] = args?.expirationDate;
            resourceInputs["hostpoolId"] = args?.hostpoolId;
            resourceInputs["token"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const secretOpts = { additionalSecretOutputs: ["token"] };
        opts = pulumi.mergeOptions(opts, secretOpts);
        super(GetHostPoolRegistrationInfo.__pulumiType, name, resourceInputs, opts);
    }
}
exports.GetHostPoolRegistrationInfo = GetHostPoolRegistrationInfo;
//# sourceMappingURL=getHostPoolRegistrationInfo.js.map