"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.ManagementGroupNetworkManagerConnection = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * The Network Manager Connection resource
 *
 * Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01.
 *
 * Other available API versions: 2022-01-01, 2022-02-01-preview, 2022-04-01-preview, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-07-01, 2024-10-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native network [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class ManagementGroupNetworkManagerConnection extends pulumi.CustomResource {
    /**
     * Get an existing ManagementGroupNetworkManagerConnection 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 ManagementGroupNetworkManagerConnection(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ManagementGroupNetworkManagerConnection.  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'] === ManagementGroupNetworkManagerConnection.__pulumiType;
    }
    /**
     * Create a ManagementGroupNetworkManagerConnection 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?.managementGroupId === undefined && !opts.urn) {
                throw new Error("Missing required property 'managementGroupId'");
            }
            resourceInputs["description"] = args?.description;
            resourceInputs["managementGroupId"] = args?.managementGroupId;
            resourceInputs["networkManagerConnectionName"] = args?.networkManagerConnectionName;
            resourceInputs["networkManagerId"] = args?.networkManagerId;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["networkManagerId"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:network/v20220101:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20220201preview:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20220401preview:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20220501:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20220701:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20220901:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20221101:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20230201:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20230401:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20230501:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20230601:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20230901:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20231101:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20240101:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20240301:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20240501:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20240701:ManagementGroupNetworkManagerConnection" }, { type: "azure-native:network/v20241001:ManagementGroupNetworkManagerConnection" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(ManagementGroupNetworkManagerConnection.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ManagementGroupNetworkManagerConnection = ManagementGroupNetworkManagerConnection;
/** @internal */
ManagementGroupNetworkManagerConnection.__pulumiType = 'azure-native:network:ManagementGroupNetworkManagerConnection';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFuYWdlbWVudEdyb3VwTmV0d29ya01hbmFnZXJDb25uZWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbmV0d29yay9tYW5hZ2VtZW50R3JvdXBOZXR3b3JrTWFuYWdlckNvbm5lY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHNFQUFzRTtBQUN0RSxpRkFBaUY7OztBQUVqRix5Q0FBeUM7QUFJekMsMENBQTBDO0FBRTFDOzs7Ozs7R0FNRztBQUNILE1BQWEsdUNBQXdDLFNBQVEsTUFBTSxDQUFDLGNBQWM7SUFDOUU7Ozs7Ozs7T0FPRztJQUNJLE1BQU0sQ0FBQyxHQUFHLENBQUMsSUFBWSxFQUFFLEVBQTJCLEVBQUUsSUFBbUM7UUFDNUYsT0FBTyxJQUFJLHVDQUF1QyxDQUFDLElBQUksRUFBRSxTQUFnQixFQUFFLEVBQUUsR0FBRyxJQUFJLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxDQUFDLENBQUM7SUFDcEcsQ0FBQztJQUtEOzs7T0FHRztJQUNJLE1BQU0sQ0FBQyxVQUFVLENBQUMsR0FBUTtRQUM3QixJQUFJLEdBQUcsS0FBSyxTQUFTLElBQUksR0FBRyxLQUFLLElBQUksRUFBRTtZQUNuQyxP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