All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.sentinel.WatchlistItem Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.sentinel;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.sentinel.WatchlistItemArgs;
import com.pulumi.azure.sentinel.inputs.WatchlistItemState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Map;
import javax.annotation.Nullable;

/**
 * Manages a Sentinel Watchlist Item.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
 * import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
 * import com.pulumi.azure.sentinel.LogAnalyticsWorkspaceOnboarding;
 * import com.pulumi.azure.sentinel.LogAnalyticsWorkspaceOnboardingArgs;
 * import com.pulumi.azure.sentinel.Watchlist;
 * import com.pulumi.azure.sentinel.WatchlistArgs;
 * import com.pulumi.azure.sentinel.WatchlistItem;
 * import com.pulumi.azure.sentinel.WatchlistItemArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-rg")
 *             .location("West Europe")
 *             .build());
 * 
 *         var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
 *             .name("example-workspace")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .sku("PerGB2018")
 *             .build());
 * 
 *         var exampleLogAnalyticsWorkspaceOnboarding = new LogAnalyticsWorkspaceOnboarding("exampleLogAnalyticsWorkspaceOnboarding", LogAnalyticsWorkspaceOnboardingArgs.builder()
 *             .workspaceId(exampleAnalyticsWorkspace.id())
 *             .build());
 * 
 *         var exampleWatchlist = new Watchlist("exampleWatchlist", WatchlistArgs.builder()
 *             .name("example-watchlist")
 *             .logAnalyticsWorkspaceId(exampleLogAnalyticsWorkspaceOnboarding.workspaceId())
 *             .displayName("example-wl")
 *             .itemSearchKey("Key")
 *             .build());
 * 
 *         var exampleWatchlistItem = new WatchlistItem("exampleWatchlistItem", WatchlistItemArgs.builder()
 *             .name("0aac6fa5-223e-49cf-9bfd-3554dc9d2b76")
 *             .watchlistId(exampleWatchlist.id())
 *             .properties(Map.ofEntries(
 *                 Map.entry("k1", "v1"),
 *                 Map.entry("k2", "v2")
 *             ))
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Sentinel Watchlist Items can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:sentinel/watchlistItem:WatchlistItem example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/providers/Microsoft.SecurityInsights/watchlists/list1/watchlistItems/item1 * ``` * */ @ResourceType(type="azure:sentinel/watchlistItem:WatchlistItem") public class WatchlistItem extends com.pulumi.resources.CustomResource { /** * The name in UUID format which should be used for this Sentinel Watchlist Item. Changing this forces a new Sentinel Watchlist Item to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name in UUID format which should be used for this Sentinel Watchlist Item. Changing this forces a new Sentinel Watchlist Item to be created. * */ public Output name() { return this.name; } /** * The key value pairs of the Sentinel Watchlist Item. * */ @Export(name="properties", refs={Map.class,String.class}, tree="[0,1,1]") private Output> properties; /** * @return The key value pairs of the Sentinel Watchlist Item. * */ public Output> properties() { return this.properties; } /** * The ID of the Sentinel Watchlist that this Item resides in. Changing this forces a new Sentinel Watchlist Item to be created. * */ @Export(name="watchlistId", refs={String.class}, tree="[0]") private Output watchlistId; /** * @return The ID of the Sentinel Watchlist that this Item resides in. Changing this forces a new Sentinel Watchlist Item to be created. * */ public Output watchlistId() { return this.watchlistId; } /** * * @param name The _unique_ name of the resulting resource. */ public WatchlistItem(java.lang.String name) { this(name, WatchlistItemArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public WatchlistItem(java.lang.String name, WatchlistItemArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public WatchlistItem(java.lang.String name, WatchlistItemArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:sentinel/watchlistItem:WatchlistItem", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private WatchlistItem(java.lang.String name, Output id, @Nullable WatchlistItemState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:sentinel/watchlistItem:WatchlistItem", name, state, makeResourceOptions(options, id), false); } private static WatchlistItemArgs makeArgs(WatchlistItemArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? WatchlistItemArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 * @param options Optional settings to control the behavior of the CustomResource. */ public static WatchlistItem get(java.lang.String name, Output id, @Nullable WatchlistItemState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new WatchlistItem(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy