azure.healthcare.MedtechService
Manages a Healthcare Med Tech Service.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var test = new Azure.Healthcare.MedtechService("test", new()
{
DeviceMappingJson = @"{
""templateType"": ""CollectionContent"",
""template"": [
{
""templateType"": ""JsonPathContent"",
""template"": {
""typeName"": ""heartrate"",
""typeMatchExpression"": ""$..[?(@heartrate)]"",
""deviceIdExpression"": ""$.deviceid"",
""timestampExpression"": ""$.measurementdatetime"",
""values"": [
{
""required"": ""true"",
""valueExpression"": ""$.heartrate"",
""valueName"": ""hr""
}
]
}
}
]
}
",
EventhubConsumerGroupName = "tfex-eventhub-consumer-group.name",
EventhubName = "tfex-eventhub.name",
EventhubNamespaceName = "tfex-eventhub-namespace.name",
Identity = new Azure.Healthcare.Inputs.MedtechServiceIdentityArgs
{
Type = "SystemAssigned",
},
Location = "east us",
WorkspaceId = "tfex-workspace_id",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/healthcare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := healthcare.NewMedtechService(ctx, "test", &healthcare.MedtechServiceArgs{
DeviceMappingJson: pulumi.String("{\n \"templateType\": \"CollectionContent\",\n \"template\": [\n {\n \"templateType\": \"JsonPathContent\",\n \"template\": {\n \"typeName\": \"heartrate\",\n \"typeMatchExpression\": \"$..[?(@heartrate)]\",\n \"deviceIdExpression\": \"$.deviceid\",\n \"timestampExpression\": \"$.measurementdatetime\",\n \"values\": [\n {\n \"required\": \"true\",\n \"valueExpression\": \"$.heartrate\",\n \"valueName\": \"hr\"\n }\n ]\n }\n }\n ]\n}\n\n"),
EventhubConsumerGroupName: pulumi.String("tfex-eventhub-consumer-group.name"),
EventhubName: pulumi.String("tfex-eventhub.name"),
EventhubNamespaceName: pulumi.String("tfex-eventhub-namespace.name"),
Identity: &healthcare.MedtechServiceIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
Location: pulumi.String("east us"),
WorkspaceId: pulumi.String("tfex-workspace_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.healthcare.MedtechService;
import com.pulumi.azure.healthcare.MedtechServiceArgs;
import com.pulumi.azure.healthcare.inputs.MedtechServiceIdentityArgs;
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 test = new MedtechService("test", MedtechServiceArgs.builder()
.deviceMappingJson("""
{
"templateType": "CollectionContent",
"template": [
{
"templateType": "JsonPathContent",
"template": {
"typeName": "heartrate",
"typeMatchExpression": "$..[?(@heartrate)]",
"deviceIdExpression": "$.deviceid",
"timestampExpression": "$.measurementdatetime",
"values": [
{
"required": "true",
"valueExpression": "$.heartrate",
"valueName": "hr"
}
]
}
}
]
}
""")
.eventhubConsumerGroupName("tfex-eventhub-consumer-group.name")
.eventhubName("tfex-eventhub.name")
.eventhubNamespaceName("tfex-eventhub-namespace.name")
.identity(MedtechServiceIdentityArgs.builder()
.type("SystemAssigned")
.build())
.location("east us")
.workspaceId("tfex-workspace_id")
.build());
}
}
import pulumi
import pulumi_azure as azure
test = azure.healthcare.MedtechService("test",
device_mapping_json="""{
"templateType": "CollectionContent",
"template": [
{
"templateType": "JsonPathContent",
"template": {
"typeName": "heartrate",
"typeMatchExpression": "$..[?(@heartrate)]",
"deviceIdExpression": "$.deviceid",
"timestampExpression": "$.measurementdatetime",
"values": [
{
"required": "true",
"valueExpression": "$.heartrate",
"valueName": "hr"
}
]
}
}
]
}
""",
eventhub_consumer_group_name="tfex-eventhub-consumer-group.name",
eventhub_name="tfex-eventhub.name",
eventhub_namespace_name="tfex-eventhub-namespace.name",
identity=azure.healthcare.MedtechServiceIdentityArgs(
type="SystemAssigned",
),
location="east us",
workspace_id="tfex-workspace_id")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const test = new azure.healthcare.MedtechService("test", {
deviceMappingJson: `{
"templateType": "CollectionContent",
"template": [
{
"templateType": "JsonPathContent",
"template": {
"typeName": "heartrate",
"typeMatchExpression": "$..[?(@heartrate)]",
"deviceIdExpression": "$.deviceid",
"timestampExpression": "$.measurementdatetime",
"values": [
{
"required": "true",
"valueExpression": "$.heartrate",
"valueName": "hr"
}
]
}
}
]
}
`,
eventhubConsumerGroupName: "tfex-eventhub-consumer-group.name",
eventhubName: "tfex-eventhub.name",
eventhubNamespaceName: "tfex-eventhub-namespace.name",
identity: {
type: "SystemAssigned",
},
location: "east us",
workspaceId: "tfex-workspace_id",
});
resources:
test:
type: azure:healthcare:MedtechService
properties:
deviceMappingJson: |+
{
"templateType": "CollectionContent",
"template": [
{
"templateType": "JsonPathContent",
"template": {
"typeName": "heartrate",
"typeMatchExpression": "$..[?(@heartrate)]",
"deviceIdExpression": "$.deviceid",
"timestampExpression": "$.measurementdatetime",
"values": [
{
"required": "true",
"valueExpression": "$.heartrate",
"valueName": "hr"
}
]
}
}
]
}
eventhubConsumerGroupName: tfex-eventhub-consumer-group.name
eventhubName: tfex-eventhub.name
eventhubNamespaceName: tfex-eventhub-namespace.name
identity:
type: SystemAssigned
location: east us
workspaceId: tfex-workspace_id
Create MedtechService Resource
new MedtechService(name: string, args: MedtechServiceArgs, opts?: CustomResourceOptions);
@overload
def MedtechService(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_mapping_json: Optional[str] = None,
eventhub_consumer_group_name: Optional[str] = None,
eventhub_name: Optional[str] = None,
eventhub_namespace_name: Optional[str] = None,
identity: Optional[MedtechServiceIdentityArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
workspace_id: Optional[str] = None)
@overload
def MedtechService(resource_name: str,
args: MedtechServiceArgs,
opts: Optional[ResourceOptions] = None)
func NewMedtechService(ctx *Context, name string, args MedtechServiceArgs, opts ...ResourceOption) (*MedtechService, error)
public MedtechService(string name, MedtechServiceArgs args, CustomResourceOptions? opts = null)
public MedtechService(String name, MedtechServiceArgs args)
public MedtechService(String name, MedtechServiceArgs args, CustomResourceOptions options)
type: azure:healthcare:MedtechService
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MedtechServiceArgs
- 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 MedtechServiceArgs
- 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 MedtechServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MedtechServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MedtechServiceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MedtechService 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 MedtechService resource accepts the following input properties:
- Device
Mapping stringJson Specifies the Device Mappings of the Med Tech Service.
- Eventhub
Consumer stringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- Eventhub
Name string Specifies the name of the Event Hub to connect to.
- Eventhub
Namespace stringName Specifies the namespace name of the Event Hub to connect to.
- Workspace
Id string Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- Identity
Medtech
Service Identity Args An
identity
block as defined below.- Location string
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- Name string
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- Dictionary<string, string>
A mapping of tags to assign to the Healthcare Med Tech Service.
- Device
Mapping stringJson Specifies the Device Mappings of the Med Tech Service.
- Eventhub
Consumer stringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- Eventhub
Name string Specifies the name of the Event Hub to connect to.
- Eventhub
Namespace stringName Specifies the namespace name of the Event Hub to connect to.
- Workspace
Id string Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- Identity
Medtech
Service Identity Args An
identity
block as defined below.- Location string
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- Name string
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- map[string]string
A mapping of tags to assign to the Healthcare Med Tech Service.
- device
Mapping StringJson Specifies the Device Mappings of the Med Tech Service.
- eventhub
Consumer StringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- eventhub
Name String Specifies the name of the Event Hub to connect to.
- eventhub
Namespace StringName Specifies the namespace name of the Event Hub to connect to.
- workspace
Id String Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- identity
Medtech
Service Identity Args An
identity
block as defined below.- location String
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- name String
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- Map<String,String>
A mapping of tags to assign to the Healthcare Med Tech Service.
- device
Mapping stringJson Specifies the Device Mappings of the Med Tech Service.
- eventhub
Consumer stringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- eventhub
Name string Specifies the name of the Event Hub to connect to.
- eventhub
Namespace stringName Specifies the namespace name of the Event Hub to connect to.
- workspace
Id string Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- identity
Medtech
Service Identity Args An
identity
block as defined below.- location string
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- name string
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- {[key: string]: string}
A mapping of tags to assign to the Healthcare Med Tech Service.
- device_
mapping_ strjson Specifies the Device Mappings of the Med Tech Service.
- eventhub_
consumer_ strgroup_ name Specifies the Consumer Group of the Event Hub to connect to.
- eventhub_
name str Specifies the name of the Event Hub to connect to.
- eventhub_
namespace_ strname Specifies the namespace name of the Event Hub to connect to.
- workspace_
id str Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- identity
Medtech
Service Identity Args An
identity
block as defined below.- location str
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- name str
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- Mapping[str, str]
A mapping of tags to assign to the Healthcare Med Tech Service.
- device
Mapping StringJson Specifies the Device Mappings of the Med Tech Service.
- eventhub
Consumer StringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- eventhub
Name String Specifies the name of the Event Hub to connect to.
- eventhub
Namespace StringName Specifies the namespace name of the Event Hub to connect to.
- workspace
Id String Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- identity Property Map
An
identity
block as defined below.- location String
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- name String
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- Map<String>
A mapping of tags to assign to the Healthcare Med Tech Service.
Outputs
All input properties are implicitly available as output properties. Additionally, the MedtechService 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 MedtechService Resource
Get an existing MedtechService 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?: MedtechServiceState, opts?: CustomResourceOptions): MedtechService
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device_mapping_json: Optional[str] = None,
eventhub_consumer_group_name: Optional[str] = None,
eventhub_name: Optional[str] = None,
eventhub_namespace_name: Optional[str] = None,
identity: Optional[MedtechServiceIdentityArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
workspace_id: Optional[str] = None) -> MedtechService
func GetMedtechService(ctx *Context, name string, id IDInput, state *MedtechServiceState, opts ...ResourceOption) (*MedtechService, error)
public static MedtechService Get(string name, Input<string> id, MedtechServiceState? state, CustomResourceOptions? opts = null)
public static MedtechService get(String name, Output<String> id, MedtechServiceState 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.
- Device
Mapping stringJson Specifies the Device Mappings of the Med Tech Service.
- Eventhub
Consumer stringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- Eventhub
Name string Specifies the name of the Event Hub to connect to.
- Eventhub
Namespace stringName Specifies the namespace name of the Event Hub to connect to.
- Identity
Medtech
Service Identity Args An
identity
block as defined below.- Location string
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- Name string
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- Dictionary<string, string>
A mapping of tags to assign to the Healthcare Med Tech Service.
- Workspace
Id string Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- Device
Mapping stringJson Specifies the Device Mappings of the Med Tech Service.
- Eventhub
Consumer stringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- Eventhub
Name string Specifies the name of the Event Hub to connect to.
- Eventhub
Namespace stringName Specifies the namespace name of the Event Hub to connect to.
- Identity
Medtech
Service Identity Args An
identity
block as defined below.- Location string
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- Name string
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- map[string]string
A mapping of tags to assign to the Healthcare Med Tech Service.
- Workspace
Id string Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- device
Mapping StringJson Specifies the Device Mappings of the Med Tech Service.
- eventhub
Consumer StringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- eventhub
Name String Specifies the name of the Event Hub to connect to.
- eventhub
Namespace StringName Specifies the namespace name of the Event Hub to connect to.
- identity
Medtech
Service Identity Args An
identity
block as defined below.- location String
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- name String
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- Map<String,String>
A mapping of tags to assign to the Healthcare Med Tech Service.
- workspace
Id String Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- device
Mapping stringJson Specifies the Device Mappings of the Med Tech Service.
- eventhub
Consumer stringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- eventhub
Name string Specifies the name of the Event Hub to connect to.
- eventhub
Namespace stringName Specifies the namespace name of the Event Hub to connect to.
- identity
Medtech
Service Identity Args An
identity
block as defined below.- location string
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- name string
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- {[key: string]: string}
A mapping of tags to assign to the Healthcare Med Tech Service.
- workspace
Id string Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- device_
mapping_ strjson Specifies the Device Mappings of the Med Tech Service.
- eventhub_
consumer_ strgroup_ name Specifies the Consumer Group of the Event Hub to connect to.
- eventhub_
name str Specifies the name of the Event Hub to connect to.
- eventhub_
namespace_ strname Specifies the namespace name of the Event Hub to connect to.
- identity
Medtech
Service Identity Args An
identity
block as defined below.- location str
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- name str
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- Mapping[str, str]
A mapping of tags to assign to the Healthcare Med Tech Service.
- workspace_
id str Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
- device
Mapping StringJson Specifies the Device Mappings of the Med Tech Service.
- eventhub
Consumer StringGroup Name Specifies the Consumer Group of the Event Hub to connect to.
- eventhub
Name String Specifies the name of the Event Hub to connect to.
- eventhub
Namespace StringName Specifies the namespace name of the Event Hub to connect to.
- identity Property Map
An
identity
block as defined below.- location String
Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created.
- name String
Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created.
- Map<String>
A mapping of tags to assign to the Healthcare Med Tech Service.
- workspace
Id String Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created.
Supporting Types
MedtechServiceIdentity
- Type string
Specifies the type of Managed Service Identity that should be configured on this Healthcare Med Tech Service. Possible values are
SystemAssigned
.- Principal
Id string The Principal ID associated with this System Assigned Managed Service Identity.
- Tenant
Id string The Tenant ID associated with this System Assigned Managed Service Identity.
- Type string
Specifies the type of Managed Service Identity that should be configured on this Healthcare Med Tech Service. Possible values are
SystemAssigned
.- Principal
Id string The Principal ID associated with this System Assigned Managed Service Identity.
- Tenant
Id string The Tenant ID associated with this System Assigned Managed Service Identity.
- type String
Specifies the type of Managed Service Identity that should be configured on this Healthcare Med Tech Service. Possible values are
SystemAssigned
.- principal
Id String The Principal ID associated with this System Assigned Managed Service Identity.
- tenant
Id String The Tenant ID associated with this System Assigned Managed Service Identity.
- type string
Specifies the type of Managed Service Identity that should be configured on this Healthcare Med Tech Service. Possible values are
SystemAssigned
.- principal
Id string The Principal ID associated with this System Assigned Managed Service Identity.
- tenant
Id string The Tenant ID associated with this System Assigned Managed Service Identity.
- type str
Specifies the type of Managed Service Identity that should be configured on this Healthcare Med Tech Service. Possible values are
SystemAssigned
.- principal_
id str The Principal ID associated with this System Assigned Managed Service Identity.
- tenant_
id str The Tenant ID associated with this System Assigned Managed Service Identity.
- type String
Specifies the type of Managed Service Identity that should be configured on this Healthcare Med Tech Service. Possible values are
SystemAssigned
.- principal
Id String The Principal ID associated with this System Assigned Managed Service Identity.
- tenant
Id String The Tenant ID associated with this System Assigned Managed Service Identity.
Import
Healthcare Med Tech Service can be imported using the resourceid
, e.g.
$ pulumi import azure:healthcare/medtechService:MedtechService example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.