Time Series Insights Event Source Eventhub Args
data class TimeSeriesInsightsEventSourceEventhubArgs(val consumerGroupName: Output<String>? = null, val environmentId: Output<String>? = null, val eventSourceResourceId: Output<String>? = null, val eventhubName: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val namespaceName: Output<String>? = null, val sharedAccessKey: Output<String>? = null, val sharedAccessKeyName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val timestampPropertyName: Output<String>? = null) : ConvertibleToJava<TimeSeriesInsightsEventSourceEventhubArgs>
Manages an Azure IoT Time Series Insights EventHub Event Source.
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.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.eventhub.AuthorizationRule;
import com.pulumi.azure.eventhub.AuthorizationRuleArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.iot.TimeSeriesInsightsGen2Environment;
import com.pulumi.azure.iot.TimeSeriesInsightsGen2EnvironmentArgs;
import com.pulumi.azure.iot.inputs.TimeSeriesInsightsGen2EnvironmentStorageArgs;
import com.pulumi.azure.iot.TimeSeriesInsightsEventSourceEventhub;
import com.pulumi.azure.iot.TimeSeriesInsightsEventSourceEventhubArgs;
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()
.name("example")
.location("West Europe")
.build());
var exampleEventHubNamespace = new EventHubNamespace("exampleEventHubNamespace", EventHubNamespaceArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.sku("Standard")
.build());
var exampleEventHub = new EventHub("exampleEventHub", EventHubArgs.builder()
.name("example")
.namespaceName(exampleEventHubNamespace.name())
.resourceGroupName(example.name())
.partitionCount(2)
.messageRetention(7)
.build());
var exampleConsumerGroup = new ConsumerGroup("exampleConsumerGroup", ConsumerGroupArgs.builder()
.name("example")
.namespaceName(exampleEventHubNamespace.name())
.eventhubName(exampleEventHub.name())
.resourceGroupName(example.name())
.build());
var exampleAuthorizationRule = new AuthorizationRule("exampleAuthorizationRule", AuthorizationRuleArgs.builder()
.name("example")
.namespaceName(exampleEventHubNamespace.name())
.eventhubName(exampleEventHub.name())
.resourceGroupName(example.name())
.listen(true)
.send(false)
.manage(false)
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleTimeSeriesInsightsGen2Environment = new TimeSeriesInsightsGen2Environment("exampleTimeSeriesInsightsGen2Environment", TimeSeriesInsightsGen2EnvironmentArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.skuName("L1")
.idProperties("id")
.storage(TimeSeriesInsightsGen2EnvironmentStorageArgs.builder()
.name(exampleAccount.name())
.key(exampleAccount.primaryAccessKey())
.build())
.build());
var exampleTimeSeriesInsightsEventSourceEventhub = new TimeSeriesInsightsEventSourceEventhub("exampleTimeSeriesInsightsEventSourceEventhub", TimeSeriesInsightsEventSourceEventhubArgs.builder()
.name("example")
.location(example.location())
.environmentId(exampleTimeSeriesInsightsGen2Environment.id())
.eventhubName(exampleEventHub.name())
.namespaceName(exampleEventHubNamespace.name())
.sharedAccessKey(exampleAuthorizationRule.primaryKey())
.sharedAccessKeyName(exampleAuthorizationRule.name())
.consumerGroupName(exampleConsumerGroup.name())
.eventSourceResourceId(exampleEventHub.id())
.build());
}
}
Content copied to clipboard
Import
Azure IoT Time Series Insights EventHub Event Source can be imported using the resource id
, e.g.
$ pulumi import azure:iot/timeSeriesInsightsEventSourceEventhub:TimeSeriesInsightsEventSourceEventhub example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.TimeSeriesInsights/environments/environment1/eventSources/example
Content copied to clipboard
Constructors
Link copied to clipboard
fun TimeSeriesInsightsEventSourceEventhubArgs(consumerGroupName: Output<String>? = null, environmentId: Output<String>? = null, eventSourceResourceId: Output<String>? = null, eventhubName: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, namespaceName: Output<String>? = null, sharedAccessKey: Output<String>? = null, sharedAccessKeyName: Output<String>? = null, tags: Output<Map<String, String>>? = null, timestampPropertyName: Output<String>? = null)