import * as pulumi from "@pulumi/pulumi"; /** * Manages a Sentinel Watchlist. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "West Europe", * }); * const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", { * name: "example-workspace", * location: example.location, * resourceGroupName: example.name, * sku: "PerGB2018", * }); * const exampleLogAnalyticsWorkspaceOnboarding = new azure.sentinel.LogAnalyticsWorkspaceOnboarding("example", {workspaceId: exampleAnalyticsWorkspace.id}); * const exampleWatchlist = new azure.sentinel.Watchlist("example", { * name: "example-watchlist", * logAnalyticsWorkspaceId: exampleLogAnalyticsWorkspaceOnboarding.workspaceId, * displayName: "example-wl", * itemSearchKey: "Key", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.OperationalInsights` - 2022-11-01 * * ## Import * * Sentinel Watchlists can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:sentinel/watchlist:Watchlist example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/providers/Microsoft.SecurityInsights/watchlists/list1 * ``` */ export declare class Watchlist extends pulumi.CustomResource { /** * Get an existing Watchlist 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?: WatchlistState, opts?: pulumi.CustomResourceOptions): Watchlist; /** * Returns true if the given object is an instance of Watchlist. 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 Watchlist; /** * The default duration in ISO8601 duration form of this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ readonly defaultDuration: pulumi.Output; /** * The description of this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ readonly description: pulumi.Output; /** * The display name of this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ readonly displayName: pulumi.Output; /** * The key used to optimize query performance when using Watchlist for joins with other data. Changing this forces a new Sentinel Watchlist to be created. */ readonly itemSearchKey: pulumi.Output; /** * Specifies a list of labels related to this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ readonly labels: pulumi.Output; /** * The ID of the Log Analytics Workspace where this Sentinel Watchlist resides in. Changing this forces a new Sentinel Watchlist to be created. */ readonly logAnalyticsWorkspaceId: pulumi.Output; /** * The name which should be used for this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ readonly name: pulumi.Output; /** * Create a Watchlist 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: WatchlistArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Watchlist resources. */ export interface WatchlistState { /** * The default duration in ISO8601 duration form of this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ defaultDuration?: pulumi.Input; /** * The description of this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ description?: pulumi.Input; /** * The display name of this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ displayName?: pulumi.Input; /** * The key used to optimize query performance when using Watchlist for joins with other data. Changing this forces a new Sentinel Watchlist to be created. */ itemSearchKey?: pulumi.Input; /** * Specifies a list of labels related to this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ labels?: pulumi.Input[]>; /** * The ID of the Log Analytics Workspace where this Sentinel Watchlist resides in. Changing this forces a new Sentinel Watchlist to be created. */ logAnalyticsWorkspaceId?: pulumi.Input; /** * The name which should be used for this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ name?: pulumi.Input; } /** * The set of arguments for constructing a Watchlist resource. */ export interface WatchlistArgs { /** * The default duration in ISO8601 duration form of this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ defaultDuration?: pulumi.Input; /** * The description of this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ description?: pulumi.Input; /** * The display name of this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ displayName: pulumi.Input; /** * The key used to optimize query performance when using Watchlist for joins with other data. Changing this forces a new Sentinel Watchlist to be created. */ itemSearchKey: pulumi.Input; /** * Specifies a list of labels related to this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ labels?: pulumi.Input[]>; /** * The ID of the Log Analytics Workspace where this Sentinel Watchlist resides in. Changing this forces a new Sentinel Watchlist to be created. */ logAnalyticsWorkspaceId: pulumi.Input; /** * The name which should be used for this Sentinel Watchlist. Changing this forces a new Sentinel Watchlist to be created. */ name?: pulumi.Input; }