![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.securityinsights.kotlin.MetadataArgs.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.MetadataArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataAuthorArgs
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataAuthorArgsBuilder
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataCategoriesArgs
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataCategoriesArgsBuilder
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataDependenciesArgs
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataDependenciesArgsBuilder
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataSourceArgs
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataSourceArgsBuilder
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataSupportArgs
import com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataSupportArgsBuilder
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
/**
* Metadata resource definition.
* Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2021-03-01-preview.
* Other available API versions: 2021-03-01-preview, 2023-02-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.
* ## Example Usage
* ### Create/update minimal metadata.
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var metadata = new AzureNative.SecurityInsights.Metadata("metadata", new()
* {
* ContentId = "c00ee137-7475-47c8-9cce-ec6f0f1bedd0",
* Kind = "AnalyticsRule",
* MetadataName = "metadataName",
* ParentId = "/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName",
* ResourceGroupName = "myRg",
* 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.NewMetadata(ctx, "metadata", &securityinsights.MetadataArgs{
* ContentId: pulumi.String("c00ee137-7475-47c8-9cce-ec6f0f1bedd0"),
* Kind: pulumi.String("AnalyticsRule"),
* MetadataName: pulumi.String("metadataName"),
* ParentId: pulumi.String("/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName"),
* ResourceGroupName: pulumi.String("myRg"),
* 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.Metadata;
* import com.pulumi.azurenative.securityinsights.MetadataArgs;
* 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 metadata = new Metadata("metadata", MetadataArgs.builder()
* .contentId("c00ee137-7475-47c8-9cce-ec6f0f1bedd0")
* .kind("AnalyticsRule")
* .metadataName("metadataName")
* .parentId("/subscriptions/2e1dc338-d04d-4443-b721-037eff4fdcac/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/ruleName")
* .resourceGroupName("myRg")
* .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:Metadata metadataName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/metadata/{metadataName}
* ```
* @property author The creator of the content item.
* @property categories Categories for the solution content item
* @property contentId Static ID for the content. Used to identify dependencies and content from solutions or community. Hard-coded/static for out of the box content and solutions. Dynamic for user-created. This is the resource name
* @property contentSchemaVersion Schema version of the content. Can be used to distinguish between different flow based on the schema version
* @property customVersion The custom version of the content. A optional free text
* @property dependencies Dependencies for the content item, what other content items it requires to work. Can describe more complex dependencies using a recursive/nested structure. For a single dependency an id/kind/version can be supplied or operator/criteria for complex formats.
* @property firstPublishDate first publish date solution content item
* @property icon the icon identifier. this id can later be fetched from the solution template
* @property kind The kind of content the metadata is for.
* @property lastPublishDate last publish date for the solution content item
* @property metadataName The Metadata name.
* @property parentId Full parent resource ID of the content item the metadata is for. This is the full resource ID including the scope (subscription and resource group)
* @property previewImages preview image file names. These will be taken from the solution artifacts
* @property previewImagesDark preview image file names. These will be taken from the solution artifacts. used for dark theme support
* @property providers Providers for the solution content item
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property source Source of the content. This is where/how it was created.
* @property support Support information for the metadata - type, name, contact information
* @property threatAnalysisTactics the tactics the resource covers
* @property threatAnalysisTechniques the techniques the resource covers, these have to be aligned with the tactics being used
* @property version Version of the content. Default and recommended format is numeric (e.g. 1, 1.0, 1.0.0, 1.0.0.0), following ARM template best practices. Can also be any string, but then we cannot guarantee any version checks
* @property workspaceName The name of the workspace.
*/
public data class MetadataArgs(
public val author: Output? = null,
public val categories: Output? = null,
public val contentId: Output? = null,
public val contentSchemaVersion: Output? = null,
public val customVersion: Output? = null,
public val dependencies: Output? = null,
public val firstPublishDate: Output? = null,
public val icon: Output? = null,
public val kind: Output? = null,
public val lastPublishDate: Output? = null,
public val metadataName: Output? = null,
public val parentId: Output? = null,
public val previewImages: Output>? = null,
public val previewImagesDark: Output>? = null,
public val providers: Output>? = null,
public val resourceGroupName: Output? = null,
public val source: Output? = null,
public val support: Output? = null,
public val threatAnalysisTactics: Output>? = null,
public val threatAnalysisTechniques: Output>? = null,
public val version: Output? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.securityinsights.MetadataArgs =
com.pulumi.azurenative.securityinsights.MetadataArgs.builder()
.author(author?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.categories(categories?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.contentId(contentId?.applyValue({ args0 -> args0 }))
.contentSchemaVersion(contentSchemaVersion?.applyValue({ args0 -> args0 }))
.customVersion(customVersion?.applyValue({ args0 -> args0 }))
.dependencies(dependencies?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.firstPublishDate(firstPublishDate?.applyValue({ args0 -> args0 }))
.icon(icon?.applyValue({ args0 -> args0 }))
.kind(kind?.applyValue({ args0 -> args0 }))
.lastPublishDate(lastPublishDate?.applyValue({ args0 -> args0 }))
.metadataName(metadataName?.applyValue({ args0 -> args0 }))
.parentId(parentId?.applyValue({ args0 -> args0 }))
.previewImages(previewImages?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.previewImagesDark(previewImagesDark?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.providers(providers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.source(source?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.support(support?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.threatAnalysisTactics(threatAnalysisTactics?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.threatAnalysisTechniques(
threatAnalysisTechniques?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.version(version?.applyValue({ args0 -> args0 }))
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MetadataArgs].
*/
@PulumiTagMarker
public class MetadataArgsBuilder internal constructor() {
private var author: Output? = null
private var categories: Output? = null
private var contentId: Output? = null
private var contentSchemaVersion: Output? = null
private var customVersion: Output? = null
private var dependencies: Output? = null
private var firstPublishDate: Output? = null
private var icon: Output? = null
private var kind: Output? = null
private var lastPublishDate: Output? = null
private var metadataName: Output? = null
private var parentId: Output? = null
private var previewImages: Output>? = null
private var previewImagesDark: Output>? = null
private var providers: Output>? = null
private var resourceGroupName: Output? = null
private var source: Output? = null
private var support: Output? = null
private var threatAnalysisTactics: Output>? = null
private var threatAnalysisTechniques: Output>? = null
private var version: Output? = null
private var workspaceName: Output? = null
/**
* @param value The creator of the content item.
*/
@JvmName("ifulldldtvfljcni")
public suspend fun author(`value`: Output) {
this.author = value
}
/**
* @param value Categories for the solution content item
*/
@JvmName("ahcsvjqapysdibaj")
public suspend fun categories(`value`: Output) {
this.categories = value
}
/**
* @param value Static ID for the content. Used to identify dependencies and content from solutions or community. Hard-coded/static for out of the box content and solutions. Dynamic for user-created. This is the resource name
*/
@JvmName("uyrsrtxtqhvybjtp")
public suspend fun contentId(`value`: Output) {
this.contentId = value
}
/**
* @param value Schema version of the content. Can be used to distinguish between different flow based on the schema version
*/
@JvmName("erdylarmpmybvbxb")
public suspend fun contentSchemaVersion(`value`: Output) {
this.contentSchemaVersion = value
}
/**
* @param value The custom version of the content. A optional free text
*/
@JvmName("duwdvjgfelhuwaqd")
public suspend fun customVersion(`value`: Output) {
this.customVersion = value
}
/**
* @param value Dependencies for the content item, what other content items it requires to work. Can describe more complex dependencies using a recursive/nested structure. For a single dependency an id/kind/version can be supplied or operator/criteria for complex formats.
*/
@JvmName("bgnkpglrlajyqcdx")
public suspend fun dependencies(`value`: Output) {
this.dependencies = value
}
/**
* @param value first publish date solution content item
*/
@JvmName("awyqqdivksoqiefu")
public suspend fun firstPublishDate(`value`: Output) {
this.firstPublishDate = value
}
/**
* @param value the icon identifier. this id can later be fetched from the solution template
*/
@JvmName("xtvowlvoliowocad")
public suspend fun icon(`value`: Output) {
this.icon = value
}
/**
* @param value The kind of content the metadata is for.
*/
@JvmName("gdgaeqmhfesodmwt")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value last publish date for the solution content item
*/
@JvmName("utuekhyemsuaspyt")
public suspend fun lastPublishDate(`value`: Output) {
this.lastPublishDate = value
}
/**
* @param value The Metadata name.
*/
@JvmName("mkxrsxygjvsewlar")
public suspend fun metadataName(`value`: Output) {
this.metadataName = value
}
/**
* @param value Full parent resource ID of the content item the metadata is for. This is the full resource ID including the scope (subscription and resource group)
*/
@JvmName("vlrkgiicvpgdwfeo")
public suspend fun parentId(`value`: Output) {
this.parentId = value
}
/**
* @param value preview image file names. These will be taken from the solution artifacts
*/
@JvmName("iybculelkipikkrv")
public suspend fun previewImages(`value`: Output>) {
this.previewImages = value
}
@JvmName("bguglhdevsyqjqrj")
public suspend fun previewImages(vararg values: Output) {
this.previewImages = Output.all(values.asList())
}
/**
* @param values preview image file names. These will be taken from the solution artifacts
*/
@JvmName("mytloavypycowrvv")
public suspend fun previewImages(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy