import * as pulumi from "@pulumi/pulumi"; /** * Manages an Azure Monitor Workspace. * * ## 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 exampleWorkspace = new azure.monitoring.Workspace("example", { * name: "example-mamw", * resourceGroupName: example.name, * location: "West Europe", * tags: { * key: "value", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Monitor` - 2023-04-03 * * ## Import * * Azure Monitor Workspace can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:monitoring/workspace:Workspace example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Monitor/accounts/azureMonitorWorkspace1 * ``` */ export declare class Workspace extends pulumi.CustomResource { /** * Get an existing Workspace 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?: WorkspaceState, opts?: pulumi.CustomResourceOptions): Workspace; /** * Returns true if the given object is an instance of Workspace. 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 Workspace; /** * The ID of the managed default Data Collection Endpoint created with the Azure Monitor Workspace. */ readonly defaultDataCollectionEndpointId: pulumi.Output; /** * The ID of the managed default Data Collection Rule created with the Azure Monitor Workspace. */ readonly defaultDataCollectionRuleId: pulumi.Output; /** * Specifies the Azure Region where the Azure Monitor Workspace should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Specifies the name which should be used for this Azure Monitor Workspace. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Is public network access enabled? Defaults to `true`. */ readonly publicNetworkAccessEnabled: pulumi.Output; /** * The query endpoint for the Azure Monitor Workspace. */ readonly queryEndpoint: pulumi.Output; /** * Specifies the name of the Resource Group where the Azure Monitor Workspace should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags which should be assigned to the Azure Monitor Workspace. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a Workspace 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: WorkspaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Workspace resources. */ export interface WorkspaceState { /** * The ID of the managed default Data Collection Endpoint created with the Azure Monitor Workspace. */ defaultDataCollectionEndpointId?: pulumi.Input; /** * The ID of the managed default Data Collection Rule created with the Azure Monitor Workspace. */ defaultDataCollectionRuleId?: pulumi.Input; /** * Specifies the Azure Region where the Azure Monitor Workspace should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this Azure Monitor Workspace. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Is public network access enabled? Defaults to `true`. */ publicNetworkAccessEnabled?: pulumi.Input; /** * The query endpoint for the Azure Monitor Workspace. */ queryEndpoint?: pulumi.Input; /** * Specifies the name of the Resource Group where the Azure Monitor Workspace should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags which should be assigned to the Azure Monitor Workspace. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a Workspace resource. */ export interface WorkspaceArgs { /** * Specifies the Azure Region where the Azure Monitor Workspace should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name which should be used for this Azure Monitor Workspace. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Is public network access enabled? Defaults to `true`. */ publicNetworkAccessEnabled?: pulumi.Input; /** * Specifies the name of the Resource Group where the Azure Monitor Workspace should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags which should be assigned to the Azure Monitor Workspace. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }