Eventhub Data Connection Args
data class EventhubDataConnectionArgs(val clusterName: Output<String>? = null, val compression: Output<String>? = null, val consumerGroup: Output<String>? = null, val dataFormat: Output<String>? = null, val databaseName: Output<String>? = null, val databaseRoutingType: Output<String>? = null, val eventSystemProperties: Output<List<String>>? = null, val eventhubId: Output<String>? = null, val identityId: Output<String>? = null, val location: Output<String>? = null, val mappingRuleName: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tableName: Output<String>? = null) : ConvertibleToJava<EventhubDataConnectionArgs>
Manages a Kusto (also known as Azure Data Explorer) EventHub Data Connection
Example Usage
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.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.eventhub.EventHubNamespace;
import com.pulumi.azure.eventhub.EventHubNamespaceArgs;
import com.pulumi.azure.eventhub.EventHub;
import com.pulumi.azure.eventhub.EventHubArgs;
import com.pulumi.azure.eventhub.ConsumerGroup;
import com.pulumi.azure.eventhub.ConsumerGroupArgs;
import com.pulumi.azure.kusto.EventhubDataConnection;
import com.pulumi.azure.kusto.EventhubDataConnectionArgs;
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()
.location("West Europe")
.build());
var cluster = new Cluster("cluster", ClusterArgs.builder()
.location(example.location())
.resourceGroupName(example.name())
.sku(ClusterSkuArgs.builder()
.name("Standard_D13_v2")
.capacity(2)
.build())
.build());
var database = new Database("database", DatabaseArgs.builder()
.resourceGroupName(example.name())
.location(example.location())
.clusterName(cluster.name())
.hotCachePeriod("P7D")
.softDeletePeriod("P31D")
.build());
var eventhubNs = new EventHubNamespace("eventhubNs", EventHubNamespaceArgs.builder()
.location(example.location())
.resourceGroupName(example.name())
.sku("Standard")
.build());
var eventhub = new EventHub("eventhub", EventHubArgs.builder()
.namespaceName(eventhubNs.name())
.resourceGroupName(example.name())
.partitionCount(1)
.messageRetention(1)
.build());
var consumerGroup = new ConsumerGroup("consumerGroup", ConsumerGroupArgs.builder()
.namespaceName(eventhubNs.name())
.eventhubName(eventhub.name())
.resourceGroupName(example.name())
.build());
var eventhubConnection = new EventhubDataConnection("eventhubConnection", EventhubDataConnectionArgs.builder()
.resourceGroupName(example.name())
.location(example.location())
.clusterName(cluster.name())
.databaseName(database.name())
.eventhubId(eventhub.id())
.consumerGroup(consumerGroup.name())
.tableName("my-table")
.mappingRuleName("my-table-mapping")
.dataFormat("JSON")
.build());
}
}
Content copied to clipboard
Import
Kusto EventHub Data Connections can be imported using the resource id
, e.g.
$ pulumi import azure:kusto/eventhubDataConnection:EventhubDataConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/clusters/cluster1/databases/database1/dataConnections/eventHubConnection1
Content copied to clipboard
Constructors
Link copied to clipboard
fun EventhubDataConnectionArgs(clusterName: Output<String>? = null, compression: Output<String>? = null, consumerGroup: Output<String>? = null, dataFormat: Output<String>? = null, databaseName: Output<String>? = null, databaseRoutingType: Output<String>? = null, eventSystemProperties: Output<List<String>>? = null, eventhubId: Output<String>? = null, identityId: Output<String>? = null, location: Output<String>? = null, mappingRuleName: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tableName: Output<String>? = null)