We recommend using Azure Native.
azure.iot.TimeSeriesInsightsEventSourceIothub
Explore with Pulumi AI
Manages an Azure IoT Time Series Insights IoTHub Event Source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example",
location: "West Europe",
});
const exampleIoTHub = new azure.iot.IoTHub("example", {
name: "example",
resourceGroupName: example.name,
location: example.location,
sku: {
name: "B1",
capacity: 1,
},
});
const exampleConsumerGroup = new azure.iot.ConsumerGroup("example", {
name: "example",
iothubName: exampleIoTHub.name,
eventhubEndpointName: "events",
resourceGroupName: example.name,
});
const storage = new azure.storage.Account("storage", {
name: "example",
location: example.location,
resourceGroupName: example.name,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const exampleTimeSeriesInsightsGen2Environment = new azure.iot.TimeSeriesInsightsGen2Environment("example", {
name: "example",
location: example.location,
resourceGroupName: example.name,
skuName: "L1",
idProperties: ["id"],
storage: {
name: storage.name,
key: storage.primaryAccessKey,
},
});
const exampleTimeSeriesInsightsEventSourceIothub = new azure.iot.TimeSeriesInsightsEventSourceIothub("example", {
name: "example",
location: example.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,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example",
location="West Europe")
example_io_t_hub = azure.iot.IoTHub("example",
name="example",
resource_group_name=example.name,
location=example.location,
sku=azure.iot.IoTHubSkuArgs(
name="B1",
capacity=1,
))
example_consumer_group = azure.iot.ConsumerGroup("example",
name="example",
iothub_name=example_io_t_hub.name,
eventhub_endpoint_name="events",
resource_group_name=example.name)
storage = azure.storage.Account("storage",
name="example",
location=example.location,
resource_group_name=example.name,
account_tier="Standard",
account_replication_type="LRS")
example_time_series_insights_gen2_environment = azure.iot.TimeSeriesInsightsGen2Environment("example",
name="example",
location=example.location,
resource_group_name=example.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("example",
name="example",
location=example.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)
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 {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleIoTHub, err := iot.NewIoTHub(ctx, "example", &iot.IoTHubArgs{
Name: pulumi.String("example"),
ResourceGroupName: example.Name,
Location: example.Location,
Sku: &iot.IoTHubSkuArgs{
Name: pulumi.String("B1"),
Capacity: pulumi.Int(1),
},
})
if err != nil {
return err
}
exampleConsumerGroup, err := iot.NewConsumerGroup(ctx, "example", &iot.ConsumerGroupArgs{
Name: pulumi.String("example"),
IothubName: exampleIoTHub.Name,
EventhubEndpointName: pulumi.String("events"),
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
storage, err := storage.NewAccount(ctx, "storage", &storage.AccountArgs{
Name: pulumi.String("example"),
Location: example.Location,
ResourceGroupName: example.Name,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("LRS"),
})
if err != nil {
return err
}
exampleTimeSeriesInsightsGen2Environment, err := iot.NewTimeSeriesInsightsGen2Environment(ctx, "example", &iot.TimeSeriesInsightsGen2EnvironmentArgs{
Name: pulumi.String("example"),
Location: example.Location,
ResourceGroupName: example.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, "example", &iot.TimeSeriesInsightsEventSourceIothubArgs{
Name: pulumi.String("example"),
Location: example.Location,
EnvironmentId: exampleTimeSeriesInsightsGen2Environment.ID(),
IothubName: exampleIoTHub.Name,
SharedAccessKey: exampleIoTHub.SharedAccessPolicies.ApplyT(func(sharedAccessPolicies []iot.IoTHubSharedAccessPolicy) (*string, error) {
return &sharedAccessPolicies[0].PrimaryKey, nil
}).(pulumi.StringPtrOutput),
SharedAccessKeyName: exampleIoTHub.SharedAccessPolicies.ApplyT(func(sharedAccessPolicies []iot.IoTHubSharedAccessPolicy) (*string, error) {
return &sharedAccessPolicies[0].KeyName, nil
}).(pulumi.StringPtrOutput),
ConsumerGroupName: exampleConsumerGroup.Name,
EventSourceResourceId: exampleIoTHub.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example",
Location = "West Europe",
});
var exampleIoTHub = new Azure.Iot.IoTHub("example", new()
{
Name = "example",
ResourceGroupName = example.Name,
Location = example.Location,
Sku = new Azure.Iot.Inputs.IoTHubSkuArgs
{
Name = "B1",
Capacity = 1,
},
});
var exampleConsumerGroup = new Azure.Iot.ConsumerGroup("example", new()
{
Name = "example",
IothubName = exampleIoTHub.Name,
EventhubEndpointName = "events",
ResourceGroupName = example.Name,
});
var storage = new Azure.Storage.Account("storage", new()
{
Name = "example",
Location = example.Location,
ResourceGroupName = example.Name,
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var exampleTimeSeriesInsightsGen2Environment = new Azure.Iot.TimeSeriesInsightsGen2Environment("example", new()
{
Name = "example",
Location = example.Location,
ResourceGroupName = example.Name,
SkuName = "L1",
IdProperties = new[]
{
"id",
},
Storage = new Azure.Iot.Inputs.TimeSeriesInsightsGen2EnvironmentStorageArgs
{
Name = storage.Name,
Key = storage.PrimaryAccessKey,
},
});
var exampleTimeSeriesInsightsEventSourceIothub = new Azure.Iot.TimeSeriesInsightsEventSourceIothub("example", new()
{
Name = "example",
Location = example.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 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example")
.location("West Europe")
.build());
var exampleIoTHub = new IoTHub("exampleIoTHub", IoTHubArgs.builder()
.name("example")
.resourceGroupName(example.name())
.location(example.location())
.sku(IoTHubSkuArgs.builder()
.name("B1")
.capacity("1")
.build())
.build());
var exampleConsumerGroup = new ConsumerGroup("exampleConsumerGroup", ConsumerGroupArgs.builder()
.name("example")
.iothubName(exampleIoTHub.name())
.eventhubEndpointName("events")
.resourceGroupName(example.name())
.build());
var storage = new Account("storage", 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(storage.name())
.key(storage.primaryAccessKey())
.build())
.build());
var exampleTimeSeriesInsightsEventSourceIothub = new TimeSeriesInsightsEventSourceIothub("exampleTimeSeriesInsightsEventSourceIothub", TimeSeriesInsightsEventSourceIothubArgs.builder()
.name("example")
.location(example.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());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example
location: West Europe
exampleIoTHub:
type: azure:iot:IoTHub
name: example
properties:
name: example
resourceGroupName: ${example.name}
location: ${example.location}
sku:
name: B1
capacity: '1'
exampleConsumerGroup:
type: azure:iot:ConsumerGroup
name: example
properties:
name: example
iothubName: ${exampleIoTHub.name}
eventhubEndpointName: events
resourceGroupName: ${example.name}
storage:
type: azure:storage:Account
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
accountTier: Standard
accountReplicationType: LRS
exampleTimeSeriesInsightsGen2Environment:
type: azure:iot:TimeSeriesInsightsGen2Environment
name: example
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
skuName: L1
idProperties:
- id
storage:
name: ${storage.name}
key: ${storage.primaryAccessKey}
exampleTimeSeriesInsightsEventSourceIothub:
type: azure:iot:TimeSeriesInsightsEventSourceIothub
name: example
properties:
name: example
location: ${example.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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TimeSeriesInsightsEventSourceIothub(name: string, args: TimeSeriesInsightsEventSourceIothubArgs, opts?: CustomResourceOptions);
@overload
def TimeSeriesInsightsEventSourceIothub(resource_name: str,
args: TimeSeriesInsightsEventSourceIothubArgs,
opts: Optional[ResourceOptions] = None)
@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,
shared_access_key: Optional[str] = None,
shared_access_key_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timestamp_property_name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var timeSeriesInsightsEventSourceIothubResource = new Azure.Iot.TimeSeriesInsightsEventSourceIothub("timeSeriesInsightsEventSourceIothubResource", new()
{
ConsumerGroupName = "string",
EnvironmentId = "string",
EventSourceResourceId = "string",
IothubName = "string",
SharedAccessKey = "string",
SharedAccessKeyName = "string",
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
TimestampPropertyName = "string",
});
example, err := iot.NewTimeSeriesInsightsEventSourceIothub(ctx, "timeSeriesInsightsEventSourceIothubResource", &iot.TimeSeriesInsightsEventSourceIothubArgs{
ConsumerGroupName: pulumi.String("string"),
EnvironmentId: pulumi.String("string"),
EventSourceResourceId: pulumi.String("string"),
IothubName: pulumi.String("string"),
SharedAccessKey: pulumi.String("string"),
SharedAccessKeyName: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TimestampPropertyName: pulumi.String("string"),
})
var timeSeriesInsightsEventSourceIothubResource = new TimeSeriesInsightsEventSourceIothub("timeSeriesInsightsEventSourceIothubResource", TimeSeriesInsightsEventSourceIothubArgs.builder()
.consumerGroupName("string")
.environmentId("string")
.eventSourceResourceId("string")
.iothubName("string")
.sharedAccessKey("string")
.sharedAccessKeyName("string")
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.timestampPropertyName("string")
.build());
time_series_insights_event_source_iothub_resource = azure.iot.TimeSeriesInsightsEventSourceIothub("timeSeriesInsightsEventSourceIothubResource",
consumer_group_name="string",
environment_id="string",
event_source_resource_id="string",
iothub_name="string",
shared_access_key="string",
shared_access_key_name="string",
location="string",
name="string",
tags={
"string": "string",
},
timestamp_property_name="string")
const timeSeriesInsightsEventSourceIothubResource = new azure.iot.TimeSeriesInsightsEventSourceIothub("timeSeriesInsightsEventSourceIothubResource", {
consumerGroupName: "string",
environmentId: "string",
eventSourceResourceId: "string",
iothubName: "string",
sharedAccessKey: "string",
sharedAccessKeyName: "string",
location: "string",
name: "string",
tags: {
string: "string",
},
timestampPropertyName: "string",
});
type: azure:iot:TimeSeriesInsightsEventSourceIothub
properties:
consumerGroupName: string
environmentId: string
eventSourceResourceId: string
iothubName: string
location: string
name: string
sharedAccessKey: string
sharedAccessKeyName: string
tags:
string: string
timestampPropertyName: string
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:
- Consumer
Group stringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- Environment
Id 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.
- Event
Source stringResource Id - Specifies the resource id where events will be coming from.
- Iothub
Name string - Specifies the name of the IotHub which will be associated with this resource.
- string
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- 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.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Timestamp
Property stringName - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- Consumer
Group stringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- Environment
Id 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.
- Event
Source stringResource Id - Specifies the resource id where events will be coming from.
- Iothub
Name string - Specifies the name of the IotHub which will be associated with this resource.
- string
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- 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.
- map[string]string
- A mapping of tags to assign to the resource.
- Timestamp
Property stringName - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- consumer
Group StringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- environment
Id 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.
- event
Source StringResource Id - Specifies the resource id where events will be coming from.
- iothub
Name String - Specifies the name of the IotHub which will be associated with this resource.
- String
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- 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.
- Map<String,String>
- A mapping of tags to assign to the resource.
- timestamp
Property StringName - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- consumer
Group stringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- environment
Id 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.
- event
Source stringResource Id - Specifies the resource id where events will be coming from.
- iothub
Name string - Specifies the name of the IotHub which will be associated with this resource.
- string
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- 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.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- timestamp
Property stringName - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- consumer_
group_ strname - 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_ strresource_ id - 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.
- str
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- 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.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- timestamp_
property_ strname - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- consumer
Group StringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- environment
Id 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.
- event
Source StringResource Id - Specifies the resource id where events will be coming from.
- iothub
Name String - Specifies the name of the IotHub which will be associated with this resource.
- String
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- 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.
- Map<String>
- A mapping of tags to assign to the resource.
- timestamp
Property StringName - 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.
- Consumer
Group stringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- Environment
Id 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.
- Event
Source stringResource Id - Specifies the resource id where events will be coming from.
- Iothub
Name 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.
- string
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- string
- Specifies the name of the Shared Access key that grants the Event Source access to the IotHub.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Timestamp
Property stringName - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- Consumer
Group stringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- Environment
Id 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.
- Event
Source stringResource Id - Specifies the resource id where events will be coming from.
- Iothub
Name 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.
- string
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- string
- Specifies the name of the Shared Access key that grants the Event Source access to the IotHub.
- map[string]string
- A mapping of tags to assign to the resource.
- Timestamp
Property stringName - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- consumer
Group StringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- environment
Id 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.
- event
Source StringResource Id - Specifies the resource id where events will be coming from.
- iothub
Name 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.
- String
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- String
- Specifies the name of the Shared Access key that grants the Event Source access to the IotHub.
- Map<String,String>
- A mapping of tags to assign to the resource.
- timestamp
Property StringName - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- consumer
Group stringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- environment
Id 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.
- event
Source stringResource Id - Specifies the resource id where events will be coming from.
- iothub
Name 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.
- string
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- string
- Specifies the name of the Shared Access key that grants the Event Source access to the IotHub.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- timestamp
Property stringName - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- consumer_
group_ strname - 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_ strresource_ id - 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.
- str
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- str
- Specifies the name of the Shared Access key that grants the Event Source access to the IotHub.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- timestamp_
property_ strname - Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.
- consumer
Group StringName - Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.
- environment
Id 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.
- event
Source StringResource Id - Specifies the resource id where events will be coming from.
- iothub
Name 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.
- String
- Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.
- String
- Specifies the name of the Shared Access key that grants the Event Source access to the IotHub.
- Map<String>
- A mapping of tags to assign to the resource.
- timestamp
Property StringName - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.