"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.ManagementLockAtResourceLevel = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * The lock information.
 *
 * Uses Azure REST API version 2020-05-01. In version 2.x of the Azure Native provider, it used API version 2020-05-01.
 */
class ManagementLockAtResourceLevel extends pulumi.CustomResource {
    /**
     * Get an existing ManagementLockAtResourceLevel 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 ManagementLockAtResourceLevel(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ManagementLockAtResourceLevel.  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'] === ManagementLockAtResourceLevel.__pulumiType;
    }
    /**
     * Create a ManagementLockAtResourceLevel 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?.apiVersion === undefined && !opts.urn) {
                throw new Error("Missing required property 'apiVersion'");
            }
            if (args?.level === undefined && !opts.urn) {
                throw new Error("Missing required property 'level'");
            }
            if (args?.parentResourcePath === undefined && !opts.urn) {
                throw new Error("Missing required property 'parentResourcePath'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.resourceName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceName'");
            }
            if (args?.resourceProviderNamespace === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceProviderNamespace'");
            }
            if (args?.resourceType === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceType'");
            }
            resourceInputs["apiVersion"] = args?.apiVersion;
            resourceInputs["level"] = args?.level;
            resourceInputs["lockName"] = args?.lockName;
            resourceInputs["notes"] = args?.notes;
            resourceInputs["owners"] = args?.owners;
            resourceInputs["parentResourcePath"] = args?.parentResourcePath;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["resourceName"] = args?.resourceName;
            resourceInputs["resourceProviderNamespace"] = args?.resourceProviderNamespace;
            resourceInputs["resourceType"] = args?.resourceType;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["level"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["notes"] = undefined /*out*/;
            resourceInputs["owners"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:authorization/v20160901:ManagementLockAtResourceLevel" }, { type: "azure-native:authorization/v20170401:ManagementLockAtResourceLevel" }, { type: "azure-native:authorization/v20200501:ManagementLockAtResourceLevel" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(ManagementLockAtResourceLevel.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ManagementLockAtResourceLevel = ManagementLockAtResourceLevel;
/** @internal */
ManagementLockAtResourceLevel.__pulumiType = 'azure-native:authorization:ManagementLockAtResourceLevel';
//# sourceMappingURL=data:application/json;base64, 