Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.kusto.kotlin
import com.pulumi.azurenative.kusto.IotHubDataConnectionArgs.builder
import com.pulumi.azurenative.kusto.kotlin.enums.DatabaseRouting
import com.pulumi.azurenative.kusto.kotlin.enums.IotHubDataFormat
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Class representing an iot hub data connection.
* Azure REST API version: 2022-12-29. Prior API version in Azure Native 1.x: 2021-01-01.
* ## Example Usage
* ### KustoDataConnectionsCosmosDbCreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var iotHubDataConnection = new AzureNative.Kusto.IotHubDataConnection("iotHubDataConnection", new()
* {
* ClusterName = "kustoCluster",
* DataConnectionName = "dataConnectionTest",
* DatabaseName = "KustoDatabase1",
* ResourceGroupName = "kustorptest",
* });
* });
* ```
* ```go
* package main
* import (
* kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := kusto.NewIotHubDataConnection(ctx, "iotHubDataConnection", &kusto.IotHubDataConnectionArgs{
* ClusterName: pulumi.String("kustoCluster"),
* DataConnectionName: pulumi.String("dataConnectionTest"),
* DatabaseName: pulumi.String("KustoDatabase1"),
* ResourceGroupName: pulumi.String("kustorptest"),
* })
* 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.azurenative.kusto.IotHubDataConnection;
* import com.pulumi.azurenative.kusto.IotHubDataConnectionArgs;
* 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 iotHubDataConnection = new IotHubDataConnection("iotHubDataConnection", IotHubDataConnectionArgs.builder()
* .clusterName("kustoCluster")
* .dataConnectionName("dataConnectionTest")
* .databaseName("KustoDatabase1")
* .resourceGroupName("kustorptest")
* .build());
* }
* }
* ```
* ### KustoDataConnectionsCreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var iotHubDataConnection = new AzureNative.Kusto.IotHubDataConnection("iotHubDataConnection", new()
* {
* ClusterName = "kustoCluster",
* DataConnectionName = "dataConnectionTest",
* DatabaseName = "KustoDatabase8",
* ResourceGroupName = "kustorptest",
* });
* });
* ```
* ```go
* package main
* import (
* kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := kusto.NewIotHubDataConnection(ctx, "iotHubDataConnection", &kusto.IotHubDataConnectionArgs{
* ClusterName: pulumi.String("kustoCluster"),
* DataConnectionName: pulumi.String("dataConnectionTest"),
* DatabaseName: pulumi.String("KustoDatabase8"),
* ResourceGroupName: pulumi.String("kustorptest"),
* })
* 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.azurenative.kusto.IotHubDataConnection;
* import com.pulumi.azurenative.kusto.IotHubDataConnectionArgs;
* 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 iotHubDataConnection = new IotHubDataConnection("iotHubDataConnection", IotHubDataConnectionArgs.builder()
* .clusterName("kustoCluster")
* .dataConnectionName("dataConnectionTest")
* .databaseName("KustoDatabase8")
* .resourceGroupName("kustorptest")
* .build());
* }
* }
* ```
* ### KustoDataConnectionsEventGridCreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var iotHubDataConnection = new AzureNative.Kusto.IotHubDataConnection("iotHubDataConnection", new()
* {
* ClusterName = "kustoCluster",
* DataConnectionName = "dataConnectionTest",
* DatabaseName = "KustoDatabase8",
* ResourceGroupName = "kustorptest",
* });
* });
* ```
* ```go
* package main
* import (
* kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := kusto.NewIotHubDataConnection(ctx, "iotHubDataConnection", &kusto.IotHubDataConnectionArgs{
* ClusterName: pulumi.String("kustoCluster"),
* DataConnectionName: pulumi.String("dataConnectionTest"),
* DatabaseName: pulumi.String("KustoDatabase8"),
* ResourceGroupName: pulumi.String("kustorptest"),
* })
* 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.azurenative.kusto.IotHubDataConnection;
* import com.pulumi.azurenative.kusto.IotHubDataConnectionArgs;
* 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 iotHubDataConnection = new IotHubDataConnection("iotHubDataConnection", IotHubDataConnectionArgs.builder()
* .clusterName("kustoCluster")
* .dataConnectionName("dataConnectionTest")
* .databaseName("KustoDatabase8")
* .resourceGroupName("kustorptest")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:kusto:IotHubDataConnection kustoCluster/KustoDatabase8/dataConnectionTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}
* ```
* @property clusterName The name of the Kusto cluster.
* @property consumerGroup The iot hub consumer group.
* @property dataConnectionName The name of the data connection.
* @property dataFormat The data format of the message. Optionally the data format can be added to each message.
* @property databaseName The name of the database in the Kusto cluster.
* @property databaseRouting Indication for database routing information from the data connection, by default only database routing information is allowed
* @property eventSystemProperties System properties of the iot hub
* @property iotHubResourceId The resource ID of the Iot hub to be used to create a data connection.
* @property kind Kind of the endpoint for the data connection
* Expected value is 'IotHub'.
* @property location Resource location.
* @property mappingRuleName The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.
* @property resourceGroupName The name of the resource group containing the Kusto cluster.
* @property retrievalStartDate When defined, the data connection retrieves existing Event hub events created since the Retrieval start date. It can only retrieve events retained by the Event hub, based on its retention period.
* @property sharedAccessPolicyName The name of the share access policy
* @property tableName The table where the data should be ingested. Optionally the table information can be added to each message.
*/
public data class IotHubDataConnectionArgs(
public val clusterName: Output? = null,
public val consumerGroup: Output? = null,
public val dataConnectionName: Output? = null,
public val dataFormat: Output>? = null,
public val databaseName: Output? = null,
public val databaseRouting: Output>? = null,
public val eventSystemProperties: Output>? = null,
public val iotHubResourceId: Output? = null,
public val kind: Output? = null,
public val location: Output? = null,
public val mappingRuleName: Output? = null,
public val resourceGroupName: Output? = null,
public val retrievalStartDate: Output? = null,
public val sharedAccessPolicyName: Output? = null,
public val tableName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.kusto.IotHubDataConnectionArgs =
com.pulumi.azurenative.kusto.IotHubDataConnectionArgs.builder()
.clusterName(clusterName?.applyValue({ args0 -> args0 }))
.consumerGroup(consumerGroup?.applyValue({ args0 -> args0 }))
.dataConnectionName(dataConnectionName?.applyValue({ args0 -> args0 }))
.dataFormat(
dataFormat?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.databaseName(databaseName?.applyValue({ args0 -> args0 }))
.databaseRouting(
databaseRouting?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.eventSystemProperties(eventSystemProperties?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.iotHubResourceId(iotHubResourceId?.applyValue({ args0 -> args0 }))
.kind(kind?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.mappingRuleName(mappingRuleName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.retrievalStartDate(retrievalStartDate?.applyValue({ args0 -> args0 }))
.sharedAccessPolicyName(sharedAccessPolicyName?.applyValue({ args0 -> args0 }))
.tableName(tableName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IotHubDataConnectionArgs].
*/
@PulumiTagMarker
public class IotHubDataConnectionArgsBuilder internal constructor() {
private var clusterName: Output? = null
private var consumerGroup: Output? = null
private var dataConnectionName: Output? = null
private var dataFormat: Output>? = null
private var databaseName: Output? = null
private var databaseRouting: Output>? = null
private var eventSystemProperties: Output>? = null
private var iotHubResourceId: Output? = null
private var kind: Output? = null
private var location: Output? = null
private var mappingRuleName: Output? = null
private var resourceGroupName: Output? = null
private var retrievalStartDate: Output? = null
private var sharedAccessPolicyName: Output? = null
private var tableName: Output? = null
/**
* @param value The name of the Kusto cluster.
*/
@JvmName("skbthhthcfikklmj")
public suspend fun clusterName(`value`: Output) {
this.clusterName = value
}
/**
* @param value The iot hub consumer group.
*/
@JvmName("fpvqmosoilyuvqwp")
public suspend fun consumerGroup(`value`: Output) {
this.consumerGroup = value
}
/**
* @param value The name of the data connection.
*/
@JvmName("guckuitwiyxoxney")
public suspend fun dataConnectionName(`value`: Output) {
this.dataConnectionName = value
}
/**
* @param value The data format of the message. Optionally the data format can be added to each message.
*/
@JvmName("kmqiwthrwhdkfhli")
public suspend fun dataFormat(`value`: Output>) {
this.dataFormat = value
}
/**
* @param value The name of the database in the Kusto cluster.
*/
@JvmName("phckkcoqtlvmcwvt")
public suspend fun databaseName(`value`: Output) {
this.databaseName = value
}
/**
* @param value Indication for database routing information from the data connection, by default only database routing information is allowed
*/
@JvmName("ehsyewywygypuohd")
public suspend fun databaseRouting(`value`: Output>) {
this.databaseRouting = value
}
/**
* @param value System properties of the iot hub
*/
@JvmName("kpmtctymxcqqvqyi")
public suspend fun eventSystemProperties(`value`: Output>) {
this.eventSystemProperties = value
}
@JvmName("wlgtghxmjgreecin")
public suspend fun eventSystemProperties(vararg values: Output) {
this.eventSystemProperties = Output.all(values.asList())
}
/**
* @param values System properties of the iot hub
*/
@JvmName("ifofwimgtkdvvakn")
public suspend fun eventSystemProperties(values: List