All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.datafactory.kotlin.LinkedServiceKustoArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.datafactory.kotlin

import com.pulumi.azure.datafactory.LinkedServiceKustoArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * 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",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_factory = azure.datafactory.Factory("example",
 *     name="example",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     identity=azure.datafactory.FactoryIdentityArgs(
 *         type="SystemAssigned",
 *     ))
 * example_cluster = azure.kusto.Cluster("example",
 *     name="kustocluster",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     sku=azure.kusto.ClusterSkuArgs(
 *         name="Standard_D13_v2",
 *         capacity=2,
 *     ))
 * example_database = azure.kusto.Database("example",
 *     name="my-kusto-database",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     cluster_name=example_cluster.name)
 * example_linked_service_kusto = azure.datafactory.LinkedServiceKusto("example",
 *     name="example",
 *     data_factory_id=example_factory.id,
 *     kusto_endpoint=example_cluster.uri,
 *     kusto_database_name=example_database.name,
 *     use_managed_identity=True)
 * example_database_principal_assignment = azure.kusto.DatabasePrincipalAssignment("example",
 *     name="KustoPrincipalAssignment",
 *     resource_group_name=example.name,
 *     cluster_name=example_cluster.name,
 *     database_name=example_database.name,
 *     tenant_id=example_factory.identity.tenant_id,
 *     principal_id=example_factory.identity.principal_id,
 *     principal_type="App",
 *     role="Viewer")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleFactory = new Azure.DataFactory.Factory("example", new()
 *     {
 *         Name = "example",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Identity = new Azure.DataFactory.Inputs.FactoryIdentityArgs
 *         {
 *             Type = "SystemAssigned",
 *         },
 *     });
 *     var exampleCluster = new Azure.Kusto.Cluster("example", new()
 *     {
 *         Name = "kustocluster",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Sku = new Azure.Kusto.Inputs.ClusterSkuArgs
 *         {
 *             Name = "Standard_D13_v2",
 *             Capacity = 2,
 *         },
 *     });
 *     var exampleDatabase = new Azure.Kusto.Database("example", new()
 *     {
 *         Name = "my-kusto-database",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         ClusterName = exampleCluster.Name,
 *     });
 *     var exampleLinkedServiceKusto = new Azure.DataFactory.LinkedServiceKusto("example", new()
 *     {
 *         Name = "example",
 *         DataFactoryId = exampleFactory.Id,
 *         KustoEndpoint = exampleCluster.Uri,
 *         KustoDatabaseName = exampleDatabase.Name,
 *         UseManagedIdentity = true,
 *     });
 *     var exampleDatabasePrincipalAssignment = new Azure.Kusto.DatabasePrincipalAssignment("example", new()
 *     {
 *         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",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/datafactory"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/kusto"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{
 * 			Name:              pulumi.String("example"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Identity: &datafactory.FactoryIdentityArgs{
 * 				Type: pulumi.String("SystemAssigned"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleCluster, err := kusto.NewCluster(ctx, "example", &kusto.ClusterArgs{
 * 			Name:              pulumi.String("kustocluster"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Sku: &kusto.ClusterSkuArgs{
 * 				Name:     pulumi.String("Standard_D13_v2"),
 * 				Capacity: pulumi.Int(2),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleDatabase, err := kusto.NewDatabase(ctx, "example", &kusto.DatabaseArgs{
 * 			Name:              pulumi.String("my-kusto-database"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			ClusterName:       exampleCluster.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = datafactory.NewLinkedServiceKusto(ctx, "example", &datafactory.LinkedServiceKustoArgs{
 * 			Name:               pulumi.String("example"),
 * 			DataFactoryId:      exampleFactory.ID(),
 * 			KustoEndpoint:      exampleCluster.Uri,
 * 			KustoDatabaseName:  exampleDatabase.Name,
 * 			UseManagedIdentity: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = kusto.NewDatabasePrincipalAssignment(ctx, "example", &kusto.DatabasePrincipalAssignmentArgs{
 * 			Name:              pulumi.String("KustoPrincipalAssignment"),
 * 			ResourceGroupName: example.Name,
 * 			ClusterName:       exampleCluster.Name,
 * 			DatabaseName:      exampleDatabase.Name,
 * 			TenantId: exampleFactory.Identity.ApplyT(func(identity datafactory.FactoryIdentity) (*string, error) {
 * 				return &identity.TenantId, nil
 * 			}).(pulumi.StringPtrOutput),
 * 			PrincipalId: exampleFactory.Identity.ApplyT(func(identity datafactory.FactoryIdentity) (*string, error) {
 * 				return &identity.PrincipalId, nil
 * 			}).(pulumi.StringPtrOutput),
 * 			PrincipalType: pulumi.String("App"),
 * 			Role:          pulumi.String("Viewer"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.datafactory.Factory;
 * import com.pulumi.azure.datafactory.FactoryArgs;
 * import com.pulumi.azure.datafactory.inputs.FactoryIdentityArgs;
 * import com.pulumi.azure.kusto.Cluster;
 * import com.pulumi.azure.kusto.ClusterArgs;
 * import com.pulumi.azure.kusto.inputs.ClusterSkuArgs;
 * import com.pulumi.azure.kusto.Database;
 * import com.pulumi.azure.kusto.DatabaseArgs;
 * import com.pulumi.azure.datafactory.LinkedServiceKusto;
 * import com.pulumi.azure.datafactory.LinkedServiceKustoArgs;
 * import com.pulumi.azure.kusto.DatabasePrincipalAssignment;
 * import com.pulumi.azure.kusto.DatabasePrincipalAssignmentArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleFactory = new Factory("exampleFactory", FactoryArgs.builder()
 *             .name("example")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .identity(FactoryIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .build());
 *         var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
 *             .name("kustocluster")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .sku(ClusterSkuArgs.builder()
 *                 .name("Standard_D13_v2")
 *                 .capacity(2)
 *                 .build())
 *             .build());
 *         var exampleDatabase = new Database("exampleDatabase", DatabaseArgs.builder()
 *             .name("my-kusto-database")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .clusterName(exampleCluster.name())
 *             .build());
 *         var exampleLinkedServiceKusto = new LinkedServiceKusto("exampleLinkedServiceKusto", LinkedServiceKustoArgs.builder()
 *             .name("example")
 *             .dataFactoryId(exampleFactory.id())
 *             .kustoEndpoint(exampleCluster.uri())
 *             .kustoDatabaseName(exampleDatabase.name())
 *             .useManagedIdentity(true)
 *             .build());
 *         var exampleDatabasePrincipalAssignment = new DatabasePrincipalAssignment("exampleDatabasePrincipalAssignment", DatabasePrincipalAssignmentArgs.builder()
 *             .name("KustoPrincipalAssignment")
 *             .resourceGroupName(example.name())
 *             .clusterName(exampleCluster.name())
 *             .databaseName(exampleDatabase.name())
 *             .tenantId(exampleFactory.identity().applyValue(identity -> identity.tenantId()))
 *             .principalId(exampleFactory.identity().applyValue(identity -> identity.principalId()))
 *             .principalType("App")
 *             .role("Viewer")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleFactory:
 *     type: azure:datafactory:Factory
 *     name: example
 *     properties:
 *       name: example
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       identity:
 *         type: SystemAssigned
 *   exampleCluster:
 *     type: azure:kusto:Cluster
 *     name: example
 *     properties:
 *       name: kustocluster
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       sku:
 *         name: Standard_D13_v2
 *         capacity: 2
 *   exampleDatabase:
 *     type: azure:kusto:Database
 *     name: example
 *     properties:
 *       name: my-kusto-database
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       clusterName: ${exampleCluster.name}
 *   exampleLinkedServiceKusto:
 *     type: azure:datafactory:LinkedServiceKusto
 *     name: example
 *     properties:
 *       name: example
 *       dataFactoryId: ${exampleFactory.id}
 *       kustoEndpoint: ${exampleCluster.uri}
 *       kustoDatabaseName: ${exampleDatabase.name}
 *       useManagedIdentity: true
 *   exampleDatabasePrincipalAssignment:
 *     type: azure:kusto:DatabasePrincipalAssignment
 *     name: example
 *     properties:
 *       name: KustoPrincipalAssignment
 *       resourceGroupName: ${example.name}
 *       clusterName: ${exampleCluster.name}
 *       databaseName: ${exampleDatabase.name}
 *       tenantId: ${exampleFactory.identity.tenantId}
 *       principalId: ${exampleFactory.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
 * ```
 * @property additionalProperties A map of additional properties to associate with the Data Factory Linked Service.
 * The following supported arguments are specific to Azure Kusto Linked Service:
 * @property annotations List of tags that can be used for describing the Data Factory Linked Service.
 * @property dataFactoryId The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
 * @property description The description for the Data Factory Linked Service.
 * @property integrationRuntimeName The integration runtime reference to associate with the Data Factory Linked Service.
 * @property kustoDatabaseName The Kusto Database Name.
 * @property kustoEndpoint The URI of the Kusto Cluster endpoint.
 * @property name 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.
 * @property parameters A map of parameters to associate with the Data Factory Linked Service.
 * @property servicePrincipalId The service principal id in which to authenticate against the Kusto Database.
 * @property servicePrincipalKey The service principal key in which to authenticate against the Kusto Database.
 * @property tenant The service principal tenant id or name in which to authenticate against the Kusto Database.
 * > **NOTE** If `service_principal_id` is used, `service_principal_key` and `tenant` is also required.
 * > **NOTE** One of Managed Identity authentication and Service Principal authentication must be set.
 * @property useManagedIdentity Whether to use the Data Factory's managed identity to authenticate against the Kusto Database.
 */
public data class LinkedServiceKustoArgs(
    public val additionalProperties: Output>? = null,
    public val annotations: Output>? = null,
    public val dataFactoryId: Output? = null,
    public val description: Output? = null,
    public val integrationRuntimeName: Output? = null,
    public val kustoDatabaseName: Output? = null,
    public val kustoEndpoint: Output? = null,
    public val name: Output? = null,
    public val parameters: Output>? = null,
    public val servicePrincipalId: Output? = null,
    public val servicePrincipalKey: Output? = null,
    public val tenant: Output? = null,
    public val useManagedIdentity: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.datafactory.LinkedServiceKustoArgs =
        com.pulumi.azure.datafactory.LinkedServiceKustoArgs.builder()
            .additionalProperties(
                additionalProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .dataFactoryId(dataFactoryId?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .integrationRuntimeName(integrationRuntimeName?.applyValue({ args0 -> args0 }))
            .kustoDatabaseName(kustoDatabaseName?.applyValue({ args0 -> args0 }))
            .kustoEndpoint(kustoEndpoint?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .servicePrincipalId(servicePrincipalId?.applyValue({ args0 -> args0 }))
            .servicePrincipalKey(servicePrincipalKey?.applyValue({ args0 -> args0 }))
            .tenant(tenant?.applyValue({ args0 -> args0 }))
            .useManagedIdentity(useManagedIdentity?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinkedServiceKustoArgs].
 */
@PulumiTagMarker
public class LinkedServiceKustoArgsBuilder internal constructor() {
    private var additionalProperties: Output>? = null

    private var annotations: Output>? = null

    private var dataFactoryId: Output? = null

    private var description: Output? = null

    private var integrationRuntimeName: Output? = null

    private var kustoDatabaseName: Output? = null

    private var kustoEndpoint: Output? = null

    private var name: Output? = null

    private var parameters: Output>? = null

    private var servicePrincipalId: Output? = null

    private var servicePrincipalKey: Output? = null

    private var tenant: Output? = null

    private var useManagedIdentity: Output? = null

    /**
     * @param value A map of additional properties to associate with the Data Factory Linked Service.
     * The following supported arguments are specific to Azure Kusto Linked Service:
     */
    @JvmName("glstnjtktjpkotlr")
    public suspend fun additionalProperties(`value`: Output>) {
        this.additionalProperties = value
    }

    /**
     * @param value List of tags that can be used for describing the Data Factory Linked Service.
     */
    @JvmName("ykqpslfqeleyhrug")
    public suspend fun annotations(`value`: Output>) {
        this.annotations = value
    }

    @JvmName("xnwedqyiebwmxrfy")
    public suspend fun annotations(vararg values: Output) {
        this.annotations = Output.all(values.asList())
    }

    /**
     * @param values List of tags that can be used for describing the Data Factory Linked Service.
     */
    @JvmName("cesyvdwovvpuhucy")
    public suspend fun annotations(values: List>) {
        this.annotations = Output.all(values)
    }

    /**
     * @param value The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
     */
    @JvmName("sapnesbciirxusma")
    public suspend fun dataFactoryId(`value`: Output) {
        this.dataFactoryId = value
    }

    /**
     * @param value The description for the Data Factory Linked Service.
     */
    @JvmName("onhpokrbxphfelro")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The integration runtime reference to associate with the Data Factory Linked Service.
     */
    @JvmName("hdxnkxpsbwbenxtk")
    public suspend fun integrationRuntimeName(`value`: Output) {
        this.integrationRuntimeName = value
    }

    /**
     * @param value The Kusto Database Name.
     */
    @JvmName("ipuqnskjtbhspxuh")
    public suspend fun kustoDatabaseName(`value`: Output) {
        this.kustoDatabaseName = value
    }

    /**
     * @param value The URI of the Kusto Cluster endpoint.
     */
    @JvmName("totckthonebfbgtd")
    public suspend fun kustoEndpoint(`value`: Output) {
        this.kustoEndpoint = value
    }

    /**
     * @param value 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.
     */
    @JvmName("sieyqecuvifkoonb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A map of parameters to associate with the Data Factory Linked Service.
     */
    @JvmName("rskmbllctyduemre")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value The service principal id in which to authenticate against the Kusto Database.
     */
    @JvmName("edotkriqqdcahgbt")
    public suspend fun servicePrincipalId(`value`: Output) {
        this.servicePrincipalId = value
    }

    /**
     * @param value The service principal key in which to authenticate against the Kusto Database.
     */
    @JvmName("bodiljbbjriohqdd")
    public suspend fun servicePrincipalKey(`value`: Output) {
        this.servicePrincipalKey = value
    }

    /**
     * @param value The service principal tenant id or name in which to authenticate against the Kusto Database.
     * > **NOTE** If `service_principal_id` is used, `service_principal_key` and `tenant` is also required.
     * > **NOTE** One of Managed Identity authentication and Service Principal authentication must be set.
     */
    @JvmName("hcjcikodlikaisuo")
    public suspend fun tenant(`value`: Output) {
        this.tenant = value
    }

    /**
     * @param value Whether to use the Data Factory's managed identity to authenticate against the Kusto Database.
     */
    @JvmName("fdspsjlrutstvbnr")
    public suspend fun useManagedIdentity(`value`: Output) {
        this.useManagedIdentity = value
    }

    /**
     * @param value A map of additional properties to associate with the Data Factory Linked Service.
     * The following supported arguments are specific to Azure Kusto Linked Service:
     */
    @JvmName("nfikfpdrqwhouiwr")
    public suspend fun additionalProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalProperties = mapped
    }

    /**
     * @param values A map of additional properties to associate with the Data Factory Linked Service.
     * The following supported arguments are specific to Azure Kusto Linked Service:
     */
    @JvmName("vdnsyihagtlbpxvg")
    public fun additionalProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalProperties = mapped
    }

    /**
     * @param value List of tags that can be used for describing the Data Factory Linked Service.
     */
    @JvmName("smjsotpftikustyu")
    public suspend fun annotations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param values List of tags that can be used for describing the Data Factory Linked Service.
     */
    @JvmName("csrjaitsskgqyskp")
    public suspend fun annotations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param value The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
     */
    @JvmName("ebmewonamlgybuxg")
    public suspend fun dataFactoryId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataFactoryId = mapped
    }

    /**
     * @param value The description for the Data Factory Linked Service.
     */
    @JvmName("bwkbgagktskwjrqt")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The integration runtime reference to associate with the Data Factory Linked Service.
     */
    @JvmName("qsxuxgqckbubjspk")
    public suspend fun integrationRuntimeName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.integrationRuntimeName = mapped
    }

    /**
     * @param value The Kusto Database Name.
     */
    @JvmName("acjnmxqypykyknnk")
    public suspend fun kustoDatabaseName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kustoDatabaseName = mapped
    }

    /**
     * @param value The URI of the Kusto Cluster endpoint.
     */
    @JvmName("cagrfysmxrydfjgw")
    public suspend fun kustoEndpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kustoEndpoint = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("fapsgulakjxqflxl")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A map of parameters to associate with the Data Factory Linked Service.
     */
    @JvmName("baoelmbmqcdvkose")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param values A map of parameters to associate with the Data Factory Linked Service.
     */
    @JvmName("kksjnbggrgbfjtal")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The service principal id in which to authenticate against the Kusto Database.
     */
    @JvmName("iamoxckatxridtfw")
    public suspend fun servicePrincipalId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servicePrincipalId = mapped
    }

    /**
     * @param value The service principal key in which to authenticate against the Kusto Database.
     */
    @JvmName("ffbgjwqaoaurbqne")
    public suspend fun servicePrincipalKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servicePrincipalKey = mapped
    }

    /**
     * @param value The service principal tenant id or name in which to authenticate against the Kusto Database.
     * > **NOTE** If `service_principal_id` is used, `service_principal_key` and `tenant` is also required.
     * > **NOTE** One of Managed Identity authentication and Service Principal authentication must be set.
     */
    @JvmName("ydulnqbkmcrvyxog")
    public suspend fun tenant(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tenant = mapped
    }

    /**
     * @param value Whether to use the Data Factory's managed identity to authenticate against the Kusto Database.
     */
    @JvmName("imrugovvrcofmynr")
    public suspend fun useManagedIdentity(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useManagedIdentity = mapped
    }

    internal fun build(): LinkedServiceKustoArgs = LinkedServiceKustoArgs(
        additionalProperties = additionalProperties,
        annotations = annotations,
        dataFactoryId = dataFactoryId,
        description = description,
        integrationRuntimeName = integrationRuntimeName,
        kustoDatabaseName = kustoDatabaseName,
        kustoEndpoint = kustoEndpoint,
        name = name,
        parameters = parameters,
        servicePrincipalId = servicePrincipalId,
        servicePrincipalKey = servicePrincipalKey,
        tenant = tenant,
        useManagedIdentity = useManagedIdentity,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy