"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.ManagedInstanceVulnerabilityAssessment = void 0;
const pulumi = require("@pulumi/pulumi");
const inputs = require("../types/input");
const utilities = require("../utilities");
/**
 * A managed instance vulnerability assessment.
 *
 * 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: 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 ManagedInstanceVulnerabilityAssessment extends pulumi.CustomResource {
    /**
     * Get an existing ManagedInstanceVulnerabilityAssessment 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 ManagedInstanceVulnerabilityAssessment(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ManagedInstanceVulnerabilityAssessment.  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'] === ManagedInstanceVulnerabilityAssessment.__pulumiType;
    }
    /**
     * Create a ManagedInstanceVulnerabilityAssessment 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'");
            }
            if (args?.storageContainerPath === undefined && !opts.urn) {
                throw new Error("Missing required property 'storageContainerPath'");
            }
            resourceInputs["managedInstanceName"] = args?.managedInstanceName;
            resourceInputs["recurringScans"] = args ? (args.recurringScans ? pulumi.output(args.recurringScans).apply(inputs.sql.vulnerabilityAssessmentRecurringScansPropertiesArgsProvideDefaults) : undefined) : undefined;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["storageAccountAccessKey"] = args?.storageAccountAccessKey;
            resourceInputs["storageContainerPath"] = args?.storageContainerPath;
            resourceInputs["storageContainerSasKey"] = args?.storageContainerSasKey;
            resourceInputs["vulnerabilityAssessmentName"] = args?.vulnerabilityAssessmentName;
            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["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:sql/v20180601preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20200202preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20200801preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20201101preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20210201preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20210501preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20210801preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20211101:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20211101preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20220201preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20220501preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20220801preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20221101preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20230201preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20230501preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20230801:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20230801preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20240501preview:ManagedInstanceVulnerabilityAssessment" }, { type: "azure-native:sql/v20241101preview:ManagedInstanceVulnerabilityAssessment" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(ManagedInstanceVulnerabilityAssessment.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ManagedInstanceVulnerabilityAssessment = ManagedInstanceVulnerabilityAssessment;
/** @internal */
ManagedInstanceVulnerabilityAssessment.__pulumiType = 'azure-native:sql:ManagedInstanceVulnerabilityAssessment';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFuYWdlZEluc3RhbmNlVnVsbmVyYWJpbGl0eUFzc2Vzc21lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcWwvbWFuYWdlZEluc3RhbmNlVnVsbmVyYWJpbGl0eUFzc2Vzc21lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHNFQUFzRTtBQUN0RSxpRkFBaUY7OztBQUVqRix5Q0FBeUM7QUFDekMseUNBQXlDO0FBR3pDLDBDQUEwQztBQUUxQzs7Ozs7O0dBT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