![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.securityinsights.kotlin.HuntArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.securityinsights.kotlin
import com.pulumi.azurenative.securityinsights.HuntArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.enums.AttackTactic
import com.pulumi.azurenative.securityinsights.kotlin.enums.HypothesisStatus
import com.pulumi.azurenative.securityinsights.kotlin.enums.Status
import com.pulumi.azurenative.securityinsights.kotlin.inputs.HuntOwnerArgs
import com.pulumi.azurenative.securityinsights.kotlin.inputs.HuntOwnerArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Represents a Hunt in Azure Security Insights.
* Azure REST API version: 2023-06-01-preview.
* Other available API versions: 2023-07-01-preview, 2023-08-01-preview, 2023-09-01-preview, 2023-10-01-preview, 2023-12-01-preview, 2024-01-01-preview.
* ## Example Usage
* ### Creates or updates a hunt.
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var hunt = new AzureNative.SecurityInsights.Hunt("hunt", new()
* {
* AttackTactics = new[]
* {
* AzureNative.SecurityInsights.AttackTactic.Reconnaissance,
* },
* AttackTechniques = new[]
* {
* "T1595",
* },
* Description = "Log4J Hunt Description",
* DisplayName = "Log4J new hunt",
* HuntId = "163e7b2a-a2ec-4041-aaba-d878a38f265f",
* HypothesisStatus = AzureNative.SecurityInsights.HypothesisStatus.Unknown,
* Labels = new[]
* {
* "Label1",
* "Label2",
* },
* Owner = new AzureNative.SecurityInsights.Inputs.HuntOwnerArgs
* {
* ObjectId = "873b5263-5d34-4149-b356-ad341b01e123",
* },
* ResourceGroupName = "myRg",
* Status = AzureNative.SecurityInsights.Status.New,
* WorkspaceName = "myWorkspace",
* });
* });
* ```
* ```go
* package main
* import (
* securityinsights "github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := securityinsights.NewHunt(ctx, "hunt", &securityinsights.HuntArgs{
* AttackTactics: pulumi.StringArray{
* pulumi.String(securityinsights.AttackTacticReconnaissance),
* },
* AttackTechniques: pulumi.StringArray{
* pulumi.String("T1595"),
* },
* Description: pulumi.String("Log4J Hunt Description"),
* DisplayName: pulumi.String("Log4J new hunt"),
* HuntId: pulumi.String("163e7b2a-a2ec-4041-aaba-d878a38f265f"),
* HypothesisStatus: pulumi.String(securityinsights.HypothesisStatusUnknown),
* Labels: pulumi.StringArray{
* pulumi.String("Label1"),
* pulumi.String("Label2"),
* },
* Owner: &securityinsights.HuntOwnerArgs{
* ObjectId: pulumi.String("873b5263-5d34-4149-b356-ad341b01e123"),
* },
* ResourceGroupName: pulumi.String("myRg"),
* Status: pulumi.String(securityinsights.StatusNew),
* WorkspaceName: pulumi.String("myWorkspace"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.securityinsights.Hunt;
* import com.pulumi.azurenative.securityinsights.HuntArgs;
* import com.pulumi.azurenative.securityinsights.inputs.HuntOwnerArgs;
* 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 hunt = new Hunt("hunt", HuntArgs.builder()
* .attackTactics("Reconnaissance")
* .attackTechniques("T1595")
* .description("Log4J Hunt Description")
* .displayName("Log4J new hunt")
* .huntId("163e7b2a-a2ec-4041-aaba-d878a38f265f")
* .hypothesisStatus("Unknown")
* .labels(
* "Label1",
* "Label2")
* .owner(HuntOwnerArgs.builder()
* .objectId("873b5263-5d34-4149-b356-ad341b01e123")
* .build())
* .resourceGroupName("myRg")
* .status("New")
* .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:Hunt 163e7b2a-a2ec-4041-aaba-d878a38f265f /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/hunts/{huntId}
* ```
* @property attackTactics A list of mitre attack tactics the hunt is associated with
* @property attackTechniques A list of a mitre attack techniques the hunt is associated with
* @property description The description of the hunt
* @property displayName The display name of the hunt
* @property huntId The hunt id (GUID)
* @property hypothesisStatus The hypothesis status of the hunt.
* @property labels List of labels relevant to this hunt
* @property owner Describes a user that the hunt is assigned to
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property status The status of the hunt.
* @property workspaceName The name of the workspace.
*/
public data class HuntArgs(
public val attackTactics: Output>>? = null,
public val attackTechniques: Output>? = null,
public val description: Output? = null,
public val displayName: Output? = null,
public val huntId: Output? = null,
public val hypothesisStatus: Output>? = null,
public val labels: Output>? = null,
public val owner: Output? = null,
public val resourceGroupName: Output? = null,
public val status: Output>? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.securityinsights.HuntArgs =
com.pulumi.azurenative.securityinsights.HuntArgs.builder()
.attackTactics(
attackTactics?.applyValue({ args0 ->
args0.map({ args0 ->
args0.transform({ args0 ->
args0
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
})
}),
)
.attackTechniques(attackTechniques?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.description(description?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.huntId(huntId?.applyValue({ args0 -> args0 }))
.hypothesisStatus(
hypothesisStatus?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.owner(owner?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.status(
status?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HuntArgs].
*/
@PulumiTagMarker
public class HuntArgsBuilder internal constructor() {
private var attackTactics: Output>>? = null
private var attackTechniques: Output>? = null
private var description: Output? = null
private var displayName: Output? = null
private var huntId: Output? = null
private var hypothesisStatus: Output>? = null
private var labels: Output>? = null
private var owner: Output? = null
private var resourceGroupName: Output? = null
private var status: Output>? = null
private var workspaceName: Output? = null
/**
* @param value A list of mitre attack tactics the hunt is associated with
*/
@JvmName("xenhavctpsicsmbu")
public suspend fun attackTactics(`value`: Output>>) {
this.attackTactics = value
}
@JvmName("pgjswqsucyvfxboo")
public suspend fun attackTactics(vararg values: Output>) {
this.attackTactics = Output.all(values.asList())
}
/**
* @param values A list of mitre attack tactics the hunt is associated with
*/
@JvmName("uhbftwdpuvqwdvnh")
public suspend fun attackTactics(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy