All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.appinsights.Workbook Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.15.0
Show newest version
// *** 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.azure.appinsights;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.appinsights.WorkbookArgs;
import com.pulumi.azure.appinsights.inputs.WorkbookState;
import com.pulumi.azure.appinsights.outputs.WorkbookIdentity;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages an Azure Workbook.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.appinsights.Workbook;
 * import com.pulumi.azure.appinsights.WorkbookArgs;
 * import static com.pulumi.codegen.internal.Serialization.*;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 * 
 *         var exampleWorkbook = new Workbook("exampleWorkbook", WorkbookArgs.builder()
 *             .name("85b3e8bb-fc93-40be-83f2-98f6bec18ba0")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .displayName("workbook1")
 *             .dataJson(serializeJson(
 *                 jsonObject(
 *                     jsonProperty("version", "Notebook/1.0"),
 *                     jsonProperty("items", jsonArray(jsonObject(
 *                         jsonProperty("type", 1),
 *                         jsonProperty("content", jsonObject(
 *                             jsonProperty("json", "Test2022")
 *                         )),
 *                         jsonProperty("name", "text - 0")
 *                     ))),
 *                     jsonProperty("isLocked", false),
 *                     jsonProperty("fallbackResourceIds", jsonArray("Azure Monitor"))
 *                 )))
 *             .tags(Map.of("ENV", "Test"))
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Workbooks can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appinsights/workbook:Workbook example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Insights/workbooks/resource1 * ``` * */ @ResourceType(type="azure:appinsights/workbook:Workbook") public class Workbook extends com.pulumi.resources.CustomResource { /** * Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`. * */ @Export(name="category", refs={String.class}, tree="[0]") private Output category; /** * @return Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`. * */ public Output> category() { return Codegen.optional(this.category); } /** * Configuration of this particular workbook. Configuration data is a string containing valid JSON. * */ @Export(name="dataJson", refs={String.class}, tree="[0]") private Output dataJson; /** * @return Configuration of this particular workbook. Configuration data is a string containing valid JSON. * */ public Output dataJson() { return this.dataJson; } /** * Specifies the description of the workbook. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Specifies the description of the workbook. * */ public Output> description() { return Codegen.optional(this.description); } /** * Specifies the user-defined name (display name) of the workbook. * */ @Export(name="displayName", refs={String.class}, tree="[0]") private Output displayName; /** * @return Specifies the user-defined name (display name) of the workbook. * */ public Output displayName() { return this.displayName; } /** * An `identity` block as defined below. Changing this forces a new Workbook to be created. * */ @Export(name="identity", refs={WorkbookIdentity.class}, tree="[0]") private Output identity; /** * @return An `identity` block as defined below. Changing this forces a new Workbook to be created. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created. * */ public Output location() { return this.location; } /** * Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created. * */ public Output name() { return this.name; } /** * Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created. * */ @Export(name="resourceGroupName", refs={String.class}, tree="[0]") private Output resourceGroupName; /** * @return Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created. * */ public Output resourceGroupName() { return this.resourceGroupName; } /** * Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`. * */ @Export(name="sourceId", refs={String.class}, tree="[0]") private Output sourceId; /** * @return Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`. * */ public Output> sourceId() { return Codegen.optional(this.sourceId); } /** * Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created. * * > **Note:** This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the `azure.storage.Container` Data Source/Resource as `resource_manager_id`. * */ @Export(name="storageContainerId", refs={String.class}, tree="[0]") private Output storageContainerId; /** * @return Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created. * * > **Note:** This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the `azure.storage.Container` Data Source/Resource as `resource_manager_id`. * */ public Output> storageContainerId() { return Codegen.optional(this.storageContainerId); } /** * A mapping of tags which should be assigned to the Workbook. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return A mapping of tags which should be assigned to the Workbook. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * * @param name The _unique_ name of the resulting resource. */ public Workbook(java.lang.String name) { this(name, WorkbookArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Workbook(java.lang.String name, WorkbookArgs 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 Workbook(java.lang.String name, WorkbookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:appinsights/workbook:Workbook", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Workbook(java.lang.String name, Output id, @Nullable WorkbookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:appinsights/workbook:Workbook", name, state, makeResourceOptions(options, id), false); } private static WorkbookArgs makeArgs(WorkbookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? WorkbookArgs.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()) .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 state * @param options Optional settings to control the behavior of the CustomResource. */ public static Workbook get(java.lang.String name, Output id, @Nullable WorkbookState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Workbook(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy