
com.pulumi.azurenative.securityinsights.Incident Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.securityinsights;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.securityinsights.IncidentArgs;
import com.pulumi.azurenative.securityinsights.outputs.IncidentAdditionalDataResponse;
import com.pulumi.azurenative.securityinsights.outputs.IncidentLabelResponse;
import com.pulumi.azurenative.securityinsights.outputs.IncidentOwnerInfoResponse;
import com.pulumi.azurenative.securityinsights.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Represents an incident in Azure Security Insights.
* Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-01-01.
*
* Other available API versions: 2021-03-01-preview, 2023-02-01-preview, 2023-03-01-preview, 2023-06-01-preview, 2023-07-01-preview, 2023-08-01-preview, 2023-09-01-preview, 2023-10-01-preview, 2023-11-01, 2023-12-01-preview, 2024-01-01-preview, 2024-03-01, 2024-04-01-preview.
*
* ## Example Usage
* ### Creates or updates an incident.
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.securityinsights.Incident;
* import com.pulumi.azurenative.securityinsights.IncidentArgs;
* import com.pulumi.azurenative.securityinsights.inputs.IncidentOwnerInfoArgs;
* 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 incident = new Incident("incident", IncidentArgs.builder()
* .classification("FalsePositive")
* .classificationComment("Not a malicious activity")
* .classificationReason("IncorrectAlertLogic")
* .description("This is a demo incident")
* .firstActivityTimeUtc("2019-01-01T13:00:30Z")
* .incidentId("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
* .lastActivityTimeUtc("2019-01-01T13:05:30Z")
* .owner(IncidentOwnerInfoArgs.builder()
* .objectId("2046feea-040d-4a46-9e2b-91c2941bfa70")
* .build())
* .resourceGroupName("myRg")
* .severity("High")
* .status("Closed")
* .title("My incident")
* .workspaceName("myWorkspace")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:securityinsights:Incident 73e01a99-5cd7-4139-a149-9f2736ff2ab5 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}
* ```
*
*/
@ResourceType(type="azure-native:securityinsights:Incident")
public class Incident extends com.pulumi.resources.CustomResource {
/**
* Additional data on the incident
*
*/
@Export(name="additionalData", refs={IncidentAdditionalDataResponse.class}, tree="[0]")
private Output additionalData;
/**
* @return Additional data on the incident
*
*/
public Output additionalData() {
return this.additionalData;
}
/**
* The reason the incident was closed
*
*/
@Export(name="classification", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> classification;
/**
* @return The reason the incident was closed
*
*/
public Output> classification() {
return Codegen.optional(this.classification);
}
/**
* Describes the reason the incident was closed
*
*/
@Export(name="classificationComment", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> classificationComment;
/**
* @return Describes the reason the incident was closed
*
*/
public Output> classificationComment() {
return Codegen.optional(this.classificationComment);
}
/**
* The classification reason the incident was closed with
*
*/
@Export(name="classificationReason", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> classificationReason;
/**
* @return The classification reason the incident was closed with
*
*/
public Output> classificationReason() {
return Codegen.optional(this.classificationReason);
}
/**
* The time the incident was created
*
*/
@Export(name="createdTimeUtc", refs={String.class}, tree="[0]")
private Output createdTimeUtc;
/**
* @return The time the incident was created
*
*/
public Output createdTimeUtc() {
return this.createdTimeUtc;
}
/**
* The description of the incident
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return The description of the incident
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* Etag of the azure resource
*
*/
@Export(name="etag", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> etag;
/**
* @return Etag of the azure resource
*
*/
public Output> etag() {
return Codegen.optional(this.etag);
}
/**
* The time of the first activity in the incident
*
*/
@Export(name="firstActivityTimeUtc", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> firstActivityTimeUtc;
/**
* @return The time of the first activity in the incident
*
*/
public Output> firstActivityTimeUtc() {
return Codegen.optional(this.firstActivityTimeUtc);
}
/**
* A sequential number
*
*/
@Export(name="incidentNumber", refs={Integer.class}, tree="[0]")
private Output incidentNumber;
/**
* @return A sequential number
*
*/
public Output incidentNumber() {
return this.incidentNumber;
}
/**
* The deep-link url to the incident in Azure portal
*
*/
@Export(name="incidentUrl", refs={String.class}, tree="[0]")
private Output incidentUrl;
/**
* @return The deep-link url to the incident in Azure portal
*
*/
public Output incidentUrl() {
return this.incidentUrl;
}
/**
* List of labels relevant to this incident
*
*/
@Export(name="labels", refs={List.class,IncidentLabelResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> labels;
/**
* @return List of labels relevant to this incident
*
*/
public Output>> labels() {
return Codegen.optional(this.labels);
}
/**
* The time of the last activity in the incident
*
*/
@Export(name="lastActivityTimeUtc", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> lastActivityTimeUtc;
/**
* @return The time of the last activity in the incident
*
*/
public Output> lastActivityTimeUtc() {
return Codegen.optional(this.lastActivityTimeUtc);
}
/**
* The last time the incident was updated
*
*/
@Export(name="lastModifiedTimeUtc", refs={String.class}, tree="[0]")
private Output lastModifiedTimeUtc;
/**
* @return The last time the incident was updated
*
*/
public Output lastModifiedTimeUtc() {
return this.lastModifiedTimeUtc;
}
/**
* The name of the resource
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the resource
*
*/
public Output name() {
return this.name;
}
/**
* Describes a user that the incident is assigned to
*
*/
@Export(name="owner", refs={IncidentOwnerInfoResponse.class}, tree="[0]")
private Output* @Nullable */ IncidentOwnerInfoResponse> owner;
/**
* @return Describes a user that the incident is assigned to
*
*/
public Output> owner() {
return Codegen.optional(this.owner);
}
/**
* The incident ID assigned by the incident provider
*
*/
@Export(name="providerIncidentId", refs={String.class}, tree="[0]")
private Output providerIncidentId;
/**
* @return The incident ID assigned by the incident provider
*
*/
public Output providerIncidentId() {
return this.providerIncidentId;
}
/**
* The name of the source provider that generated the incident
*
*/
@Export(name="providerName", refs={String.class}, tree="[0]")
private Output providerName;
/**
* @return The name of the source provider that generated the incident
*
*/
public Output providerName() {
return this.providerName;
}
/**
* List of resource ids of Analytic rules related to the incident
*
*/
@Export(name="relatedAnalyticRuleIds", refs={List.class,String.class}, tree="[0,1]")
private Output> relatedAnalyticRuleIds;
/**
* @return List of resource ids of Analytic rules related to the incident
*
*/
public Output> relatedAnalyticRuleIds() {
return this.relatedAnalyticRuleIds;
}
/**
* The severity of the incident
*
*/
@Export(name="severity", refs={String.class}, tree="[0]")
private Output severity;
/**
* @return The severity of the incident
*
*/
public Output severity() {
return this.severity;
}
/**
* The status of the incident
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return The status of the incident
*
*/
public Output status() {
return this.status;
}
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* The title of the incident
*
*/
@Export(name="title", refs={String.class}, tree="[0]")
private Output title;
/**
* @return The title of the incident
*
*/
public Output title() {
return this.title;
}
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Incident(java.lang.String name) {
this(name, IncidentArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Incident(java.lang.String name, IncidentArgs 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 Incident(java.lang.String name, IncidentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:securityinsights:Incident", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Incident(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:securityinsights:Incident", name, null, makeResourceOptions(options, id), false);
}
private static IncidentArgs makeArgs(IncidentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? IncidentArgs.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())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:securityinsights/v20190101preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20200101:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20210301preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20210401:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20210901preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20211001:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20211001preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220101preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220401preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220501preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220601preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220701preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220801:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220801preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220901preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20221001preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20221101:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20221101preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20221201preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230201:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230201preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230301preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230401preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230501preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230601preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230701preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230801preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230901preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20231001preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20231101:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20231201preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20240101preview:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20240301:Incident").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20240401preview:Incident").build())
))
.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 options Optional settings to control the behavior of the CustomResource.
*/
public static Incident get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Incident(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy