"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.WorkspaceManagedSqlServerVulnerabilityAssessment = void 0;
const pulumi = require("@pulumi/pulumi");
const inputs = require("../types/input");
const utilities = require("../utilities");
/**
 * A server vulnerability assessment.
 *
 * Uses Azure REST API version 2021-06-01. In version 2.x of the Azure Native provider, it used API version 2021-06-01.
 *
 * Other available API versions: 2021-04-01-preview, 2021-05-01, 2021-06-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native synapse [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class WorkspaceManagedSqlServerVulnerabilityAssessment extends pulumi.CustomResource {
    /**
     * Get an existing WorkspaceManagedSqlServerVulnerabilityAssessment 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 WorkspaceManagedSqlServerVulnerabilityAssessment(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of WorkspaceManagedSqlServerVulnerabilityAssessment.  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'] === WorkspaceManagedSqlServerVulnerabilityAssessment.__pulumiType;
    }
    /**
     * Create a WorkspaceManagedSqlServerVulnerabilityAssessment 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?.storageContainerPath === undefined && !opts.urn) {
                throw new Error("Missing required property 'storageContainerPath'");
            }
            if (args?.workspaceName === undefined && !opts.urn) {
                throw new Error("Missing required property 'workspaceName'");
            }
            resourceInputs["recurringScans"] = args ? (args.recurringScans ? pulumi.output(args.recurringScans).apply(inputs.synapse.vulnerabilityAssessmentRecurringScansPropertiesArgsProvideDefaults) : undefined) : undefined;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["storageAccountAccessKey"] = args?.storageAccountAccessKey;
            resourceInputs["storageContainerPath"] = args?.storageContainerPath;
            resourceInputs["storageContainerSasKey"] = args?.storageContainerSasKey;
            resourceInputs["vulnerabilityAssessmentName"] = args?.vulnerabilityAssessmentName;
            resourceInputs["workspaceName"] = args?.workspaceName;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["recurringScans"] = undefined /*out*/;
            resourceInputs["storageContainerPath"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:synapse/v20190601preview:WorkspaceManagedSqlServerVulnerabilityAssessment" }, { type: "azure-native:synapse/v20201201:WorkspaceManagedSqlServerVulnerabilityAssessment" }, { type: "azure-native:synapse/v20210301:WorkspaceManagedSqlServerVulnerabilityAssessment" }, { type: "azure-native:synapse/v20210401preview:WorkspaceManagedSqlServerVulnerabilityAssessment" }, { type: "azure-native:synapse/v20210501:WorkspaceManagedSqlServerVulnerabilityAssessment" }, { type: "azure-native:synapse/v20210601:WorkspaceManagedSqlServerVulnerabilityAssessment" }, { type: "azure-native:synapse/v20210601preview:WorkspaceManagedSqlServerVulnerabilityAssessment" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(WorkspaceManagedSqlServerVulnerabilityAssessment.__pulumiType, name, resourceInputs, opts);
    }
}
exports.WorkspaceManagedSqlServerVulnerabilityAssessment = WorkspaceManagedSqlServerVulnerabilityAssessment;
/** @internal */
WorkspaceManagedSqlServerVulnerabilityAssessment.__pulumiType = 'azure-native:synapse:WorkspaceManagedSqlServerVulnerabilityAssessment';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya3NwYWNlTWFuYWdlZFNxbFNlcnZlclZ1bG5lcmFiaWxpdHlBc3Nlc3NtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3luYXBzZS93b3Jrc3BhY2VNYW5hZ2VkU3FsU2VydmVyVnVsbmVyYWJpbGl0eUFzc2Vzc21lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHNFQUFzRTtBQUN0RSxpRkFBaUY7OztBQUVqRix5Q0FBeUM7QUFDekMseUNBQXlDO0FBR3pDLDBDQUEwQztBQUUxQzs7Ozs7O0dBTUc7QUFDSCxNQUFhLGdEQUFpRCxTQUFRLE1BQU0sQ0FBQyxjQUFjO0lBQ3ZGOzs7Ozs7O09BT0c7SUFDSSxNQUFNLENBQUMsR0FBRyxDQUFDLElBQVksRUFBRSxFQUEyQixFQUFFLElBQW1DO1FBQzVGLE9BQU8sSUFBSSxnREFBZ0QsQ0FBQyxJQUFJLEVBQUUsU0FBZ0IsRUFBRSxFQUFFLEdBQUcsSUFBSSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQzdHLENBQUM7SUFLRDs7O09BR0c7SUFDSSxNQUFNLENBQUMsVUFBVSxDQUFDLEdBQVE7UUFDN0IsSUFBSSxHQUFHLEtBQUssU0FBUyxJQUFJLEdBQUcsS0FBSyxJQUFJLEVBQUU7WUFDbkMsT0FBTyxLQUFLLENBQUM7U0FDaEI7UUFDRCxPQUFPLEdBQUcsQ0FBQyxjQUFjLENBQUM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