EventHubConnection

class EventHubConnection : KotlinCustomResource

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

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}

Properties

Link copied to clipboard
val consumerGroup: Output<String>

The event hub consumer group.

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

The data format of the message. Optionally the data format can be added to each message.

Link copied to clipboard

The resource ID of the event hub to be used to create a data connection.

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

Resource location.

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

The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.

Link copied to clipboard
val name: Output<String>

The name of the resource

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

The table where the data should be ingested. Optionally the table information can be added to each message.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>