EventGridDataConnectionArgs

data class EventGridDataConnectionArgs(val blobStorageEventType: Output<Either<String, BlobStorageEventType>>? = null, val clusterName: Output<String>? = null, val consumerGroup: Output<String>? = null, val dataConnectionName: Output<String>? = null, val dataFormat: Output<Either<String, EventGridDataFormat>>? = null, val databaseName: Output<String>? = null, val databaseRouting: Output<Either<String, DatabaseRouting>>? = null, val eventGridResourceId: Output<String>? = null, val eventHubResourceId: Output<String>? = null, val ignoreFirstRecord: Output<Boolean>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val managedIdentityResourceId: Output<String>? = null, val mappingRuleName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageAccountResourceId: Output<String>? = null, val tableName: Output<String>? = null) : ConvertibleToJava<EventGridDataConnectionArgs>

Class representing an Event Grid data connection. Uses Azure REST API version 2024-04-13. In version 2.x of the Azure Native provider, it used API version 2022-12-29.

Example Usage

KustoDataConnectionsCosmosDbCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var eventGridDataConnection = new AzureNative.Kusto.EventGridDataConnection("eventGridDataConnection", new()
{
ClusterName = "kustoCluster",
DataConnectionName = "dataConnectionTest",
DatabaseName = "KustoDatabase1",
ResourceGroupName = "kustorptest",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewEventGridDataConnection(ctx, "eventGridDataConnection", &kusto.EventGridDataConnectionArgs{
ClusterName: pulumi.String("kustoCluster"),
DataConnectionName: pulumi.String("dataConnectionTest"),
DatabaseName: pulumi.String("KustoDatabase1"),
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.EventGridDataConnection;
import com.pulumi.azurenative.kusto.EventGridDataConnectionArgs;
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 eventGridDataConnection = new EventGridDataConnection("eventGridDataConnection", EventGridDataConnectionArgs.builder()
.clusterName("kustoCluster")
.dataConnectionName("dataConnectionTest")
.databaseName("KustoDatabase1")
.resourceGroupName("kustorptest")
.build());
}
}

KustoDataConnectionsCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var eventGridDataConnection = new AzureNative.Kusto.EventGridDataConnection("eventGridDataConnection", new()
{
ClusterName = "kustoCluster",
DataConnectionName = "dataConnectionTest",
DatabaseName = "KustoDatabase8",
ResourceGroupName = "kustorptest",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewEventGridDataConnection(ctx, "eventGridDataConnection", &kusto.EventGridDataConnectionArgs{
ClusterName: pulumi.String("kustoCluster"),
DataConnectionName: pulumi.String("dataConnectionTest"),
DatabaseName: pulumi.String("KustoDatabase8"),
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.EventGridDataConnection;
import com.pulumi.azurenative.kusto.EventGridDataConnectionArgs;
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 eventGridDataConnection = new EventGridDataConnection("eventGridDataConnection", EventGridDataConnectionArgs.builder()
.clusterName("kustoCluster")
.dataConnectionName("dataConnectionTest")
.databaseName("KustoDatabase8")
.resourceGroupName("kustorptest")
.build());
}
}

KustoDataConnectionsEventGridCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var eventGridDataConnection = new AzureNative.Kusto.EventGridDataConnection("eventGridDataConnection", new()
{
BlobStorageEventType = AzureNative.Kusto.BlobStorageEventType.Microsoft_Storage_BlobCreated,
ClusterName = "kustoCluster",
ConsumerGroup = "$Default",
DataConnectionName = "dataConnectionTest",
DataFormat = AzureNative.Kusto.EventGridDataFormat.MULTIJSON,
DatabaseName = "KustoDatabase8",
DatabaseRouting = AzureNative.Kusto.DatabaseRouting.Single,
EventGridResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest",
EventHubResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest2",
IgnoreFirstRecord = false,
Kind = "EventGrid",
Location = "westus",
ManagedIdentityResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1",
MappingRuleName = "TestMapping",
ResourceGroupName = "kustorptest",
StorageAccountResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount",
TableName = "TestTable",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewEventGridDataConnection(ctx, "eventGridDataConnection", &kusto.EventGridDataConnectionArgs{
BlobStorageEventType: pulumi.String(kusto.BlobStorageEventType_Microsoft_Storage_BlobCreated),
ClusterName: pulumi.String("kustoCluster"),
ConsumerGroup: pulumi.String("$Default"),
DataConnectionName: pulumi.String("dataConnectionTest"),
DataFormat: pulumi.String(kusto.EventGridDataFormatMULTIJSON),
DatabaseName: pulumi.String("KustoDatabase8"),
DatabaseRouting: pulumi.String(kusto.DatabaseRoutingSingle),
EventGridResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest"),
EventHubResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest2"),
IgnoreFirstRecord: pulumi.Bool(false),
Kind: pulumi.String("EventGrid"),
Location: pulumi.String("westus"),
ManagedIdentityResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"),
MappingRuleName: pulumi.String("TestMapping"),
ResourceGroupName: pulumi.String("kustorptest"),
StorageAccountResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount"),
TableName: pulumi.String("TestTable"),
})
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.EventGridDataConnection;
import com.pulumi.azurenative.kusto.EventGridDataConnectionArgs;
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 eventGridDataConnection = new EventGridDataConnection("eventGridDataConnection", EventGridDataConnectionArgs.builder()
.blobStorageEventType("Microsoft.Storage.BlobCreated")
.clusterName("kustoCluster")
.consumerGroup("$Default")
.dataConnectionName("dataConnectionTest")
.dataFormat("MULTIJSON")
.databaseName("KustoDatabase8")
.databaseRouting("Single")
.eventGridResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest")
.eventHubResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest2")
.ignoreFirstRecord(false)
.kind("EventGrid")
.location("westus")
.managedIdentityResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1")
.mappingRuleName("TestMapping")
.resourceGroupName("kustorptest")
.storageAccountResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount")
.tableName("TestTable")
.build());
}
}

Import

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

$ pulumi import azure-native:kusto:EventGridDataConnection kustoCluster/KustoDatabase8/dataConnectionTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}

Constructors

Link copied to clipboard
constructor(blobStorageEventType: Output<Either<String, BlobStorageEventType>>? = null, clusterName: Output<String>? = null, consumerGroup: Output<String>? = null, dataConnectionName: Output<String>? = null, dataFormat: Output<Either<String, EventGridDataFormat>>? = null, databaseName: Output<String>? = null, databaseRouting: Output<Either<String, DatabaseRouting>>? = null, eventGridResourceId: Output<String>? = null, eventHubResourceId: Output<String>? = null, ignoreFirstRecord: Output<Boolean>? = null, kind: Output<String>? = null, location: Output<String>? = null, managedIdentityResourceId: Output<String>? = null, mappingRuleName: Output<String>? = null, resourceGroupName: Output<String>? = null, storageAccountResourceId: Output<String>? = null, tableName: Output<String>? = null)

Properties

Link copied to clipboard
val blobStorageEventType: Output<Either<String, BlobStorageEventType>>? = null

The name of blob storage event type to process.

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

The name of the Kusto cluster.

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 cluster.

Link copied to clipboard
val databaseRouting: Output<Either<String, DatabaseRouting>>? = null

Indication for database routing information from the data connection, by default only database routing information is allowed

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

The name of the data connection.

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

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

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

The resource ID of the event grid that is subscribed to the storage account events.

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

The resource ID where the event grid is configured to send events.

Link copied to clipboard
val ignoreFirstRecord: Output<Boolean>? = null

A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file

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

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

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 and storage account.

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

The resource ID of the storage account where the data resides.

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.

Functions

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