TimeSeriesInsightsEventSourceIothub

Manages an Azure IoT Time Series Insights IoTHub 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 exampleIoTHub = new Azure.Iot.IoTHub("exampleIoTHub", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        Sku = new Azure.Iot.Inputs.IoTHubSkuArgs
        {
            Name = "B1",
            Capacity = 1,
        },
    });

    var exampleConsumerGroup = new Azure.Iot.ConsumerGroup("exampleConsumerGroup", new()
    {
        IothubName = exampleIoTHub.Name,
        EventhubEndpointName = "events",
        ResourceGroupName = exampleResourceGroup.Name,
    });

    var storage = new Azure.Storage.Account("storage", 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 = storage.Name,
            Key = storage.PrimaryAccessKey,
        },
    });

    var exampleTimeSeriesInsightsEventSourceIothub = new Azure.Iot.TimeSeriesInsightsEventSourceIothub("exampleTimeSeriesInsightsEventSourceIothub", new()
    {
        Location = exampleResourceGroup.Location,
        EnvironmentId = exampleTimeSeriesInsightsGen2Environment.Id,
        IothubName = exampleIoTHub.Name,
        SharedAccessKey = exampleIoTHub.SharedAccessPolicies.Apply(sharedAccessPolicies => sharedAccessPolicies[0].PrimaryKey),
        SharedAccessKeyName = exampleIoTHub.SharedAccessPolicies.Apply(sharedAccessPolicies => sharedAccessPolicies[0].KeyName),
        ConsumerGroupName = exampleConsumerGroup.Name,
        EventSourceResourceId = exampleIoTHub.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"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
		}
		exampleIoTHub, err := iot.NewIoTHub(ctx, "exampleIoTHub", &iot.IoTHubArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			Sku: &iot.IoTHubSkuArgs{
				Name:     pulumi.String("B1"),
				Capacity: pulumi.Int(1),
			},
		})
		if err != nil {
			return err
		}
		exampleConsumerGroup, err := iot.NewConsumerGroup(ctx, "exampleConsumerGroup", &iot.ConsumerGroupArgs{
			IothubName:           exampleIoTHub.Name,
			EventhubEndpointName: pulumi.String("events"),
			ResourceGroupName:    exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		storage, err := storage.NewAccount(ctx, "storage", &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: storage.Name,
				Key:  storage.PrimaryAccessKey,
			},
		})
		if err != nil {
			return err
		}
		_, err = iot.NewTimeSeriesInsightsEventSourceIothub(ctx, "exampleTimeSeriesInsightsEventSourceIothub", &iot.TimeSeriesInsightsEventSourceIothubArgs{
			Location:      exampleResourceGroup.Location,
			EnvironmentId: exampleTimeSeriesInsightsGen2Environment.ID(),
			IothubName:    exampleIoTHub.Name,
			SharedAccessKey: exampleIoTHub.SharedAccessPolicies.ApplyT(func(sharedAccessPolicies []iot.IoTHubSharedAccessPolicy) (string, error) {
				return sharedAccessPolicies[0].PrimaryKey, nil
			}).(pulumi.StringOutput),
			SharedAccessKeyName: exampleIoTHub.SharedAccessPolicies.ApplyT(func(sharedAccessPolicies []iot.IoTHubSharedAccessPolicy) (string, error) {
				return sharedAccessPolicies[0].KeyName, nil
			}).(pulumi.StringOutput),
			ConsumerGroupName:     exampleConsumerGroup.Name,
			EventSourceResourceId: exampleIoTHub.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.iot.IoTHub;
import com.pulumi.azure.iot.IoTHubArgs;
import com.pulumi.azure.iot.inputs.IoTHubSkuArgs;
import com.pulumi.azure.iot.ConsumerGroup;
import com.pulumi.azure.iot.ConsumerGroupArgs;
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.TimeSeriesInsightsEventSourceIothub;
import com.pulumi.azure.iot.TimeSeriesInsightsEventSourceIothubArgs;
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 exampleIoTHub = new IoTHub("exampleIoTHub", IoTHubArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .sku(IoTHubSkuArgs.builder()
                .name("B1")
                .capacity("1")
                .build())
            .build());

        var exampleConsumerGroup = new ConsumerGroup("exampleConsumerGroup", ConsumerGroupArgs.builder()        
            .iothubName(exampleIoTHub.name())
            .eventhubEndpointName("events")
            .resourceGroupName(exampleResourceGroup.name())
            .build());

        var storage = new Account("storage", 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(storage.name())
                .key(storage.primaryAccessKey())
                .build())
            .build());

        var exampleTimeSeriesInsightsEventSourceIothub = new TimeSeriesInsightsEventSourceIothub("exampleTimeSeriesInsightsEventSourceIothub", TimeSeriesInsightsEventSourceIothubArgs.builder()        
            .location(exampleResourceGroup.location())
            .environmentId(exampleTimeSeriesInsightsGen2Environment.id())
            .iothubName(exampleIoTHub.name())
            .sharedAccessKey(exampleIoTHub.sharedAccessPolicies().applyValue(sharedAccessPolicies -> sharedAccessPolicies[0].primaryKey()))
            .sharedAccessKeyName(exampleIoTHub.sharedAccessPolicies().applyValue(sharedAccessPolicies -> sharedAccessPolicies[0].keyName()))
            .consumerGroupName(exampleConsumerGroup.name())
            .eventSourceResourceId(exampleIoTHub.id())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_io_t_hub = azure.iot.IoTHub("exampleIoTHub",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    sku=azure.iot.IoTHubSkuArgs(
        name="B1",
        capacity=1,
    ))
example_consumer_group = azure.iot.ConsumerGroup("exampleConsumerGroup",
    iothub_name=example_io_t_hub.name,
    eventhub_endpoint_name="events",
    resource_group_name=example_resource_group.name)
storage = azure.storage.Account("storage",
    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=storage.name,
        key=storage.primary_access_key,
    ))
example_time_series_insights_event_source_iothub = azure.iot.TimeSeriesInsightsEventSourceIothub("exampleTimeSeriesInsightsEventSourceIothub",
    location=example_resource_group.location,
    environment_id=example_time_series_insights_gen2_environment.id,
    iothub_name=example_io_t_hub.name,
    shared_access_key=example_io_t_hub.shared_access_policies[0].primary_key,
    shared_access_key_name=example_io_t_hub.shared_access_policies[0].key_name,
    consumer_group_name=example_consumer_group.name,
    event_source_resource_id=example_io_t_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 exampleIoTHub = new azure.iot.IoTHub("exampleIoTHub", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    sku: {
        name: "B1",
        capacity: 1,
    },
});
const exampleConsumerGroup = new azure.iot.ConsumerGroup("exampleConsumerGroup", {
    iothubName: exampleIoTHub.name,
    eventhubEndpointName: "events",
    resourceGroupName: exampleResourceGroup.name,
});
const storage = new azure.storage.Account("storage", {
    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: storage.name,
        key: storage.primaryAccessKey,
    },
});
const exampleTimeSeriesInsightsEventSourceIothub = new azure.iot.TimeSeriesInsightsEventSourceIothub("exampleTimeSeriesInsightsEventSourceIothub", {
    location: exampleResourceGroup.location,
    environmentId: exampleTimeSeriesInsightsGen2Environment.id,
    iothubName: exampleIoTHub.name,
    sharedAccessKey: exampleIoTHub.sharedAccessPolicies.apply(sharedAccessPolicies => sharedAccessPolicies[0].primaryKey),
    sharedAccessKeyName: exampleIoTHub.sharedAccessPolicies.apply(sharedAccessPolicies => sharedAccessPolicies[0].keyName),
    consumerGroupName: exampleConsumerGroup.name,
    eventSourceResourceId: exampleIoTHub.id,
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleIoTHub:
    type: azure:iot:IoTHub
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      sku:
        name: B1
        capacity: 1
  exampleConsumerGroup:
    type: azure:iot:ConsumerGroup
    properties:
      iothubName: ${exampleIoTHub.name}
      eventhubEndpointName: events
      resourceGroupName: ${exampleResourceGroup.name}
  storage:
    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: ${storage.name}
        key: ${storage.primaryAccessKey}
  exampleTimeSeriesInsightsEventSourceIothub:
    type: azure:iot:TimeSeriesInsightsEventSourceIothub
    properties:
      location: ${exampleResourceGroup.location}
      environmentId: ${exampleTimeSeriesInsightsGen2Environment.id}
      iothubName: ${exampleIoTHub.name}
      sharedAccessKey: ${exampleIoTHub.sharedAccessPolicies[0].primaryKey}
      sharedAccessKeyName: ${exampleIoTHub.sharedAccessPolicies[0].keyName}
      consumerGroupName: ${exampleConsumerGroup.name}
      eventSourceResourceId: ${exampleIoTHub.id}

Create TimeSeriesInsightsEventSourceIothub Resource

new TimeSeriesInsightsEventSourceIothub(name: string, args: TimeSeriesInsightsEventSourceIothubArgs, opts?: CustomResourceOptions);
@overload
def TimeSeriesInsightsEventSourceIothub(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,
                                        iothub_name: Optional[str] = None,
                                        location: Optional[str] = None,
                                        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 TimeSeriesInsightsEventSourceIothub(resource_name: str,
                                        args: TimeSeriesInsightsEventSourceIothubArgs,
                                        opts: Optional[ResourceOptions] = None)
func NewTimeSeriesInsightsEventSourceIothub(ctx *Context, name string, args TimeSeriesInsightsEventSourceIothubArgs, opts ...ResourceOption) (*TimeSeriesInsightsEventSourceIothub, error)
public TimeSeriesInsightsEventSourceIothub(string name, TimeSeriesInsightsEventSourceIothubArgs args, CustomResourceOptions? opts = null)
public TimeSeriesInsightsEventSourceIothub(String name, TimeSeriesInsightsEventSourceIothubArgs args)
public TimeSeriesInsightsEventSourceIothub(String name, TimeSeriesInsightsEventSourceIothubArgs args, CustomResourceOptions options)
type: azure:iot:TimeSeriesInsightsEventSourceIothub
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TimeSeriesInsightsEventSourceIothubArgs
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 TimeSeriesInsightsEventSourceIothubArgs
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 TimeSeriesInsightsEventSourceIothubArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TimeSeriesInsightsEventSourceIothubArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TimeSeriesInsightsEventSourceIothubArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

TimeSeriesInsightsEventSourceIothub 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 TimeSeriesInsightsEventSourceIothub resource accepts the following input properties:

ConsumerGroupName string

Specifies the name of the IotHub 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.

IothubName string

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

SharedAccessKey string

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

SharedAccessKeyName string

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

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 IoTHub 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 IotHub 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.

IothubName string

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

SharedAccessKey string

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

SharedAccessKeyName string

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

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 IoTHub 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 IotHub 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.

iothubName String

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

sharedAccessKey String

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

sharedAccessKeyName String

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

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 IoTHub 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 IotHub 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.

iothubName string

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

sharedAccessKey string

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

sharedAccessKeyName string

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

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 IoTHub 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 IotHub 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.

iothub_name str

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

shared_access_key str

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

shared_access_key_name str

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

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 IoTHub 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 IotHub 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.

iothubName String

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

sharedAccessKey String

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

sharedAccessKeyName String

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

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 IoTHub 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 TimeSeriesInsightsEventSourceIothub 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 TimeSeriesInsightsEventSourceIothub Resource

Get an existing TimeSeriesInsightsEventSourceIothub 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?: TimeSeriesInsightsEventSourceIothubState, opts?: CustomResourceOptions): TimeSeriesInsightsEventSourceIothub
@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,
        iothub_name: Optional[str] = None,
        location: Optional[str] = None,
        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) -> TimeSeriesInsightsEventSourceIothub
func GetTimeSeriesInsightsEventSourceIothub(ctx *Context, name string, id IDInput, state *TimeSeriesInsightsEventSourceIothubState, opts ...ResourceOption) (*TimeSeriesInsightsEventSourceIothub, error)
public static TimeSeriesInsightsEventSourceIothub Get(string name, Input<string> id, TimeSeriesInsightsEventSourceIothubState? state, CustomResourceOptions? opts = null)
public static TimeSeriesInsightsEventSourceIothub get(String name, Output<String> id, TimeSeriesInsightsEventSourceIothubState 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 IotHub 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.

IothubName string

Specifies the name of the IotHub 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 IoTHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

SharedAccessKey string

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

SharedAccessKeyName string

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

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

IothubName string

Specifies the name of the IotHub 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 IoTHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

SharedAccessKey string

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

SharedAccessKeyName string

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

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

iothubName String

Specifies the name of the IotHub 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 IoTHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

sharedAccessKey String

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

sharedAccessKeyName String

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

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

iothubName string

Specifies the name of the IotHub 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 IoTHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

sharedAccessKey string

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

sharedAccessKeyName string

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

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

iothub_name str

Specifies the name of the IotHub 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 IoTHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

shared_access_key str

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

shared_access_key_name str

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

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

iothubName String

Specifies the name of the IotHub 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 IoTHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

sharedAccessKey String

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

sharedAccessKeyName String

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

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 IoTHub Event Source can be imported using the resource id, e.g.

 $ pulumi import azure:iot/timeSeriesInsightsEventSourceIothub:TimeSeriesInsightsEventSourceIothub 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.