Iot Connector Args
data class IotConnectorArgs(val deviceMapping: Output<IotMappingPropertiesArgs>? = null, val identity: Output<ServiceManagedIdentityIdentityArgs>? = null, val ingestionEndpointConfiguration: Output<IotEventHubIngestionEndpointConfigurationArgs>? = null, val iotConnectorName: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<IotConnectorArgs>
IoT Connector definition. Uses Azure REST API version 2023-02-28. In version 1.x of the Azure Native provider, it used API version 2022-05-15. Other available API versions: 2023-09-06, 2023-11-01, 2023-12-01, 2024-03-01, 2024-03-31, 2025-03-01-preview.
Example Usage
Create an IoT Connector
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var iotConnector = new AzureNative.HealthcareApis.IotConnector("iotConnector", new()
{
DeviceMapping = new AzureNative.HealthcareApis.Inputs.IotMappingPropertiesArgs
{
Content = new Dictionary<string, object?>
{
["template"] = new[]
{
new Dictionary<string, object?>
{
["template"] = new Dictionary<string, object?>
{
["deviceIdExpression"] = "$.deviceid",
["timestampExpression"] = "$.measurementdatetime",
["typeMatchExpression"] = "$..[?(@heartrate)]",
["typeName"] = "heartrate",
["values"] = new[]
{
new Dictionary<string, object?>
{
["required"] = "true",
["valueExpression"] = "$.heartrate",
["valueName"] = "hr",
},
},
},
["templateType"] = "JsonPathContent",
},
},
["templateType"] = "CollectionContent",
},
},
Identity = new AzureNative.HealthcareApis.Inputs.ServiceManagedIdentityIdentityArgs
{
Type = AzureNative.HealthcareApis.ServiceManagedIdentityType.SystemAssigned,
},
IngestionEndpointConfiguration = new AzureNative.HealthcareApis.Inputs.IotEventHubIngestionEndpointConfigurationArgs
{
ConsumerGroup = "ConsumerGroupA",
EventHubName = "MyEventHubName",
FullyQualifiedEventHubNamespace = "myeventhub.servicesbus.windows.net",
},
IotConnectorName = "blue",
Location = "westus",
ResourceGroupName = "testRG",
Tags =
{
{ "additionalProp1", "string" },
{ "additionalProp2", "string" },
{ "additionalProp3", "string" },
},
WorkspaceName = "workspace1",
});
});
Content copied to clipboard
package main
import (
healthcareapis "github.com/pulumi/pulumi-azure-native-sdk/healthcareapis/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := healthcareapis.NewIotConnector(ctx, "iotConnector", &healthcareapis.IotConnectorArgs{
DeviceMapping: &healthcareapis.IotMappingPropertiesArgs{
Content: pulumi.Any(map[string]interface{}{
"template": []map[string]interface{}{
map[string]interface{}{
"template": map[string]interface{}{
"deviceIdExpression": "$.deviceid",
"timestampExpression": "$.measurementdatetime",
"typeMatchExpression": "$..[?(@heartrate)]",
"typeName": "heartrate",
"values": []map[string]interface{}{
map[string]interface{}{
"required": "true",
"valueExpression": "$.heartrate",
"valueName": "hr",
},
},
},
"templateType": "JsonPathContent",
},
},
"templateType": "CollectionContent",
}),
},
Identity: &healthcareapis.ServiceManagedIdentityIdentityArgs{
Type: pulumi.String(healthcareapis.ServiceManagedIdentityTypeSystemAssigned),
},
IngestionEndpointConfiguration: &healthcareapis.IotEventHubIngestionEndpointConfigurationArgs{
ConsumerGroup: pulumi.String("ConsumerGroupA"),
EventHubName: pulumi.String("MyEventHubName"),
FullyQualifiedEventHubNamespace: pulumi.String("myeventhub.servicesbus.windows.net"),
},
IotConnectorName: pulumi.String("blue"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("testRG"),
Tags: pulumi.StringMap{
"additionalProp1": pulumi.String("string"),
"additionalProp2": pulumi.String("string"),
"additionalProp3": pulumi.String("string"),
},
WorkspaceName: pulumi.String("workspace1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.healthcareapis.IotConnector;
import com.pulumi.azurenative.healthcareapis.IotConnectorArgs;
import com.pulumi.azurenative.healthcareapis.inputs.IotMappingPropertiesArgs;
import com.pulumi.azurenative.healthcareapis.inputs.ServiceManagedIdentityIdentityArgs;
import com.pulumi.azurenative.healthcareapis.inputs.IotEventHubIngestionEndpointConfigurationArgs;
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 iotConnector = new IotConnector("iotConnector", IotConnectorArgs.builder()
.deviceMapping(IotMappingPropertiesArgs.builder()
.content(Map.ofEntries(
Map.entry("template", Map.ofEntries(
Map.entry("template", Map.ofEntries(
Map.entry("deviceIdExpression", "$.deviceid"),
Map.entry("timestampExpression", "$.measurementdatetime"),
Map.entry("typeMatchExpression", "$..[?(@heartrate)]"),
Map.entry("typeName", "heartrate"),
Map.entry("values", Map.ofEntries(
Map.entry("required", "true"),
Map.entry("valueExpression", "$.heartrate"),
Map.entry("valueName", "hr")
))
)),
Map.entry("templateType", "JsonPathContent")
)),
Map.entry("templateType", "CollectionContent")
))
.build())
.identity(ServiceManagedIdentityIdentityArgs.builder()
.type("SystemAssigned")
.build())
.ingestionEndpointConfiguration(IotEventHubIngestionEndpointConfigurationArgs.builder()
.consumerGroup("ConsumerGroupA")
.eventHubName("MyEventHubName")
.fullyQualifiedEventHubNamespace("myeventhub.servicesbus.windows.net")
.build())
.iotConnectorName("blue")
.location("westus")
.resourceGroupName("testRG")
.tags(Map.ofEntries(
Map.entry("additionalProp1", "string"),
Map.entry("additionalProp2", "string"),
Map.entry("additionalProp3", "string")
))
.workspaceName("workspace1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:healthcareapis:IotConnector blue /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(deviceMapping: Output<IotMappingPropertiesArgs>? = null, identity: Output<ServiceManagedIdentityIdentityArgs>? = null, ingestionEndpointConfiguration: Output<IotEventHubIngestionEndpointConfigurationArgs>? = null, iotConnectorName: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, workspaceName: Output<String>? = null)
Properties
Link copied to clipboard
Device Mappings.
Link copied to clipboard
Setting indicating whether the service has a managed identity associated with it.
Link copied to clipboard
Source configuration.
Link copied to clipboard
The name of IoT Connector resource.
Link copied to clipboard
The name of the resource group that contains the service instance.
Link copied to clipboard
The name of workspace resource.