"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.ManagedInstance = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * An Azure SQL managed instance.
 *
 * 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: 2015-05-01-preview, 2018-06-01-preview, 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 ManagedInstance extends pulumi.CustomResource {
    /**
     * Get an existing ManagedInstance 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 ManagedInstance(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ManagedInstance.  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'] === ManagedInstance.__pulumiType;
    }
    /**
     * Create a ManagedInstance 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'");
            }
            resourceInputs["administratorLogin"] = args?.administratorLogin;
            resourceInputs["administratorLoginPassword"] = args?.administratorLoginPassword;
            resourceInputs["administrators"] = args?.administrators;
            resourceInputs["authenticationMetadata"] = args?.authenticationMetadata;
            resourceInputs["collation"] = args?.collation;
            resourceInputs["databaseFormat"] = args?.databaseFormat;
            resourceInputs["dnsZonePartner"] = args?.dnsZonePartner;
            resourceInputs["hybridSecondaryUsage"] = args?.hybridSecondaryUsage;
            resourceInputs["identity"] = args?.identity;
            resourceInputs["instancePoolId"] = args?.instancePoolId;
            resourceInputs["isGeneralPurposeV2"] = args?.isGeneralPurposeV2;
            resourceInputs["keyId"] = args?.keyId;
            resourceInputs["licenseType"] = args?.licenseType;
            resourceInputs["location"] = args?.location;
            resourceInputs["maintenanceConfigurationId"] = args?.maintenanceConfigurationId;
            resourceInputs["managedInstanceCreateMode"] = args?.managedInstanceCreateMode;
            resourceInputs["managedInstanceName"] = args?.managedInstanceName;
            resourceInputs["minimalTlsVersion"] = args?.minimalTlsVersion;
            resourceInputs["pricingModel"] = args?.pricingModel;
            resourceInputs["primaryUserAssignedIdentityId"] = args?.primaryUserAssignedIdentityId;
            resourceInputs["proxyOverride"] = args?.proxyOverride;
            resourceInputs["publicDataEndpointEnabled"] = args?.publicDataEndpointEnabled;
            resourceInputs["requestedBackupStorageRedundancy"] = args?.requestedBackupStorageRedundancy;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["restorePointInTime"] = args?.restorePointInTime;
            resourceInputs["servicePrincipal"] = args?.servicePrincipal;
            resourceInputs["sku"] = args?.sku;
            resourceInputs["sourceManagedInstanceId"] = args?.sourceManagedInstanceId;
            resourceInputs["storageIOps"] = args?.storageIOps;
            resourceInputs["storageSizeInGB"] = args?.storageSizeInGB;
            resourceInputs["storageThroughputMBps"] = args?.storageThroughputMBps;
            resourceInputs["subnetId"] = args?.subnetId;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["timezoneId"] = args?.timezoneId;
            resourceInputs["vCores"] = args?.vCores;
            resourceInputs["zoneRedundant"] = args?.zoneRedundant;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["createTime"] = undefined /*out*/;
            resourceInputs["currentBackupStorageRedundancy"] = undefined /*out*/;
            resourceInputs["dnsZone"] = undefined /*out*/;
            resourceInputs["externalGovernanceStatus"] = undefined /*out*/;
            resourceInputs["fullyQualifiedDomainName"] = undefined /*out*/;
            resourceInputs["hybridSecondaryUsageDetected"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["privateEndpointConnections"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["virtualClusterId"] = undefined /*out*/;
        }
        else {
            resourceInputs["administratorLogin"] = undefined /*out*/;
            resourceInputs["administrators"] = undefined /*out*/;
            resourceInputs["authenticationMetadata"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["collation"] = undefined /*out*/;
            resourceInputs["createTime"] = undefined /*out*/;
            resourceInputs["currentBackupStorageRedundancy"] = undefined /*out*/;
            resourceInputs["databaseFormat"] = undefined /*out*/;
            resourceInputs["dnsZone"] = undefined /*out*/;
            resourceInputs["externalGovernanceStatus"] = undefined /*out*/;
            resourceInputs["fullyQualifiedDomainName"] = undefined /*out*/;
            resourceInputs["hybridSecondaryUsage"] = undefined /*out*/;
            resourceInputs["hybridSecondaryUsageDetected"] = undefined /*out*/;
            resourceInputs["identity"] = undefined /*out*/;
            resourceInputs["instancePoolId"] = undefined /*out*/;
            resourceInputs["isGeneralPurposeV2"] = undefined /*out*/;
            resourceInputs["keyId"] = undefined /*out*/;
            resourceInputs["licenseType"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["maintenanceConfigurationId"] = undefined /*out*/;
            resourceInputs["minimalTlsVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["pricingModel"] = undefined /*out*/;
            resourceInputs["primaryUserAssignedIdentityId"] = undefined /*out*/;
            resourceInputs["privateEndpointConnections"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["proxyOverride"] = undefined /*out*/;
            resourceInputs["publicDataEndpointEnabled"] = undefined /*out*/;
            resourceInputs["requestedBackupStorageRedundancy"] = undefined /*out*/;
            resourceInputs["servicePrincipal"] = undefined /*out*/;
            resourceInputs["sku"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["storageIOps"] = undefined /*out*/;
            resourceInputs["storageSizeInGB"] = undefined /*out*/;
            resourceInputs["storageThroughputMBps"] = undefined /*out*/;
            resourceInputs["subnetId"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["timezoneId"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["vCores"] = undefined /*out*/;
            resourceInputs["virtualClusterId"] = undefined /*out*/;
            resourceInputs["zoneRedundant"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:sql/v20150501preview:ManagedInstance" }, { type: "azure-native:sql/v20180601preview:ManagedInstance" }, { type: "azure-native:sql/v20200202preview:ManagedInstance" }, { type: "azure-native:sql/v20200801preview:ManagedInstance" }, { type: "azure-native:sql/v20201101preview:ManagedInstance" }, { type: "azure-native:sql/v20210201preview:ManagedInstance" }, { type: "azure-native:sql/v20210501preview:ManagedInstance" }, { type: "azure-native:sql/v20210801preview:ManagedInstance" }, { type: "azure-native:sql/v20211101:ManagedInstance" }, { type: "azure-native:sql/v20211101preview:ManagedInstance" }, { type: "azure-native:sql/v20220201preview:ManagedInstance" }, { type: "azure-native:sql/v20220501preview:ManagedInstance" }, { type: "azure-native:sql/v20220801preview:ManagedInstance" }, { type: "azure-native:sql/v20221101preview:ManagedInstance" }, { type: "azure-native:sql/v20230201preview:ManagedInstance" }, { type: "azure-native:sql/v20230501preview:ManagedInstance" }, { type: "azure-native:sql/v20230801:ManagedInstance" }, { type: "azure-native:sql/v20230801preview:ManagedInstance" }, { type: "azure-native:sql/v20240501preview:ManagedInstance" }, { type: "azure-native:sql/v20241101preview:ManagedInstance" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(ManagedInstance.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ManagedInstance = ManagedInstance;
/** @internal */
ManagedInstance.__pulumiType = 'azure-native:sql:ManagedInstance';
//# sourceMappingURL=data:application/json;base64, 