TimeSeriesInsightsEventSourceEventhub

Manages an Azure IoT Time Series Insights EventHub Event Source.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleEventHubNamespace = new Azure.EventHub.EventHubNamespace("exampleEventHubNamespace", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        Sku = "Standard",
    });

    var exampleEventHub = new Azure.EventHub.EventHub("exampleEventHub", new()
    {
        NamespaceName = exampleEventHubNamespace.Name,
        ResourceGroupName = exampleResourceGroup.Name,
        PartitionCount = 2,
        MessageRetention = 7,
    });

    var exampleConsumerGroup = new Azure.EventHub.ConsumerGroup("exampleConsumerGroup", new()
    {
        NamespaceName = exampleEventHubNamespace.Name,
        EventhubName = exampleEventHub.Name,
        ResourceGroupName = exampleResourceGroup.Name,
    });

    var exampleAuthorizationRule = new Azure.EventHub.AuthorizationRule("exampleAuthorizationRule", new()
    {
        NamespaceName = exampleEventHubNamespace.Name,
        EventhubName = exampleEventHub.Name,
        ResourceGroupName = exampleResourceGroup.Name,
        Listen = true,
        Send = false,
        Manage = false,
    });

    var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });

    var exampleTimeSeriesInsightsGen2Environment = new Azure.Iot.TimeSeriesInsightsGen2Environment("exampleTimeSeriesInsightsGen2Environment", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        SkuName = "L1",
        IdProperties = new[]
        {
            "id",
        },
        Storage = new Azure.Iot.Inputs.TimeSeriesInsightsGen2EnvironmentStorageArgs
        {
            Name = exampleAccount.Name,
            Key = exampleAccount.PrimaryAccessKey,
        },
    });

    var exampleTimeSeriesInsightsEventSourceEventhub = new Azure.Iot.TimeSeriesInsightsEventSourceEventhub("exampleTimeSeriesInsightsEventSourceEventhub", new()
    {
        Location = exampleResourceGroup.Location,
        EnvironmentId = exampleTimeSeriesInsightsGen2Environment.Id,
        EventhubName = exampleEventHub.Name,
        NamespaceName = exampleEventHubNamespace.Name,
        SharedAccessKey = exampleAuthorizationRule.PrimaryKey,
        SharedAccessKeyName = exampleAuthorizationRule.Name,
        ConsumerGroupName = exampleConsumerGroup.Name,
        EventSourceResourceId = exampleEventHub.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/eventhub"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/iot"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleEventHubNamespace, err := eventhub.NewEventHubNamespace(ctx, "exampleEventHubNamespace", &eventhub.EventHubNamespaceArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			Sku:               pulumi.String("Standard"),
		})
		if err != nil {
			return err
		}
		exampleEventHub, err := eventhub.NewEventHub(ctx, "exampleEventHub", &eventhub.EventHubArgs{
			NamespaceName:     exampleEventHubNamespace.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			PartitionCount:    pulumi.Int(2),
			MessageRetention:  pulumi.Int(7),
		})
		if err != nil {
			return err
		}
		exampleConsumerGroup, err := eventhub.NewConsumerGroup(ctx, "exampleConsumerGroup", &eventhub.ConsumerGroupArgs{
			NamespaceName:     exampleEventHubNamespace.Name,
			EventhubName:      exampleEventHub.Name,
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		exampleAuthorizationRule, err := eventhub.NewAuthorizationRule(ctx, "exampleAuthorizationRule", &eventhub.AuthorizationRuleArgs{
			NamespaceName:     exampleEventHubNamespace.Name,
			EventhubName:      exampleEventHub.Name,
			ResourceGroupName: exampleResourceGroup.Name,
			Listen:            pulumi.Bool(true),
			Send:              pulumi.Bool(false),
			Manage:            pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			Location:               exampleResourceGroup.Location,
			ResourceGroupName:      exampleResourceGroup.Name,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		exampleTimeSeriesInsightsGen2Environment, err := iot.NewTimeSeriesInsightsGen2Environment(ctx, "exampleTimeSeriesInsightsGen2Environment", &iot.TimeSeriesInsightsGen2EnvironmentArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			SkuName:           pulumi.String("L1"),
			IdProperties: pulumi.StringArray{
				pulumi.String("id"),
			},
			Storage: &iot.TimeSeriesInsightsGen2EnvironmentStorageArgs{
				Name: exampleAccount.Name,
				Key:  exampleAccount.PrimaryAccessKey,
			},
		})
		if err != nil {
			return err
		}
		_, err = iot.NewTimeSeriesInsightsEventSourceEventhub(ctx, "exampleTimeSeriesInsightsEventSourceEventhub", &iot.TimeSeriesInsightsEventSourceEventhubArgs{
			Location:              exampleResourceGroup.Location,
			EnvironmentId:         exampleTimeSeriesInsightsGen2Environment.ID(),
			EventhubName:          exampleEventHub.Name,
			NamespaceName:         exampleEventHubNamespace.Name,
			SharedAccessKey:       exampleAuthorizationRule.PrimaryKey,
			SharedAccessKeyName:   exampleAuthorizationRule.Name,
			ConsumerGroupName:     exampleConsumerGroup.Name,
			EventSourceResourceId: exampleEventHub.ID(),
		})
		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.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleEventHubNamespace = new EventHubNamespace("exampleEventHubNamespace", EventHubNamespaceArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .sku("Standard")
            .build());

        var exampleEventHub = new EventHub("exampleEventHub", EventHubArgs.builder()        
            .namespaceName(exampleEventHubNamespace.name())
            .resourceGroupName(exampleResourceGroup.name())
            .partitionCount(2)
            .messageRetention(7)
            .build());

        var exampleConsumerGroup = new ConsumerGroup("exampleConsumerGroup", ConsumerGroupArgs.builder()        
            .namespaceName(exampleEventHubNamespace.name())
            .eventhubName(exampleEventHub.name())
            .resourceGroupName(exampleResourceGroup.name())
            .build());

        var exampleAuthorizationRule = new AuthorizationRule("exampleAuthorizationRule", AuthorizationRuleArgs.builder()        
            .namespaceName(exampleEventHubNamespace.name())
            .eventhubName(exampleEventHub.name())
            .resourceGroupName(exampleResourceGroup.name())
            .listen(true)
            .send(false)
            .manage(false)
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .build());

        var exampleTimeSeriesInsightsGen2Environment = new TimeSeriesInsightsGen2Environment("exampleTimeSeriesInsightsGen2Environment", TimeSeriesInsightsGen2EnvironmentArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .skuName("L1")
            .idProperties("id")
            .storage(TimeSeriesInsightsGen2EnvironmentStorageArgs.builder()
                .name(exampleAccount.name())
                .key(exampleAccount.primaryAccessKey())
                .build())
            .build());

        var exampleTimeSeriesInsightsEventSourceEventhub = new TimeSeriesInsightsEventSourceEventhub("exampleTimeSeriesInsightsEventSourceEventhub", TimeSeriesInsightsEventSourceEventhubArgs.builder()        
            .location(exampleResourceGroup.location())
            .environmentId(exampleTimeSeriesInsightsGen2Environment.id())
            .eventhubName(exampleEventHub.name())
            .namespaceName(exampleEventHubNamespace.name())
            .sharedAccessKey(exampleAuthorizationRule.primaryKey())
            .sharedAccessKeyName(exampleAuthorizationRule.name())
            .consumerGroupName(exampleConsumerGroup.name())
            .eventSourceResourceId(exampleEventHub.id())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_event_hub_namespace = azure.eventhub.EventHubNamespace("exampleEventHubNamespace",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    sku="Standard")
example_event_hub = azure.eventhub.EventHub("exampleEventHub",
    namespace_name=example_event_hub_namespace.name,
    resource_group_name=example_resource_group.name,
    partition_count=2,
    message_retention=7)
example_consumer_group = azure.eventhub.ConsumerGroup("exampleConsumerGroup",
    namespace_name=example_event_hub_namespace.name,
    eventhub_name=example_event_hub.name,
    resource_group_name=example_resource_group.name)
example_authorization_rule = azure.eventhub.AuthorizationRule("exampleAuthorizationRule",
    namespace_name=example_event_hub_namespace.name,
    eventhub_name=example_event_hub.name,
    resource_group_name=example_resource_group.name,
    listen=True,
    send=False,
    manage=False)
example_account = azure.storage.Account("exampleAccount",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    account_tier="Standard",
    account_replication_type="LRS")
example_time_series_insights_gen2_environment = azure.iot.TimeSeriesInsightsGen2Environment("exampleTimeSeriesInsightsGen2Environment",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    sku_name="L1",
    id_properties=["id"],
    storage=azure.iot.TimeSeriesInsightsGen2EnvironmentStorageArgs(
        name=example_account.name,
        key=example_account.primary_access_key,
    ))
example_time_series_insights_event_source_eventhub = azure.iot.TimeSeriesInsightsEventSourceEventhub("exampleTimeSeriesInsightsEventSourceEventhub",
    location=example_resource_group.location,
    environment_id=example_time_series_insights_gen2_environment.id,
    eventhub_name=example_event_hub.name,
    namespace_name=example_event_hub_namespace.name,
    shared_access_key=example_authorization_rule.primary_key,
    shared_access_key_name=example_authorization_rule.name,
    consumer_group_name=example_consumer_group.name,
    event_source_resource_id=example_event_hub.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("exampleEventHubNamespace", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    sku: "Standard",
});
const exampleEventHub = new azure.eventhub.EventHub("exampleEventHub", {
    namespaceName: exampleEventHubNamespace.name,
    resourceGroupName: exampleResourceGroup.name,
    partitionCount: 2,
    messageRetention: 7,
});
const exampleConsumerGroup = new azure.eventhub.ConsumerGroup("exampleConsumerGroup", {
    namespaceName: exampleEventHubNamespace.name,
    eventhubName: exampleEventHub.name,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleAuthorizationRule = new azure.eventhub.AuthorizationRule("exampleAuthorizationRule", {
    namespaceName: exampleEventHubNamespace.name,
    eventhubName: exampleEventHub.name,
    resourceGroupName: exampleResourceGroup.name,
    listen: true,
    send: false,
    manage: false,
});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleTimeSeriesInsightsGen2Environment = new azure.iot.TimeSeriesInsightsGen2Environment("exampleTimeSeriesInsightsGen2Environment", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    skuName: "L1",
    idProperties: ["id"],
    storage: {
        name: exampleAccount.name,
        key: exampleAccount.primaryAccessKey,
    },
});
const exampleTimeSeriesInsightsEventSourceEventhub = new azure.iot.TimeSeriesInsightsEventSourceEventhub("exampleTimeSeriesInsightsEventSourceEventhub", {
    location: exampleResourceGroup.location,
    environmentId: exampleTimeSeriesInsightsGen2Environment.id,
    eventhubName: exampleEventHub.name,
    namespaceName: exampleEventHubNamespace.name,
    sharedAccessKey: exampleAuthorizationRule.primaryKey,
    sharedAccessKeyName: exampleAuthorizationRule.name,
    consumerGroupName: exampleConsumerGroup.name,
    eventSourceResourceId: exampleEventHub.id,
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleEventHubNamespace:
    type: azure:eventhub:EventHubNamespace
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
      sku: Standard
  exampleEventHub:
    type: azure:eventhub:EventHub
    properties:
      namespaceName: ${exampleEventHubNamespace.name}
      resourceGroupName: ${exampleResourceGroup.name}
      partitionCount: 2
      messageRetention: 7
  exampleConsumerGroup:
    type: azure:eventhub:ConsumerGroup
    properties:
      namespaceName: ${exampleEventHubNamespace.name}
      eventhubName: ${exampleEventHub.name}
      resourceGroupName: ${exampleResourceGroup.name}
  exampleAuthorizationRule:
    type: azure:eventhub:AuthorizationRule
    properties:
      namespaceName: ${exampleEventHubNamespace.name}
      eventhubName: ${exampleEventHub.name}
      resourceGroupName: ${exampleResourceGroup.name}
      listen: true
      send: false
      manage: false
  exampleAccount:
    type: azure:storage:Account
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
      accountTier: Standard
      accountReplicationType: LRS
  exampleTimeSeriesInsightsGen2Environment:
    type: azure:iot:TimeSeriesInsightsGen2Environment
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
      skuName: L1
      idProperties:
        - id
      storage:
        name: ${exampleAccount.name}
        key: ${exampleAccount.primaryAccessKey}
  exampleTimeSeriesInsightsEventSourceEventhub:
    type: azure:iot:TimeSeriesInsightsEventSourceEventhub
    properties:
      location: ${exampleResourceGroup.location}
      environmentId: ${exampleTimeSeriesInsightsGen2Environment.id}
      eventhubName: ${exampleEventHub.name}
      namespaceName: ${exampleEventHubNamespace.name}
      sharedAccessKey: ${exampleAuthorizationRule.primaryKey}
      sharedAccessKeyName: ${exampleAuthorizationRule.name}
      consumerGroupName: ${exampleConsumerGroup.name}
      eventSourceResourceId: ${exampleEventHub.id}

Create TimeSeriesInsightsEventSourceEventhub Resource

new TimeSeriesInsightsEventSourceEventhub(name: string, args: TimeSeriesInsightsEventSourceEventhubArgs, opts?: CustomResourceOptions);
@overload
def TimeSeriesInsightsEventSourceEventhub(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          consumer_group_name: Optional[str] = None,
                                          environment_id: Optional[str] = None,
                                          event_source_resource_id: Optional[str] = None,
                                          eventhub_name: Optional[str] = None,
                                          location: Optional[str] = None,
                                          name: Optional[str] = None,
                                          namespace_name: Optional[str] = None,
                                          shared_access_key: Optional[str] = None,
                                          shared_access_key_name: Optional[str] = None,
                                          tags: Optional[Mapping[str, str]] = None,
                                          timestamp_property_name: Optional[str] = None)
@overload
def TimeSeriesInsightsEventSourceEventhub(resource_name: str,
                                          args: TimeSeriesInsightsEventSourceEventhubArgs,
                                          opts: Optional[ResourceOptions] = None)
func NewTimeSeriesInsightsEventSourceEventhub(ctx *Context, name string, args TimeSeriesInsightsEventSourceEventhubArgs, opts ...ResourceOption) (*TimeSeriesInsightsEventSourceEventhub, error)
public TimeSeriesInsightsEventSourceEventhub(string name, TimeSeriesInsightsEventSourceEventhubArgs args, CustomResourceOptions? opts = null)
public TimeSeriesInsightsEventSourceEventhub(String name, TimeSeriesInsightsEventSourceEventhubArgs args)
public TimeSeriesInsightsEventSourceEventhub(String name, TimeSeriesInsightsEventSourceEventhubArgs args, CustomResourceOptions options)
type: azure:iot:TimeSeriesInsightsEventSourceEventhub
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TimeSeriesInsightsEventSourceEventhubArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args TimeSeriesInsightsEventSourceEventhubArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args TimeSeriesInsightsEventSourceEventhubArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TimeSeriesInsightsEventSourceEventhubArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TimeSeriesInsightsEventSourceEventhubArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

TimeSeriesInsightsEventSourceEventhub Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The TimeSeriesInsightsEventSourceEventhub resource accepts the following input properties:

ConsumerGroupName string

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

EnvironmentId string

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

EventSourceResourceId string

Specifies the resource id where events will be coming from.

EventhubName string

Specifies the name of the EventHub which will be associated with this resource.

NamespaceName string

Specifies the EventHub Namespace name.

SharedAccessKey string

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

SharedAccessKeyName string

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

TimestampPropertyName string

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

ConsumerGroupName string

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

EnvironmentId string

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

EventSourceResourceId string

Specifies the resource id where events will be coming from.

EventhubName string

Specifies the name of the EventHub which will be associated with this resource.

NamespaceName string

Specifies the EventHub Namespace name.

SharedAccessKey string

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

SharedAccessKeyName string

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

Tags map[string]string

A mapping of tags to assign to the resource.

TimestampPropertyName string

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

consumerGroupName String

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

environmentId String

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

eventSourceResourceId String

Specifies the resource id where events will be coming from.

eventhubName String

Specifies the name of the EventHub which will be associated with this resource.

namespaceName String

Specifies the EventHub Namespace name.

sharedAccessKey String

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

sharedAccessKeyName String

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

location String

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name String

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

tags Map<String,String>

A mapping of tags to assign to the resource.

timestampPropertyName String

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

consumerGroupName string

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

environmentId string

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

eventSourceResourceId string

Specifies the resource id where events will be coming from.

eventhubName string

Specifies the name of the EventHub which will be associated with this resource.

namespaceName string

Specifies the EventHub Namespace name.

sharedAccessKey string

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

sharedAccessKeyName string

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name string

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

timestampPropertyName string

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

consumer_group_name str

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

environment_id str

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

event_source_resource_id str

Specifies the resource id where events will be coming from.

eventhub_name str

Specifies the name of the EventHub which will be associated with this resource.

namespace_name str

Specifies the EventHub Namespace name.

shared_access_key str

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

shared_access_key_name str

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name str

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

timestamp_property_name str

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

consumerGroupName String

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

environmentId String

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

eventSourceResourceId String

Specifies the resource id where events will be coming from.

eventhubName String

Specifies the name of the EventHub which will be associated with this resource.

namespaceName String

Specifies the EventHub Namespace name.

sharedAccessKey String

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

sharedAccessKeyName String

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

location String

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name String

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

tags Map<String>

A mapping of tags to assign to the resource.

timestampPropertyName String

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

Outputs

All input properties are implicitly available as output properties. Additionally, the TimeSeriesInsightsEventSourceEventhub resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing TimeSeriesInsightsEventSourceEventhub Resource

Get an existing TimeSeriesInsightsEventSourceEventhub resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: TimeSeriesInsightsEventSourceEventhubState, opts?: CustomResourceOptions): TimeSeriesInsightsEventSourceEventhub
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        consumer_group_name: Optional[str] = None,
        environment_id: Optional[str] = None,
        event_source_resource_id: Optional[str] = None,
        eventhub_name: Optional[str] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        namespace_name: Optional[str] = None,
        shared_access_key: Optional[str] = None,
        shared_access_key_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        timestamp_property_name: Optional[str] = None) -> TimeSeriesInsightsEventSourceEventhub
func GetTimeSeriesInsightsEventSourceEventhub(ctx *Context, name string, id IDInput, state *TimeSeriesInsightsEventSourceEventhubState, opts ...ResourceOption) (*TimeSeriesInsightsEventSourceEventhub, error)
public static TimeSeriesInsightsEventSourceEventhub Get(string name, Input<string> id, TimeSeriesInsightsEventSourceEventhubState? state, CustomResourceOptions? opts = null)
public static TimeSeriesInsightsEventSourceEventhub get(String name, Output<String> id, TimeSeriesInsightsEventSourceEventhubState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ConsumerGroupName string

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

EnvironmentId string

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

EventSourceResourceId string

Specifies the resource id where events will be coming from.

EventhubName string

Specifies the name of the EventHub which will be associated with this resource.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

NamespaceName string

Specifies the EventHub Namespace name.

SharedAccessKey string

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

SharedAccessKeyName string

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

TimestampPropertyName string

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

ConsumerGroupName string

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

EnvironmentId string

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

EventSourceResourceId string

Specifies the resource id where events will be coming from.

EventhubName string

Specifies the name of the EventHub which will be associated with this resource.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

NamespaceName string

Specifies the EventHub Namespace name.

SharedAccessKey string

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

SharedAccessKeyName string

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

Tags map[string]string

A mapping of tags to assign to the resource.

TimestampPropertyName string

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

consumerGroupName String

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

environmentId String

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

eventSourceResourceId String

Specifies the resource id where events will be coming from.

eventhubName String

Specifies the name of the EventHub which will be associated with this resource.

location String

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name String

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

namespaceName String

Specifies the EventHub Namespace name.

sharedAccessKey String

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

sharedAccessKeyName String

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

tags Map<String,String>

A mapping of tags to assign to the resource.

timestampPropertyName String

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

consumerGroupName string

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

environmentId string

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

eventSourceResourceId string

Specifies the resource id where events will be coming from.

eventhubName string

Specifies the name of the EventHub which will be associated with this resource.

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name string

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

namespaceName string

Specifies the EventHub Namespace name.

sharedAccessKey string

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

sharedAccessKeyName string

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

timestampPropertyName string

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

consumer_group_name str

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

environment_id str

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

event_source_resource_id str

Specifies the resource id where events will be coming from.

eventhub_name str

Specifies the name of the EventHub which will be associated with this resource.

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name str

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

namespace_name str

Specifies the EventHub Namespace name.

shared_access_key str

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

shared_access_key_name str

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

timestamp_property_name str

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

consumerGroupName String

Specifies the name of the EventHub Consumer Group that holds the partitions from which events will be read.

environmentId String

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

eventSourceResourceId String

Specifies the resource id where events will be coming from.

eventhubName String

Specifies the name of the EventHub which will be associated with this resource.

location String

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name String

Specifies the name of the Azure IoT Time Series Insights EventHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

namespaceName String

Specifies the EventHub Namespace name.

sharedAccessKey String

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the EventHub.

sharedAccessKeyName String

Specifies the name of the Shared Access key that grants the Event Source access to the EventHub.

tags Map<String>

A mapping of tags to assign to the resource.

timestampPropertyName String

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.

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

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.