IotConnector

class IotConnector : KotlinCustomResource

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

Properties

Link copied to clipboard

Device Mappings.

Link copied to clipboard
val etag: Output<String>?

An etag associated with the resource, used for optimistic concurrency when editing it.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Setting indicating whether the service has a managed identity associated with it.

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

The resource location.

Link copied to clipboard
val name: Output<String>

The resource name.

Link copied to clipboard

The provisioning state.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The resource type.

Link copied to clipboard
val urn: Output<String>