"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.FusionAlertRule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Represents Fusion alert rule.
 *
 * Uses Azure REST API version 2024-09-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01.
 */
class FusionAlertRule extends pulumi.CustomResource {
    /**
     * Get an existing FusionAlertRule 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 FusionAlertRule(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of FusionAlertRule.  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'] === FusionAlertRule.__pulumiType;
    }
    /**
     * Create a FusionAlertRule 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 || args.alertRuleTemplateName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'alertRuleTemplateName'");
            }
            if ((!args || args.enabled === undefined) && !opts.urn) {
                throw new Error("Missing required property 'enabled'");
            }
            if ((!args || args.kind === undefined) && !opts.urn) {
                throw new Error("Missing required property 'kind'");
            }
            if ((!args || args.resourceGroupName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if ((!args || args.workspaceName === undefined) && !opts.urn) {
                throw new Error("Missing required property 'workspaceName'");
            }
            resourceInputs["alertRuleTemplateName"] = args ? args.alertRuleTemplateName : undefined;
            resourceInputs["enabled"] = args ? args.enabled : undefined;
            resourceInputs["kind"] = "Fusion";
            resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined;
            resourceInputs["ruleId"] = args ? args.ruleId : undefined;
            resourceInputs["workspaceName"] = args ? args.workspaceName : undefined;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["displayName"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["lastModifiedUtc"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["severity"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["tactics"] = undefined /*out*/;
            resourceInputs["techniques"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["alertRuleTemplateName"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["displayName"] = undefined /*out*/;
            resourceInputs["enabled"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["kind"] = undefined /*out*/;
            resourceInputs["lastModifiedUtc"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["severity"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["tactics"] = undefined /*out*/;
            resourceInputs["techniques"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:securityinsights/v20190101preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20200101:FusionAlertRule" }, { type: "azure-native:securityinsights/v20210301preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20210301preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20210301preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20210301preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20210301preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20210901preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20211001:FusionAlertRule" }, { type: "azure-native:securityinsights/v20211001preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20211001preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20220101preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20220401preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20220501preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20220601preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20220701preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20220801:FusionAlertRule" }, { type: "azure-native:securityinsights/v20220801preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20220901preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20221001preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20221101:FusionAlertRule" }, { type: "azure-native:securityinsights/v20221101preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20221201preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230201:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230201preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230301preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230401preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230501preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230601preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230601preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20230601preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20230601preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20230601preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20230601preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20230701preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230701preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20230701preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20230701preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20230701preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20230701preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20230801preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230801preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20230801preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20230801preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20230801preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20230801preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20230901preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20230901preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20230901preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20230901preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20230901preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20230901preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20231001preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20231001preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20231001preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20231001preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20231001preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20231001preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20231101:FusionAlertRule" }, { type: "azure-native:securityinsights/v20231101:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20231101:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20231201preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20231201preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20231201preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20231201preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20231201preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20231201preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20240101preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20240101preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20240101preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20240101preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20240101preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20240101preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20240301:FusionAlertRule" }, { type: "azure-native:securityinsights/v20240301:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20240301:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20240401preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20240401preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20240401preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20240401preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20240401preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20240401preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20240901:FusionAlertRule" }, { type: "azure-native:securityinsights/v20240901:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20240901:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20241001preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20241001preview:MLBehaviorAnalyticsAlertRule" }, { type: "azure-native:securityinsights/v20241001preview:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights/v20241001preview:NrtAlertRule" }, { type: "azure-native:securityinsights/v20241001preview:ScheduledAlertRule" }, { type: "azure-native:securityinsights/v20241001preview:ThreatIntelligenceAlertRule" }, { type: "azure-native:securityinsights/v20250101preview:FusionAlertRule" }, { type: "azure-native:securityinsights/v20250301:FusionAlertRule" }, { type: "azure-native:securityinsights:MicrosoftSecurityIncidentCreationAlertRule" }, { type: "azure-native:securityinsights:ScheduledAlertRule" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(FusionAlertRule.__pulumiType, name, resourceInputs, opts);
    }
}
exports.FusionAlertRule = FusionAlertRule;
/** @internal */
FusionAlertRule.__pulumiType = 'azure-native:securityinsights:FusionAlertRule';
//# sourceMappingURL=data:application/json;base64, 