IotConnectorArgs

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. API Version: 2022-05-15.

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 =
{
{ "template", new[]
{
{
{ "template",
{
{ "deviceIdExpression", "$.deviceid" },
{ "timestampExpression", "$.measurementdatetime" },
{ "typeMatchExpression", "$..[?(@heartrate)]" },
{ "typeName", "heartrate" },
{ "values", new[]
{
{
{ "required", "true" },
{ "valueExpression", "$.heartrate" },
{ "valueName", "hr" },
},
} },
} },
{ "templateType", "JsonPathContent" },
},
} },
{ "templateType", "CollectionContent" },
},
},
Identity = new AzureNative.HealthcareApis.Inputs.ServiceManagedIdentityIdentityArgs
{
Type = "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",
});
});
package main
import (
healthcareapis "github.com/pulumi/pulumi-azure-native-sdk/healthcareapis"
"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{
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("SystemAssigned"),
},
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
})
}
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 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(Map.of("content", Map.ofEntries(
Map.entry("template", IotMappingPropertiesArgs.builder()
.template(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.templateType("JsonPathContent")
.build()),
Map.entry("templateType", "CollectionContent")
)))
.identity(Map.of("type", "SystemAssigned"))
.ingestionEndpointConfiguration(Map.ofEntries(
Map.entry("consumerGroup", "ConsumerGroupA"),
Map.entry("eventHubName", "MyEventHubName"),
Map.entry("fullyQualifiedEventHubNamespace", "myeventhub.servicesbus.windows.net")
))
.iotConnectorName("blue")
.location("westus")
.resourceGroupName("testRG")
.tags(Map.ofEntries(
Map.entry("additionalProp1", "string"),
Map.entry("additionalProp2", "string"),
Map.entry("additionalProp3", "string")
))
.workspaceName("workspace1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:healthcareapis:IotConnector blue /subscriptions/subid/resourceGroups/testRG/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotconnectors/blue

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
Link copied to clipboard
val iotConnectorName: Output<String>? = null

The name of IoT Connector resource.

Link copied to clipboard
val location: Output<String>? = null

The resource location.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group that contains the service instance.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val workspaceName: Output<String>? = null

The name of workspace resource.

Functions

Link copied to clipboard
open override fun toJava(): IotConnectorArgs