import * as pulumi from "@pulumi/pulumi"; /** * Manages a Log Analytics Storage Insights resource. * * ## 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: "exampleworkspace", * location: example.location, * resourceGroupName: example.name, * sku: "PerGB2018", * retentionInDays: 30, * }); * const exampleAccount = new azure.storage.Account("example", { * name: "examplestoracc", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleStorageInsights = new azure.loganalytics.StorageInsights("example", { * name: "example-storageinsightconfig", * resourceGroupName: example.name, * workspaceId: exampleAnalyticsWorkspace.id, * storageAccountId: exampleAccount.id, * storageAccountKey: exampleAccount.primaryAccessKey, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.OperationalInsights` - 2020-08-01 * * ## Import * * Log Analytics Storage Insight Configs can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:loganalytics/storageInsights:StorageInsights example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/storageInsightConfigs/storageInsight1 * ``` */ export declare class StorageInsights extends pulumi.CustomResource { /** * Get an existing StorageInsights 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?: StorageInsightsState, opts?: pulumi.CustomResourceOptions): StorageInsights; /** * Returns true if the given object is an instance of StorageInsights. 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 StorageInsights; /** * The names of the blob containers that the workspace should read. */ readonly blobContainerNames: pulumi.Output; /** * The name which should be used for this Log Analytics Storage Insights. Changing this forces a new Log Analytics Storage Insights to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the Log Analytics Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created. */ readonly resourceGroupName: pulumi.Output; /** * The ID of the Storage Account used by this Log Analytics Storage Insights. */ readonly storageAccountId: pulumi.Output; /** * The storage access key to be used to connect to the storage account. */ readonly storageAccountKey: pulumi.Output; /** * The names of the Azure tables that the workspace should read. */ readonly tableNames: pulumi.Output; /** * The ID of the Log Analytics Workspace within which the Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created. */ readonly workspaceId: pulumi.Output; /** * Create a StorageInsights 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: StorageInsightsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StorageInsights resources. */ export interface StorageInsightsState { /** * The names of the blob containers that the workspace should read. */ blobContainerNames?: pulumi.Input[]>; /** * The name which should be used for this Log Analytics Storage Insights. Changing this forces a new Log Analytics Storage Insights to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Log Analytics Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created. */ resourceGroupName?: pulumi.Input; /** * The ID of the Storage Account used by this Log Analytics Storage Insights. */ storageAccountId?: pulumi.Input; /** * The storage access key to be used to connect to the storage account. */ storageAccountKey?: pulumi.Input; /** * The names of the Azure tables that the workspace should read. */ tableNames?: pulumi.Input[]>; /** * The ID of the Log Analytics Workspace within which the Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created. */ workspaceId?: pulumi.Input; } /** * The set of arguments for constructing a StorageInsights resource. */ export interface StorageInsightsArgs { /** * The names of the blob containers that the workspace should read. */ blobContainerNames?: pulumi.Input[]>; /** * The name which should be used for this Log Analytics Storage Insights. Changing this forces a new Log Analytics Storage Insights to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Log Analytics Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created. */ resourceGroupName: pulumi.Input; /** * The ID of the Storage Account used by this Log Analytics Storage Insights. */ storageAccountId: pulumi.Input; /** * The storage access key to be used to connect to the storage account. */ storageAccountKey: pulumi.Input; /** * The names of the Azure tables that the workspace should read. */ tableNames?: pulumi.Input[]>; /** * The ID of the Log Analytics Workspace within which the Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created. */ workspaceId: pulumi.Input; }