Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.securityinsights.kotlin
import com.pulumi.azurenative.securityinsights.ContentPackageArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.enums.Flag
import com.pulumi.azurenative.securityinsights.kotlin.enums.PackageKind
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.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 Package 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-11-01, 2023-12-01-preview, 2024-01-01-preview, 2024-03-01.
* ## Example Usage
* ### Install a package to the workspace.
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var contentPackage = new AzureNative.SecurityInsights.ContentPackage("contentPackage", new()
* {
* ContentId = "str.azure-sentinel-solution-str",
* ContentKind = AzureNative.SecurityInsights.PackageKind.Solution,
* DisplayName = "str",
* PackageId = "str.azure-sentinel-solution-str",
* ResourceGroupName = "myRg",
* Version = "2.0.0",
* 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.NewContentPackage(ctx, "contentPackage", &securityinsights.ContentPackageArgs{
* ContentId: pulumi.String("str.azure-sentinel-solution-str"),
* ContentKind: pulumi.String(securityinsights.PackageKindSolution),
* DisplayName: pulumi.String("str"),
* PackageId: pulumi.String("str.azure-sentinel-solution-str"),
* ResourceGroupName: pulumi.String("myRg"),
* Version: pulumi.String("2.0.0"),
* 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.ContentPackage;
* import com.pulumi.azurenative.securityinsights.ContentPackageArgs;
* 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 contentPackage = new ContentPackage("contentPackage", ContentPackageArgs.builder()
* .contentId("str.azure-sentinel-solution-str")
* .contentKind("Solution")
* .displayName("str")
* .packageId("str.azure-sentinel-solution-str")
* .resourceGroupName("myRg")
* .version("2.0.0")
* .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:ContentPackage str.azure-sentinel-solution-str /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/contentPackages/{packageId}
* ```
* @property author The author of the package
* @property categories The categories of the package
* @property contentId The package id
* @property contentKind The package kind
* @property contentSchemaVersion The version of the content schema.
* @property dependencies The support tier of the package
* @property description The description of the package
* @property displayName The display name of the package
* @property firstPublishDate first publish date package item
* @property icon the icon identifier. this id can later be fetched from the content metadata
* @property isFeatured Flag indicates if this package is among the featured list.
* @property isNew Flag indicates if this is a newly published package.
* @property isPreview Flag indicates if this package is in preview.
* @property lastPublishDate last publish date for the package item
* @property packageId package Id
* @property providers Providers for the package item
* @property publisherDisplayName The publisher display name of the package
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property source The source of the package
* @property support The support tier of the package
* @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 the latest version number of the package
* @property workspaceName The name of the workspace.
*/
public data class ContentPackageArgs(
public val author: Output? = null,
public val categories: Output? = null,
public val contentId: Output? = null,
public val contentKind: Output>? = null,
public val contentSchemaVersion: Output? = null,
public val dependencies: Output? = null,
public val description: Output? = null,
public val displayName: Output? = null,
public val firstPublishDate: Output? = null,
public val icon: Output? = null,
public val isFeatured: Output>? = null,
public val isNew: Output>? = null,
public val isPreview: Output>? = null,
public val lastPublishDate: Output? = null,
public val packageId: Output? = null,
public val providers: Output>? = null,
public val publisherDisplayName: 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.ContentPackageArgs =
com.pulumi.azurenative.securityinsights.ContentPackageArgs.builder()
.author(author?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.categories(categories?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.contentId(contentId?.applyValue({ args0 -> args0 }))
.contentKind(
contentKind?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.contentSchemaVersion(contentSchemaVersion?.applyValue({ args0 -> args0 }))
.dependencies(dependencies?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.description(description?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.firstPublishDate(firstPublishDate?.applyValue({ args0 -> args0 }))
.icon(icon?.applyValue({ args0 -> args0 }))
.isFeatured(
isFeatured?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.isNew(
isNew?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.isPreview(
isPreview?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.lastPublishDate(lastPublishDate?.applyValue({ args0 -> args0 }))
.packageId(packageId?.applyValue({ args0 -> args0 }))
.providers(providers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.publisherDisplayName(publisherDisplayName?.applyValue({ 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 [ContentPackageArgs].
*/
@PulumiTagMarker
public class ContentPackageArgsBuilder internal constructor() {
private var author: Output? = null
private var categories: Output? = null
private var contentId: Output? = null
private var contentKind: Output>? = null
private var contentSchemaVersion: Output? = null
private var dependencies: Output? = null
private var description: Output? = null
private var displayName: Output? = null
private var firstPublishDate: Output? = null
private var icon: Output? = null
private var isFeatured: Output>? = null
private var isNew: Output>? = null
private var isPreview: Output>? = null
private var lastPublishDate: Output? = null
private var packageId: Output? = null
private var providers: Output>? = null
private var publisherDisplayName: 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 author of the package
*/
@JvmName("umerbgjjflobsbmy")
public suspend fun author(`value`: Output) {
this.author = value
}
/**
* @param value The categories of the package
*/
@JvmName("ywrfenabapyrcsjk")
public suspend fun categories(`value`: Output) {
this.categories = value
}
/**
* @param value The package id
*/
@JvmName("kcvdfrjebpvxrswf")
public suspend fun contentId(`value`: Output) {
this.contentId = value
}
/**
* @param value The package kind
*/
@JvmName("wnlwlqcpwrtvrqvl")
public suspend fun contentKind(`value`: Output>) {
this.contentKind = value
}
/**
* @param value The version of the content schema.
*/
@JvmName("qtjohrewhfdqiabx")
public suspend fun contentSchemaVersion(`value`: Output) {
this.contentSchemaVersion = value
}
/**
* @param value The support tier of the package
*/
@JvmName("ikfatfuusslbwiba")
public suspend fun dependencies(`value`: Output) {
this.dependencies = value
}
/**
* @param value The description of the package
*/
@JvmName("pwrmqfwhjedlrmar")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The display name of the package
*/
@JvmName("gasnoqmicjhegqyw")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value first publish date package item
*/
@JvmName("bcgoinadaadhsudu")
public suspend fun firstPublishDate(`value`: Output) {
this.firstPublishDate = value
}
/**
* @param value the icon identifier. this id can later be fetched from the content metadata
*/
@JvmName("yetbbgqdhrrjitvh")
public suspend fun icon(`value`: Output) {
this.icon = value
}
/**
* @param value Flag indicates if this package is among the featured list.
*/
@JvmName("teehrblirnkxaegu")
public suspend fun isFeatured(`value`: Output>) {
this.isFeatured = value
}
/**
* @param value Flag indicates if this is a newly published package.
*/
@JvmName("nevxikgpmwlrhyrc")
public suspend fun isNew(`value`: Output>) {
this.isNew = value
}
/**
* @param value Flag indicates if this package is in preview.
*/
@JvmName("tjmoegnygnlhbvtm")
public suspend fun isPreview(`value`: Output>) {
this.isPreview = value
}
/**
* @param value last publish date for the package item
*/
@JvmName("cgdxnkdwipuvkdcf")
public suspend fun lastPublishDate(`value`: Output) {
this.lastPublishDate = value
}
/**
* @param value package Id
*/
@JvmName("nweusspgdgneavlb")
public suspend fun packageId(`value`: Output) {
this.packageId = value
}
/**
* @param value Providers for the package item
*/
@JvmName("unrgpjugyfnwiity")
public suspend fun providers(`value`: Output>) {
this.providers = value
}
@JvmName("swxagndljlsrucnp")
public suspend fun providers(vararg values: Output) {
this.providers = Output.all(values.asList())
}
/**
* @param values Providers for the package item
*/
@JvmName("qmgfatsepivmcjmr")
public suspend fun providers(values: List