import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Azure Workbook. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleWorkbook = new azure.appinsights.Workbook("example", { * name: "85b3e8bb-fc93-40be-83f2-98f6bec18ba0", * resourceGroupName: example.name, * location: example.location, * displayName: "workbook1", * dataJson: JSON.stringify({ * version: "Notebook/1.0", * items: [{ * type: 1, * content: { * json: "Test2022", * }, * name: "text - 0", * }], * isLocked: false, * fallbackResourceIds: ["Azure Monitor"], * }), * tags: { * ENV: "Test", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Insights` - 2022-04-01 * * ## 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 * ``` */ export declare class Workbook extends pulumi.CustomResource { /** * Get an existing Workbook 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 Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: WorkbookState, opts?: pulumi.CustomResourceOptions): Workbook; /** * Returns true if the given object is an instance of Workbook. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Workbook; /** * Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`. */ readonly category: pulumi.Output; /** * Configuration of this particular workbook. Configuration data is a string containing valid JSON. */ readonly dataJson: pulumi.Output; /** * Specifies the description of the workbook. */ readonly description: pulumi.Output; /** * Specifies the user-defined name (display name) of the workbook. */ readonly displayName: pulumi.Output; /** * An `identity` block as defined below. Changing this forces a new Workbook to be created. */ readonly identity: pulumi.Output; /** * Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created. */ readonly location: pulumi.Output; /** * 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. */ readonly name: pulumi.Output; /** * Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created. */ readonly resourceGroupName: pulumi.Output; /** * Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`. */ readonly sourceId: pulumi.Output; /** * 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 `resourceManagerId`. */ readonly storageContainerId: pulumi.Output; /** * A mapping of tags which should be assigned to the Workbook. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a Workbook resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: WorkbookArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Workbook resources. */ export interface WorkbookState { /** * Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`. */ category?: pulumi.Input; /** * Configuration of this particular workbook. Configuration data is a string containing valid JSON. */ dataJson?: pulumi.Input; /** * Specifies the description of the workbook. */ description?: pulumi.Input; /** * Specifies the user-defined name (display name) of the workbook. */ displayName?: pulumi.Input; /** * An `identity` block as defined below. Changing this forces a new Workbook to be created. */ identity?: pulumi.Input; /** * Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created. */ location?: pulumi.Input; /** * 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. */ name?: pulumi.Input; /** * Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created. */ resourceGroupName?: pulumi.Input; /** * Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`. */ sourceId?: pulumi.Input; /** * 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 `resourceManagerId`. */ storageContainerId?: pulumi.Input; /** * A mapping of tags which should be assigned to the Workbook. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a Workbook resource. */ export interface WorkbookArgs { /** * Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`. */ category?: pulumi.Input; /** * Configuration of this particular workbook. Configuration data is a string containing valid JSON. */ dataJson: pulumi.Input; /** * Specifies the description of the workbook. */ description?: pulumi.Input; /** * Specifies the user-defined name (display name) of the workbook. */ displayName: pulumi.Input; /** * An `identity` block as defined below. Changing this forces a new Workbook to be created. */ identity?: pulumi.Input; /** * Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created. */ location?: pulumi.Input; /** * 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. */ name?: pulumi.Input; /** * Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created. */ resourceGroupName: pulumi.Input; /** * Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`. */ sourceId?: pulumi.Input; /** * 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 `resourceManagerId`. */ storageContainerId?: pulumi.Input; /** * A mapping of tags which should be assigned to the Workbook. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }