EventHubDataConnectionArgs

data class EventHubDataConnectionArgs(val compression: Output<Either<String, Compression>>? = null, val consumerGroup: Output<String>? = null, val dataConnectionName: Output<String>? = null, val dataFormat: Output<Either<String, EventHubDataFormat>>? = null, val databaseName: Output<String>? = null, val eventHubResourceId: Output<String>? = null, val eventSystemProperties: Output<List<String>>? = null, val kind: Output<String>? = null, val kustoPoolName: Output<String>? = null, val location: Output<String>? = null, val managedIdentityResourceId: Output<String>? = null, val mappingRuleName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tableName: Output<String>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<EventHubDataConnectionArgs>

Class representing an event hub data connection. Uses Azure REST API version 2021-06-01-preview.

Example Usage

KustoPoolDataConnectionsCreateOrUpdate.json

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var eventHubDataConnection = new AzureNative.Synapse.EventHubDataConnection("eventHubDataConnection", new()
{
ConsumerGroup = "testConsumerGroup1",
DataConnectionName = "DataConnections8",
DatabaseName = "KustoDatabase8",
EventHubResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
Kind = "EventHub",
KustoPoolName = "kustoclusterrptest4",
Location = "westus",
ResourceGroupName = "kustorptest",
WorkspaceName = "synapseWorkspaceName",
});
});
package main
import (
synapse "github.com/pulumi/pulumi-azure-native-sdk/synapse/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := synapse.NewEventHubDataConnection(ctx, "eventHubDataConnection", &synapse.EventHubDataConnectionArgs{
ConsumerGroup: pulumi.String("testConsumerGroup1"),
DataConnectionName: pulumi.String("DataConnections8"),
DatabaseName: pulumi.String("KustoDatabase8"),
EventHubResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"),
Kind: pulumi.String("EventHub"),
KustoPoolName: pulumi.String("kustoclusterrptest4"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("kustorptest"),
WorkspaceName: pulumi.String("synapseWorkspaceName"),
})
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.synapse.EventHubDataConnection;
import com.pulumi.azurenative.synapse.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 eventHubDataConnection = new EventHubDataConnection("eventHubDataConnection", EventHubDataConnectionArgs.builder()
.consumerGroup("testConsumerGroup1")
.dataConnectionName("DataConnections8")
.databaseName("KustoDatabase8")
.eventHubResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1")
.kind("EventHub")
.kustoPoolName("kustoclusterrptest4")
.location("westus")
.resourceGroupName("kustorptest")
.workspaceName("synapseWorkspaceName")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:synapse:EventHubDataConnection KustoClusterRPTest4/KustoDatabase8/DataConnections8 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}

Constructors

Link copied to clipboard
constructor(compression: Output<Either<String, Compression>>? = null, consumerGroup: Output<String>? = null, dataConnectionName: Output<String>? = null, dataFormat: Output<Either<String, EventHubDataFormat>>? = null, databaseName: Output<String>? = null, eventHubResourceId: Output<String>? = null, eventSystemProperties: Output<List<String>>? = null, kind: Output<String>? = null, kustoPoolName: Output<String>? = null, location: Output<String>? = null, managedIdentityResourceId: Output<String>? = null, mappingRuleName: Output<String>? = null, resourceGroupName: Output<String>? = null, tableName: Output<String>? = null, workspaceName: Output<String>? = null)

Properties

Link copied to clipboard
val compression: Output<Either<String, Compression>>? = null

The event hub messages compression type

Link copied to clipboard
val consumerGroup: Output<String>? = null

The event hub consumer group.

Link copied to clipboard
val databaseName: Output<String>? = null

The name of the database in the Kusto pool.

Link copied to clipboard
val dataConnectionName: Output<String>? = null

The name of the data connection.

Link copied to clipboard
val dataFormat: Output<Either<String, EventHubDataFormat>>? = null

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

Link copied to clipboard
val eventHubResourceId: Output<String>? = null

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

Link copied to clipboard
val eventSystemProperties: Output<List<String>>? = null

System properties of the event hub

Link copied to clipboard
val kind: Output<String>? = null

Kind of the endpoint for the data connection Expected value is 'EventHub'.

Link copied to clipboard
val kustoPoolName: Output<String>? = null

The name of the Kusto pool.

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

Resource location.

Link copied to clipboard
val managedIdentityResourceId: Output<String>? = null

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

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

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 resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

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

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

Link copied to clipboard
val workspaceName: Output<String>? = null

The name of the workspace.

Functions

Link copied to clipboard
open override fun toJava(): EventHubDataConnectionArgs