ContentPackageArgs

data class ContentPackageArgs(val author: Output<MetadataAuthorArgs>? = null, val categories: Output<MetadataCategoriesArgs>? = null, val contentId: Output<String>? = null, val contentKind: Output<Either<String, PackageKind>>? = null, val contentProductId: Output<String>? = null, val contentSchemaVersion: Output<String>? = null, val dependencies: Output<MetadataDependenciesArgs>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val firstPublishDate: Output<String>? = null, val icon: Output<String>? = null, val isDeprecated: Output<Either<String, Flag>>? = null, val isFeatured: Output<Either<String, Flag>>? = null, val isNew: Output<Either<String, Flag>>? = null, val isPreview: Output<Either<String, Flag>>? = null, val lastPublishDate: Output<String>? = null, val packageId: Output<String>? = null, val providers: Output<List<String>>? = null, val publisherDisplayName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val source: Output<MetadataSourceArgs>? = null, val support: Output<MetadataSupportArgs>? = null, val threatAnalysisTactics: Output<List<String>>? = null, val threatAnalysisTechniques: Output<List<String>>? = null, val version: Output<String>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<ContentPackageArgs>

Represents a Package in Azure Security Insights. Uses Azure REST API version 2024-09-01. In version 2.x of the Azure Native provider, it used API version 2023-06-01-preview. Other available API versions: 2023-04-01-preview, 2023-05-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, 2024-10-01-preview, 2025-01-01-preview, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native securityinsights [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Install a package to the workspace.

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,
ContentProductId = "str.azure-sentinel-solution-str-sl-igl6jawr4gwmu",
DisplayName = "str",
PackageId = "str.azure-sentinel-solution-str",
ResourceGroupName = "myRg",
Version = "2.0.0",
WorkspaceName = "myWorkspace",
});
});
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),
ContentProductId: pulumi.String("str.azure-sentinel-solution-str-sl-igl6jawr4gwmu"),
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
})
}
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")
.contentProductId("str.azure-sentinel-solution-str-sl-igl6jawr4gwmu")
.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.

$ 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}

Constructors

Link copied to clipboard
constructor(author: Output<MetadataAuthorArgs>? = null, categories: Output<MetadataCategoriesArgs>? = null, contentId: Output<String>? = null, contentKind: Output<Either<String, PackageKind>>? = null, contentProductId: Output<String>? = null, contentSchemaVersion: Output<String>? = null, dependencies: Output<MetadataDependenciesArgs>? = null, description: Output<String>? = null, displayName: Output<String>? = null, firstPublishDate: Output<String>? = null, icon: Output<String>? = null, isDeprecated: Output<Either<String, Flag>>? = null, isFeatured: Output<Either<String, Flag>>? = null, isNew: Output<Either<String, Flag>>? = null, isPreview: Output<Either<String, Flag>>? = null, lastPublishDate: Output<String>? = null, packageId: Output<String>? = null, providers: Output<List<String>>? = null, publisherDisplayName: Output<String>? = null, resourceGroupName: Output<String>? = null, source: Output<MetadataSourceArgs>? = null, support: Output<MetadataSupportArgs>? = null, threatAnalysisTactics: Output<List<String>>? = null, threatAnalysisTechniques: Output<List<String>>? = null, version: Output<String>? = null, workspaceName: Output<String>? = null)

Properties

Link copied to clipboard
val author: Output<MetadataAuthorArgs>? = null

The author of the package

Link copied to clipboard
val categories: Output<MetadataCategoriesArgs>? = null

The categories of the package

Link copied to clipboard
val contentId: Output<String>? = null

The content id of the package

Link copied to clipboard
val contentKind: Output<Either<String, PackageKind>>? = null

The package kind

Link copied to clipboard
val contentProductId: Output<String>? = null

Unique ID for the content. It should be generated based on the contentId, contentKind and the contentVersion of the package

Link copied to clipboard
val contentSchemaVersion: Output<String>? = null

The version of the content schema.

Link copied to clipboard

The support tier of the package

Link copied to clipboard
val description: Output<String>? = null

The description of the package

Link copied to clipboard
val displayName: Output<String>? = null

The display name of the package

Link copied to clipboard
val firstPublishDate: Output<String>? = null

first publish date package item

Link copied to clipboard
val icon: Output<String>? = null

the icon identifier. this id can later be fetched from the content metadata

Link copied to clipboard
val isDeprecated: Output<Either<String, Flag>>? = null

Flag indicates if this template is deprecated

Link copied to clipboard
val isFeatured: Output<Either<String, Flag>>? = null

Flag indicates if this package is among the featured list.

Link copied to clipboard
val isNew: Output<Either<String, Flag>>? = null

Flag indicates if this is a newly published package.

Link copied to clipboard
val isPreview: Output<Either<String, Flag>>? = null

Flag indicates if this package is in preview.

Link copied to clipboard
val lastPublishDate: Output<String>? = null

last publish date for the package item

Link copied to clipboard
val packageId: Output<String>? = null

package Id

Link copied to clipboard
val providers: Output<List<String>>? = null

Providers for the package item

Link copied to clipboard
val publisherDisplayName: Output<String>? = null

The publisher display name of the package

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val source: Output<MetadataSourceArgs>? = null

The source of the package

Link copied to clipboard
val support: Output<MetadataSupportArgs>? = null

The support tier of the package

Link copied to clipboard
val threatAnalysisTactics: Output<List<String>>? = null

the tactics the resource covers

Link copied to clipboard
val threatAnalysisTechniques: Output<List<String>>? = null

the techniques the resource covers, these have to be aligned with the tactics being used

Link copied to clipboard
val version: Output<String>? = null

the latest version number of the package

Link copied to clipboard
val workspaceName: Output<String>? = null

The name of the workspace.

Functions

Link copied to clipboard
open override fun toJava(): ContentPackageArgs