import * as pulumi from "@pulumi/pulumi";
/**
 * Manages a Log Analytics Linked Service.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "resourcegroup-01",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.automation.Account("example", {
 *     name: "automation-01",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     skuName: "Basic",
 *     tags: {
 *         environment: "development",
 *     },
 * });
 * const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
 *     name: "workspace-01",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     sku: "PerGB2018",
 *     retentionInDays: 30,
 * });
 * const exampleLinkedService = new azure.loganalytics.LinkedService("example", {
 *     resourceGroupName: example.name,
 *     workspaceId: exampleAnalyticsWorkspace.id,
 *     readAccessId: exampleAccount.id,
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.OperationalInsights` - 2020-08-01
 *
 * ## Import
 *
 * Log Analytics Workspaces can be imported using the `resource id`, e.g.
 *
 * When `readAccessId` has been specified:
 * ```sh
 * $ pulumi import azure:loganalytics/linkedService:LinkedService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/linkedServices/Automation
 * ```
 * When `readAccessId` has been omitted:
 * ```sh
 * $ pulumi import azure:loganalytics/linkedService:LinkedService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/linkedServices/Cluster
 * ```
 */
export declare class LinkedService extends pulumi.CustomResource {
    /**
     * Get an existing LinkedService 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<pulumi.ID>, state?: LinkedServiceState, opts?: pulumi.CustomResourceOptions): LinkedService;
    /**
     * Returns true if the given object is an instance of LinkedService.  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 LinkedService;
    /**
     * The generated name of the Linked Service. The format for this attribute is always `<workspace name>/<linked service type>`(e.g. `workspace1/Automation` or `workspace1/Cluster`)
     */
    readonly name: pulumi.Output<string>;
    /**
     * The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource.
     */
    readonly readAccessId: pulumi.Output<string>;
    /**
     * The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.
     */
    readonly resourceGroupName: pulumi.Output<string>;
    /**
     * The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource.
     */
    readonly workspaceId: pulumi.Output<string>;
    /**
     * The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource.
     *
     * > **Note:** You must define at least one of the above access resource id attributes (e.g. `readAccessId` or `writeAccessId`).
     */
    readonly writeAccessId: pulumi.Output<string | undefined>;
    /**
     * Create a LinkedService 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: LinkedServiceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering LinkedService resources.
 */
export interface LinkedServiceState {
    /**
     * The generated name of the Linked Service. The format for this attribute is always `<workspace name>/<linked service type>`(e.g. `workspace1/Automation` or `workspace1/Cluster`)
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource.
     */
    readAccessId?: pulumi.Input<string | undefined>;
    /**
     * The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.
     */
    resourceGroupName?: pulumi.Input<string | undefined>;
    /**
     * The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource.
     */
    workspaceId?: pulumi.Input<string | undefined>;
    /**
     * The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource.
     *
     * > **Note:** You must define at least one of the above access resource id attributes (e.g. `readAccessId` or `writeAccessId`).
     */
    writeAccessId?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a LinkedService resource.
 */
export interface LinkedServiceArgs {
    /**
     * The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource.
     */
    readAccessId?: pulumi.Input<string | undefined>;
    /**
     * The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.
     */
    resourceGroupName: pulumi.Input<string>;
    /**
     * The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource.
     */
    workspaceId: pulumi.Input<string>;
    /**
     * The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource.
     *
     * > **Note:** You must define at least one of the above access resource id attributes (e.g. `readAccessId` or `writeAccessId`).
     */
    writeAccessId?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=linkedService.d.ts.map