Event Hub Connection Args
data class EventHubConnectionArgs(val clusterName: Output<String>? = null, val consumerGroup: Output<String>? = null, val dataFormat: Output<Either<String, DataFormat>>? = null, val databaseName: Output<String>? = null, val eventHubConnectionName: Output<String>? = null, val eventHubResourceId: Output<String>? = null, val location: Output<String>? = null, val mappingRuleName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tableName: Output<String>? = null) : ConvertibleToJava<EventHubConnectionArgs>
Class representing an event hub connection. Uses Azure REST API version 2018-09-07-preview. In version 1.x of the Azure Native provider, it used API version 2018-09-07-preview.
Example Usage
KustoEventHubConnectionsCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var eventHubConnection = new AzureNative.Kusto.EventHubConnection("eventHubConnection", new()
{
ClusterName = "KustoClusterRPTest4",
ConsumerGroup = "testConsumerGroup1",
DatabaseName = "KustoDatabase8",
EventHubConnectionName = "kustoeventhubconnection1",
EventHubResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
Location = "westus",
ResourceGroupName = "kustorptest",
});
});
Content copied to clipboard
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.NewEventHubConnection(ctx, "eventHubConnection", &kusto.EventHubConnectionArgs{
ClusterName: pulumi.String("KustoClusterRPTest4"),
ConsumerGroup: pulumi.String("testConsumerGroup1"),
DatabaseName: pulumi.String("KustoDatabase8"),
EventHubConnectionName: pulumi.String("kustoeventhubconnection1"),
EventHubResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("kustorptest"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.kusto.EventHubConnection;
import com.pulumi.azurenative.kusto.EventHubConnectionArgs;
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 eventHubConnection = new EventHubConnection("eventHubConnection", EventHubConnectionArgs.builder()
.clusterName("KustoClusterRPTest4")
.consumerGroup("testConsumerGroup1")
.databaseName("KustoDatabase8")
.eventHubConnectionName("kustoeventhubconnection1")
.eventHubResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1")
.location("westus")
.resourceGroupName("kustorptest")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:kusto:EventHubConnection KustoClusterRPTest4/KustoDatabase8 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/eventhubconnections/{eventHubConnectionName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(clusterName: Output<String>? = null, consumerGroup: Output<String>? = null, dataFormat: Output<Either<String, DataFormat>>? = null, databaseName: Output<String>? = null, eventHubConnectionName: Output<String>? = null, eventHubResourceId: Output<String>? = null, location: Output<String>? = null, mappingRuleName: Output<String>? = null, resourceGroupName: Output<String>? = null, tableName: Output<String>? = null)
Properties
Link copied to clipboard
The name of the Kusto cluster.
Link copied to clipboard
The event hub consumer group.
Link copied to clipboard
The name of the database in the Kusto cluster.
Link copied to clipboard
The data format of the message. Optionally the data format can be added to each message.
Link copied to clipboard
The name of the event hub connection.
Link copied to clipboard
The resource ID of the event hub to be used to create a data connection.
Link copied to clipboard
The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.
Link copied to clipboard
The name of the resource group containing the Kusto cluster.