EventhubDataConnection

class EventhubDataConnection : KotlinCustomResource

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());
}
}

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

Properties

Link copied to clipboard
val clusterName: Output<String>

Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.

Link copied to clipboard
val compression: Output<String>?

Specifies compression type for the connection. Allowed values: GZip and None. Defaults to None. Changing this forces a new resource to be created.

Link copied to clipboard
val consumerGroup: Output<String>

Specifies the EventHub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.

Link copied to clipboard
val databaseName: Output<String>

Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.

Link copied to clipboard

Indication for database routing information from the data connection, by default only database routing information is allowed. Allowed values: Single, Multi. Changing this forces a new resource to be created.

Link copied to clipboard
val dataFormat: Output<String>?

Specifies the data format of the EventHub messages. Allowed values: APACHEAVRO, AVRO, CSV, JSON, MULTIJSON, ORC, PARQUET, PSV, RAW, SCSV, SINGLEJSON, SOHSV, TSVE, TSV, TXT, and W3CLOGFILE.

Link copied to clipboard
val eventhubId: Output<String>

Specifies the resource id of the EventHub this data connection will use for ingestion. Changing this forces a new resource to be created.

Link copied to clipboard

Specifies a list of system properties for the Event Hub.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val identityId: Output<String>?

The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub.

Link copied to clipboard
val location: Output<String>

The location where the Kusto Database should be created. Changing this forces a new resource to be created.

Link copied to clipboard
val mappingRuleName: Output<String>?

Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.

Link copied to clipboard
val name: Output<String>

The name of the Kusto EventHub Data Connection to create. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val tableName: Output<String>?

Specifies the target table name used for the message ingestion. Table must exist before resource is created.

Link copied to clipboard
val urn: Output<String>