"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.ConfigServer = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Config Server resource
 *
 * Uses Azure REST API version 2024-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-05-01-preview.
 *
 * Other available API versions: 2023-05-01-preview, 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native appplatform [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class ConfigServer extends pulumi.CustomResource {
    /**
     * Get an existing ConfigServer 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 ConfigServer(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ConfigServer.  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'] === ConfigServer.__pulumiType;
    }
    /**
     * Create a ConfigServer 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?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.serviceName === undefined && !opts.urn) {
                throw new Error("Missing required property 'serviceName'");
            }
            resourceInputs["properties"] = args?.properties;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["serviceName"] = args?.serviceName;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["properties"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:appplatform/v20200701:ConfigServer" }, { type: "azure-native:appplatform/v20201101preview:ConfigServer" }, { type: "azure-native:appplatform/v20210601preview:ConfigServer" }, { type: "azure-native:appplatform/v20210901preview:ConfigServer" }, { type: "azure-native:appplatform/v20220101preview:ConfigServer" }, { type: "azure-native:appplatform/v20220301preview:ConfigServer" }, { type: "azure-native:appplatform/v20220401:ConfigServer" }, { type: "azure-native:appplatform/v20220501preview:ConfigServer" }, { type: "azure-native:appplatform/v20220901preview:ConfigServer" }, { type: "azure-native:appplatform/v20221101preview:ConfigServer" }, { type: "azure-native:appplatform/v20221201:ConfigServer" }, { type: "azure-native:appplatform/v20230101preview:ConfigServer" }, { type: "azure-native:appplatform/v20230301preview:ConfigServer" }, { type: "azure-native:appplatform/v20230501preview:ConfigServer" }, { type: "azure-native:appplatform/v20230701preview:ConfigServer" }, { type: "azure-native:appplatform/v20230901preview:ConfigServer" }, { type: "azure-native:appplatform/v20231101preview:ConfigServer" }, { type: "azure-native:appplatform/v20231201:ConfigServer" }, { type: "azure-native:appplatform/v20240101preview:ConfigServer" }, { type: "azure-native:appplatform/v20240501preview:ConfigServer" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(ConfigServer.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ConfigServer = ConfigServer;
/** @internal */
ConfigServer.__pulumiType = 'azure-native:appplatform:ConfigServer';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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