import * as pulumi from "@pulumi/pulumi"; /** * Manages a Sentinel Threat Intelligence Alert Rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", { * name: "example-workspace", * location: exampleResourceGroup.location, * resourceGroupName: exampleResourceGroup.name, * sku: "pergb2018", * }); * const exampleAnalyticsSolution = new azure.operationalinsights.AnalyticsSolution("example", { * solutionName: "SecurityInsights", * location: exampleResourceGroup.location, * resourceGroupName: exampleResourceGroup.name, * workspaceResourceId: exampleAnalyticsWorkspace.id, * workspaceName: exampleAnalyticsWorkspace.name, * plan: { * publisher: "Microsoft", * product: "OMSGallery/SecurityInsights", * }, * }); * const example = azure.sentinel.getAlertRuleTemplateOutput({ * displayName: "(Preview) Microsoft Defender Threat Intelligence Analytics", * logAnalyticsWorkspaceId: exampleAnalyticsSolution.workspaceResourceId, * }); * const exampleAlertRuleThreatIntelligence = new azure.sentinel.AlertRuleThreatIntelligence("example", { * name: "example-rule", * logAnalyticsWorkspaceId: exampleAnalyticsSolution.workspaceResourceId, * alertRuleTemplateGuid: example.apply(example => example.name), * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.OperationalInsights` - 2023-12-01-preview * * ## Import * * Sentinel Threat Intelligence Alert Rules can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:sentinel/alertRuleThreatIntelligence:AlertRuleThreatIntelligence example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/providers/Microsoft.SecurityInsights/alertRules/rule1 * ``` */ export declare class AlertRuleThreatIntelligence extends pulumi.CustomResource { /** * Get an existing AlertRuleThreatIntelligence 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AlertRuleThreatIntelligenceState, opts?: pulumi.CustomResourceOptions): AlertRuleThreatIntelligence; /** * Returns true if the given object is an instance of AlertRuleThreatIntelligence. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AlertRuleThreatIntelligence; /** * The GUID of the alert rule template which is used for this Sentinel Threat Intelligence Alert Rule. Changing this forces a new Sentinel Threat Intelligence Alert Rule to be created. */ readonly alertRuleTemplateGuid: pulumi.Output; /** * Whether the Threat Intelligence Alert rule enabled? Defaults to `true`. */ readonly enabled: pulumi.Output; /** * The ID of the Log Analytics Workspace this Sentinel Threat Intelligence Alert Rule belongs to. Changing this forces a new Sentinel Threat Intelligence Alert Rule to be created. */ readonly logAnalyticsWorkspaceId: pulumi.Output; /** * The name which should be used for this Sentinel Threat Intelligence Alert Rule. Changing this forces a new Sentinel Threat Intelligence Alert Rule to be created. */ readonly name: pulumi.Output; /** * Create a AlertRuleThreatIntelligence 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: string, args: AlertRuleThreatIntelligenceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlertRuleThreatIntelligence resources. */ export interface AlertRuleThreatIntelligenceState { /** * The GUID of the alert rule template which is used for this Sentinel Threat Intelligence Alert Rule. Changing this forces a new Sentinel Threat Intelligence Alert Rule to be created. */ alertRuleTemplateGuid?: pulumi.Input; /** * Whether the Threat Intelligence Alert rule enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * The ID of the Log Analytics Workspace this Sentinel Threat Intelligence Alert Rule belongs to. Changing this forces a new Sentinel Threat Intelligence Alert Rule to be created. */ logAnalyticsWorkspaceId?: pulumi.Input; /** * The name which should be used for this Sentinel Threat Intelligence Alert Rule. Changing this forces a new Sentinel Threat Intelligence Alert Rule to be created. */ name?: pulumi.Input; } /** * The set of arguments for constructing a AlertRuleThreatIntelligence resource. */ export interface AlertRuleThreatIntelligenceArgs { /** * The GUID of the alert rule template which is used for this Sentinel Threat Intelligence Alert Rule. Changing this forces a new Sentinel Threat Intelligence Alert Rule to be created. */ alertRuleTemplateGuid: pulumi.Input; /** * Whether the Threat Intelligence Alert rule enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * The ID of the Log Analytics Workspace this Sentinel Threat Intelligence Alert Rule belongs to. Changing this forces a new Sentinel Threat Intelligence Alert Rule to be created. */ logAnalyticsWorkspaceId: pulumi.Input; /** * The name which should be used for this Sentinel Threat Intelligence Alert Rule. Changing this forces a new Sentinel Threat Intelligence Alert Rule to be created. */ name?: pulumi.Input; }