import * as pulumi from "@pulumi/pulumi"; /** * Manages a Linked Service (connection) between a Kusto Cluster and Azure Data Factory. * * ## 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 exampleFactory = new azure.datafactory.Factory("example", { * name: "example", * location: example.location, * resourceGroupName: example.name, * identity: { * type: "SystemAssigned", * }, * }); * const exampleCluster = new azure.kusto.Cluster("example", { * name: "kustocluster", * location: example.location, * resourceGroupName: example.name, * sku: { * name: "Standard_D13_v2", * capacity: 2, * }, * }); * const exampleDatabase = new azure.kusto.Database("example", { * name: "my-kusto-database", * resourceGroupName: example.name, * location: example.location, * clusterName: exampleCluster.name, * }); * const exampleLinkedServiceKusto = new azure.datafactory.LinkedServiceKusto("example", { * name: "example", * dataFactoryId: exampleFactory.id, * kustoEndpoint: exampleCluster.uri, * kustoDatabaseName: exampleDatabase.name, * useManagedIdentity: true, * }); * const exampleDatabasePrincipalAssignment = new azure.kusto.DatabasePrincipalAssignment("example", { * name: "KustoPrincipalAssignment", * resourceGroupName: example.name, * clusterName: exampleCluster.name, * databaseName: exampleDatabase.name, * tenantId: exampleFactory.identity.apply(identity => identity?.tenantId), * principalId: exampleFactory.identity.apply(identity => identity?.principalId), * principalType: "App", * role: "Viewer", * }); * ``` * * ## Import * * Data Factory Linked Service's can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:datafactory/linkedServiceKusto:LinkedServiceKusto example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example * ``` */ export declare class LinkedServiceKusto extends pulumi.CustomResource { /** * Get an existing LinkedServiceKusto 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?: LinkedServiceKustoState, opts?: pulumi.CustomResourceOptions): LinkedServiceKusto; /** * Returns true if the given object is an instance of LinkedServiceKusto. 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 LinkedServiceKusto; /** * A map of additional properties to associate with the Data Factory Linked Service. * * The following supported arguments are specific to Azure Kusto Linked Service: */ readonly additionalProperties: pulumi.Output<{ [key: string]: string; } | undefined>; /** * List of tags that can be used for describing the Data Factory Linked Service. */ readonly annotations: pulumi.Output; /** * The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. */ readonly dataFactoryId: pulumi.Output; /** * The description for the Data Factory Linked Service. */ readonly description: pulumi.Output; /** * The integration runtime reference to associate with the Data Factory Linked Service. */ readonly integrationRuntimeName: pulumi.Output; /** * The Kusto Database Name. */ readonly kustoDatabaseName: pulumi.Output; /** * The URI of the Kusto Cluster endpoint. */ readonly kustoEndpoint: pulumi.Output; /** * Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. */ readonly name: pulumi.Output; /** * A map of parameters to associate with the Data Factory Linked Service. */ readonly parameters: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The service principal id in which to authenticate against the Kusto Database. */ readonly servicePrincipalId: pulumi.Output; /** * The service principal key in which to authenticate against the Kusto Database. */ readonly servicePrincipalKey: pulumi.Output; /** * The service principal tenant id or name in which to authenticate against the Kusto Database. * * > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` is also required. * * > **Note:** One of Managed Identity authentication and Service Principal authentication must be set. */ readonly tenant: pulumi.Output; /** * Whether to use the Data Factory's managed identity to authenticate against the Kusto Database. */ readonly useManagedIdentity: pulumi.Output; /** * Create a LinkedServiceKusto 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: LinkedServiceKustoArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LinkedServiceKusto resources. */ export interface LinkedServiceKustoState { /** * A map of additional properties to associate with the Data Factory Linked Service. * * The following supported arguments are specific to Azure Kusto Linked Service: */ additionalProperties?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * List of tags that can be used for describing the Data Factory Linked Service. */ annotations?: pulumi.Input[]>; /** * The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. */ dataFactoryId?: pulumi.Input; /** * The description for the Data Factory Linked Service. */ description?: pulumi.Input; /** * The integration runtime reference to associate with the Data Factory Linked Service. */ integrationRuntimeName?: pulumi.Input; /** * The Kusto Database Name. */ kustoDatabaseName?: pulumi.Input; /** * The URI of the Kusto Cluster endpoint. */ kustoEndpoint?: pulumi.Input; /** * Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. */ name?: pulumi.Input; /** * A map of parameters to associate with the Data Factory Linked Service. */ parameters?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The service principal id in which to authenticate against the Kusto Database. */ servicePrincipalId?: pulumi.Input; /** * The service principal key in which to authenticate against the Kusto Database. */ servicePrincipalKey?: pulumi.Input; /** * The service principal tenant id or name in which to authenticate against the Kusto Database. * * > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` is also required. * * > **Note:** One of Managed Identity authentication and Service Principal authentication must be set. */ tenant?: pulumi.Input; /** * Whether to use the Data Factory's managed identity to authenticate against the Kusto Database. */ useManagedIdentity?: pulumi.Input; } /** * The set of arguments for constructing a LinkedServiceKusto resource. */ export interface LinkedServiceKustoArgs { /** * A map of additional properties to associate with the Data Factory Linked Service. * * The following supported arguments are specific to Azure Kusto Linked Service: */ additionalProperties?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * List of tags that can be used for describing the Data Factory Linked Service. */ annotations?: pulumi.Input[]>; /** * The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource. */ dataFactoryId: pulumi.Input; /** * The description for the Data Factory Linked Service. */ description?: pulumi.Input; /** * The integration runtime reference to associate with the Data Factory Linked Service. */ integrationRuntimeName?: pulumi.Input; /** * The Kusto Database Name. */ kustoDatabaseName: pulumi.Input; /** * The URI of the Kusto Cluster endpoint. */ kustoEndpoint: pulumi.Input; /** * Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data factory. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions. */ name?: pulumi.Input; /** * A map of parameters to associate with the Data Factory Linked Service. */ parameters?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The service principal id in which to authenticate against the Kusto Database. */ servicePrincipalId?: pulumi.Input; /** * The service principal key in which to authenticate against the Kusto Database. */ servicePrincipalKey?: pulumi.Input; /** * The service principal tenant id or name in which to authenticate against the Kusto Database. * * > **Note:** If `servicePrincipalId` is used, `servicePrincipalKey` and `tenant` is also required. * * > **Note:** One of Managed Identity authentication and Service Principal authentication must be set. */ tenant?: pulumi.Input; /** * Whether to use the Data Factory's managed identity to authenticate against the Kusto Database. */ useManagedIdentity?: pulumi.Input; }