com.pulumi.azurenative.securityinsights.Metadata 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.MetadataArgs;
import com.pulumi.azurenative.securityinsights.outputs.MetadataAuthorResponse;
import com.pulumi.azurenative.securityinsights.outputs.MetadataCategoriesResponse;
import com.pulumi.azurenative.securityinsights.outputs.MetadataDependenciesResponse;
import com.pulumi.azurenative.securityinsights.outputs.MetadataSourceResponse;
import com.pulumi.azurenative.securityinsights.outputs.MetadataSupportResponse;
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.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* 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, 2024-04-01-preview.
*
* ## Example Usage
* ### Create/update minimal metadata.
*
*
* {@code
* 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}
* ```
*
*/
@ResourceType(type="azure-native:securityinsights:Metadata")
public class Metadata extends com.pulumi.resources.CustomResource {
/**
* The creator of the content item.
*
*/
@Export(name="author", refs={MetadataAuthorResponse.class}, tree="[0]")
private Output* @Nullable */ MetadataAuthorResponse> author;
/**
* @return The creator of the content item.
*
*/
public Output> author() {
return Codegen.optional(this.author);
}
/**
* Categories for the solution content item
*
*/
@Export(name="categories", refs={MetadataCategoriesResponse.class}, tree="[0]")
private Output* @Nullable */ MetadataCategoriesResponse> categories;
/**
* @return Categories for the solution content item
*
*/
public Output> categories() {
return Codegen.optional(this.categories);
}
/**
* 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
*
*/
@Export(name="contentId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> contentId;
/**
* @return 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
*
*/
public Output> contentId() {
return Codegen.optional(this.contentId);
}
/**
* Schema version of the content. Can be used to distinguish between different flow based on the schema version
*
*/
@Export(name="contentSchemaVersion", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> contentSchemaVersion;
/**
* @return Schema version of the content. Can be used to distinguish between different flow based on the schema version
*
*/
public Output> contentSchemaVersion() {
return Codegen.optional(this.contentSchemaVersion);
}
/**
* The custom version of the content. A optional free text
*
*/
@Export(name="customVersion", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> customVersion;
/**
* @return The custom version of the content. A optional free text
*
*/
public Output> customVersion() {
return Codegen.optional(this.customVersion);
}
/**
* 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.
*
*/
@Export(name="dependencies", refs={MetadataDependenciesResponse.class}, tree="[0]")
private Output* @Nullable */ MetadataDependenciesResponse> dependencies;
/**
* @return 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.
*
*/
public Output> dependencies() {
return Codegen.optional(this.dependencies);
}
/**
* 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);
}
/**
* first publish date solution content item
*
*/
@Export(name="firstPublishDate", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> firstPublishDate;
/**
* @return first publish date solution content item
*
*/
public Output> firstPublishDate() {
return Codegen.optional(this.firstPublishDate);
}
/**
* the icon identifier. this id can later be fetched from the solution template
*
*/
@Export(name="icon", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> icon;
/**
* @return the icon identifier. this id can later be fetched from the solution template
*
*/
public Output> icon() {
return Codegen.optional(this.icon);
}
/**
* The kind of content the metadata is for.
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output kind;
/**
* @return The kind of content the metadata is for.
*
*/
public Output kind() {
return this.kind;
}
/**
* last publish date for the solution content item
*
*/
@Export(name="lastPublishDate", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> lastPublishDate;
/**
* @return last publish date for the solution content item
*
*/
public Output> lastPublishDate() {
return Codegen.optional(this.lastPublishDate);
}
/**
* 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;
}
/**
* 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)
*
*/
@Export(name="parentId", refs={String.class}, tree="[0]")
private Output parentId;
/**
* @return 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)
*
*/
public Output parentId() {
return this.parentId;
}
/**
* preview image file names. These will be taken from the solution artifacts
*
*/
@Export(name="previewImages", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> previewImages;
/**
* @return preview image file names. These will be taken from the solution artifacts
*
*/
public Output>> previewImages() {
return Codegen.optional(this.previewImages);
}
/**
* preview image file names. These will be taken from the solution artifacts. used for dark theme support
*
*/
@Export(name="previewImagesDark", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> previewImagesDark;
/**
* @return preview image file names. These will be taken from the solution artifacts. used for dark theme support
*
*/
public Output>> previewImagesDark() {
return Codegen.optional(this.previewImagesDark);
}
/**
* Providers for the solution content item
*
*/
@Export(name="providers", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> providers;
/**
* @return Providers for the solution content item
*
*/
public Output>> providers() {
return Codegen.optional(this.providers);
}
/**
* Source of the content. This is where/how it was created.
*
*/
@Export(name="source", refs={MetadataSourceResponse.class}, tree="[0]")
private Output* @Nullable */ MetadataSourceResponse> source;
/**
* @return Source of the content. This is where/how it was created.
*
*/
public Output> source() {
return Codegen.optional(this.source);
}
/**
* Support information for the metadata - type, name, contact information
*
*/
@Export(name="support", refs={MetadataSupportResponse.class}, tree="[0]")
private Output* @Nullable */ MetadataSupportResponse> support;
/**
* @return Support information for the metadata - type, name, contact information
*
*/
public Output> support() {
return Codegen.optional(this.support);
}
/**
* 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 tactics the resource covers
*
*/
@Export(name="threatAnalysisTactics", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> threatAnalysisTactics;
/**
* @return the tactics the resource covers
*
*/
public Output>> threatAnalysisTactics() {
return Codegen.optional(this.threatAnalysisTactics);
}
/**
* the techniques the resource covers, these have to be aligned with the tactics being used
*
*/
@Export(name="threatAnalysisTechniques", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> threatAnalysisTechniques;
/**
* @return the techniques the resource covers, these have to be aligned with the tactics being used
*
*/
public Output>> threatAnalysisTechniques() {
return Codegen.optional(this.threatAnalysisTechniques);
}
/**
* 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;
}
/**
* 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
*
*/
@Export(name="version", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> version;
/**
* @return 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
*
*/
public Output> version() {
return Codegen.optional(this.version);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Metadata(java.lang.String name) {
this(name, MetadataArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Metadata(java.lang.String name, MetadataArgs 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 Metadata(java.lang.String name, MetadataArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:securityinsights:Metadata", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Metadata(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:securityinsights:Metadata", name, null, makeResourceOptions(options, id), false);
}
private static MetadataArgs makeArgs(MetadataArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? MetadataArgs.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/v20210301preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20210901preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20211001preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220101preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220401preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220501preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220601preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220701preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220801preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20220901preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20221001preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20221101preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20221201preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230201:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230201preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230301preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230401preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230501preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230601preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230701preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230801preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20230901preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20231001preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20231101:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20231201preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20240101preview:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20240301:Metadata").build()),
Output.of(Alias.builder().type("azure-native:securityinsights/v20240401preview:Metadata").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 Metadata get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Metadata(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy