"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.ManagedInstancePrivateEndpointConnection = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * A private endpoint connection
 *
 * Uses Azure REST API version 2023-08-01. In version 2.x of the Azure Native provider, it used API version 2021-11-01.
 *
 * Other available API versions: 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview, 2024-11-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native sql [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class ManagedInstancePrivateEndpointConnection extends pulumi.CustomResource {
    /**
     * Get an existing ManagedInstancePrivateEndpointConnection 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 ManagedInstancePrivateEndpointConnection(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ManagedInstancePrivateEndpointConnection.  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'] === ManagedInstancePrivateEndpointConnection.__pulumiType;
    }
    /**
     * Create a ManagedInstancePrivateEndpointConnection 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?.managedInstanceName === undefined && !opts.urn) {
                throw new Error("Missing required property 'managedInstanceName'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["managedInstanceName"] = args?.managedInstanceName;
            resourceInputs["privateEndpoint"] = args?.privateEndpoint;
            resourceInputs["privateEndpointConnectionName"] = args?.privateEndpointConnectionName;
            resourceInputs["privateLinkServiceConnectionState"] = args?.privateLinkServiceConnectionState;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["privateEndpoint"] = undefined /*out*/;
            resourceInputs["privateLinkServiceConnectionState"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:sql/v20200202preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20200801preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20201101preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20210201preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20210501preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20210801preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20211101:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20211101preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20220201preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20220501preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20220801preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20221101preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20230201preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20230501preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20230801:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20230801preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20240501preview:ManagedInstancePrivateEndpointConnection" }, { type: "azure-native:sql/v20241101preview:ManagedInstancePrivateEndpointConnection" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(ManagedInstancePrivateEndpointConnection.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ManagedInstancePrivateEndpointConnection = ManagedInstancePrivateEndpointConnection;
/** @internal */
ManagedInstancePrivateEndpointConnection.__pulumiType = 'azure-native:sql:ManagedInstancePrivateEndpointConnection';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFuYWdlZEluc3RhbmNlUHJpdmF0ZUVuZHBvaW50Q29ubmVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NxbC9tYW5hZ2VkSW5zdGFuY2VQcml2YXRlRW5kcG9pbnRDb25uZWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxzRUFBc0U7QUFDdEUsaUZBQWlGOzs7QUFFakYseUNBQXlDO0FBSXpDLDBDQUEwQztBQUUxQzs7Ozs7O0dBTUc7QUFDSCxNQUFhLHdDQUF5QyxTQUFRLE1BQU0sQ0FBQyxjQUFjO0lBQy9FOzs7Ozs7O09BT0c7SUFDSSxNQUFNLENBQUMsR0FBRyxDQUFDLElBQVksRUFBRSxFQUEyQixFQUFFLElBQW1DO1FBQzVGLE9BQU8sSUFBSSx3Q0FBd0MsQ0FBQyxJQUFJLEVBQUUsU0FBZ0Is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