import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Custom Log Table in a Log Analytics (formally Operational Insights) 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 exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", { * name: "example", * location: example.location, * resourceGroupName: example.name, * sku: "PerGB2018", * retentionInDays: 30, * }); * const exampleWorkspaceTableCustomLog = new azure.loganalytics.WorkspaceTableCustomLog("example", { * name: "example_CL", * workspaceId: exampleAnalyticsWorkspace.id, * columns: [{ * name: "TimeGenerated", * type: "datetime", * }], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.OperationalInsights` - 2022-10-01 * * ## Import * * Log Analytics Workspace Table Custom Logs can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:loganalytics/workspaceTableCustomLog:WorkspaceTableCustomLog example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/tables/table1 * ``` */ export declare class WorkspaceTableCustomLog extends pulumi.CustomResource { /** * Get an existing WorkspaceTableCustomLog 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?: WorkspaceTableCustomLogState, opts?: pulumi.CustomResourceOptions): WorkspaceTableCustomLog; /** * Returns true if the given object is an instance of WorkspaceTableCustomLog. 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 WorkspaceTableCustomLog; /** * One or more `column` blocks as defined below. */ readonly columns: pulumi.Output; /** * The description of the table. */ readonly description: pulumi.Output; /** * The display name of the table. */ readonly displayName: pulumi.Output; /** * Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created. * * > **Note:** `name` must end with `_CL`. */ readonly name: pulumi.Output; /** * Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`. * * > **Note:** Changing the table's `plan` is limited to once a week. */ readonly plan: pulumi.Output; /** * The table's retention in days. Possible values range between `4` and `730`. * * > **Note:** `retentionInDays` cannot be set when `plan` is set to `Basic` because the retention is fixed. */ readonly retentionInDays: pulumi.Output; /** * A list of solutions associated with the table. */ readonly solutions: pulumi.Output; /** * One or more `standardColumn` blocks as defined below. */ readonly standardColumns: pulumi.Output; /** * The table's total retention in days. Possible values range between `4` and `730`; or `1095`, `1460`, `1826`, `2191`, `2556`, `2922`, `3288`, `3653`, `4018`, or `4383`. */ readonly totalRetentionInDays: pulumi.Output; /** * The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created. */ readonly workspaceId: pulumi.Output; /** * Create a WorkspaceTableCustomLog 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: WorkspaceTableCustomLogArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WorkspaceTableCustomLog resources. */ export interface WorkspaceTableCustomLogState { /** * One or more `column` blocks as defined below. */ columns?: pulumi.Input[]>; /** * The description of the table. */ description?: pulumi.Input; /** * The display name of the table. */ displayName?: pulumi.Input; /** * Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created. * * > **Note:** `name` must end with `_CL`. */ name?: pulumi.Input; /** * Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`. * * > **Note:** Changing the table's `plan` is limited to once a week. */ plan?: pulumi.Input; /** * The table's retention in days. Possible values range between `4` and `730`. * * > **Note:** `retentionInDays` cannot be set when `plan` is set to `Basic` because the retention is fixed. */ retentionInDays?: pulumi.Input; /** * A list of solutions associated with the table. */ solutions?: pulumi.Input[]>; /** * One or more `standardColumn` blocks as defined below. */ standardColumns?: pulumi.Input[]>; /** * The table's total retention in days. Possible values range between `4` and `730`; or `1095`, `1460`, `1826`, `2191`, `2556`, `2922`, `3288`, `3653`, `4018`, or `4383`. */ totalRetentionInDays?: pulumi.Input; /** * The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created. */ workspaceId?: pulumi.Input; } /** * The set of arguments for constructing a WorkspaceTableCustomLog resource. */ export interface WorkspaceTableCustomLogArgs { /** * One or more `column` blocks as defined below. */ columns: pulumi.Input[]>; /** * The description of the table. */ description?: pulumi.Input; /** * The display name of the table. */ displayName?: pulumi.Input; /** * Specifies the name of the Log Analytics Workspace Table Custom Log. Changing this forces a new resource to be created. * * > **Note:** `name` must end with `_CL`. */ name?: pulumi.Input; /** * Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`. * * > **Note:** Changing the table's `plan` is limited to once a week. */ plan?: pulumi.Input; /** * The table's retention in days. Possible values range between `4` and `730`. * * > **Note:** `retentionInDays` cannot be set when `plan` is set to `Basic` because the retention is fixed. */ retentionInDays?: pulumi.Input; /** * The table's total retention in days. Possible values range between `4` and `730`; or `1095`, `1460`, `1826`, `2191`, `2556`, `2922`, `3288`, `3653`, `4018`, or `4383`. */ totalRetentionInDays?: pulumi.Input; /** * The object ID of the Log Analytics Workspace that contains the table. Changing this forces a new resource to be created. */ workspaceId: pulumi.Input; }