azure-native.healthcareapis.IotConnectorFhirDestination
Explore with Pulumi AI
IoT Connector FHIR destination definition. Azure REST API version: 2023-02-28. Prior API version in Azure Native 1.x: 2022-05-15.
Other available API versions: 2023-09-06, 2023-11-01, 2023-12-01, 2024-03-01, 2024-03-31.
Example Usage
Create or update an Iot Connector FHIR destination
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var iotConnectorFhirDestination = new AzureNative.HealthcareApis.IotConnectorFhirDestination("iotConnectorFhirDestination", new()
    {
        FhirDestinationName = "dest1",
        FhirMapping = new AzureNative.HealthcareApis.Inputs.IotMappingPropertiesArgs
        {
            Content = new Dictionary<string, object?>
            {
                ["template"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["template"] = new Dictionary<string, object?>
                        {
                            ["codes"] = new[]
                            {
                                new Dictionary<string, object?>
                                {
                                    ["code"] = "8867-4",
                                    ["display"] = "Heart rate",
                                    ["system"] = "http://loinc.org",
                                },
                            },
                            ["periodInterval"] = 60,
                            ["typeName"] = "heartrate",
                            ["value"] = new Dictionary<string, object?>
                            {
                                ["defaultPeriod"] = 5000,
                                ["unit"] = "count/min",
                                ["valueName"] = "hr",
                                ["valueType"] = "SampledData",
                            },
                        },
                        ["templateType"] = "CodeValueFhir",
                    },
                },
                ["templateType"] = "CollectionFhirTemplate",
            },
        },
        FhirServiceResourceId = "subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice",
        IotConnectorName = "blue",
        Location = "westus",
        ResourceGroupName = "testRG",
        ResourceIdentityResolutionType = AzureNative.HealthcareApis.IotIdentityResolutionType.Create,
        WorkspaceName = "workspace1",
    });
});
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.NewIotConnectorFhirDestination(ctx, "iotConnectorFhirDestination", &healthcareapis.IotConnectorFhirDestinationArgs{
			FhirDestinationName: pulumi.String("dest1"),
			FhirMapping: &healthcareapis.IotMappingPropertiesArgs{
				Content: pulumi.Any(map[string]interface{}{
					"template": []map[string]interface{}{
						map[string]interface{}{
							"template": map[string]interface{}{
								"codes": []map[string]interface{}{
									map[string]interface{}{
										"code":    "8867-4",
										"display": "Heart rate",
										"system":  "http://loinc.org",
									},
								},
								"periodInterval": 60,
								"typeName":       "heartrate",
								"value": map[string]interface{}{
									"defaultPeriod": 5000,
									"unit":          "count/min",
									"valueName":     "hr",
									"valueType":     "SampledData",
								},
							},
							"templateType": "CodeValueFhir",
						},
					},
					"templateType": "CollectionFhirTemplate",
				}),
			},
			FhirServiceResourceId:          pulumi.String("subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice"),
			IotConnectorName:               pulumi.String("blue"),
			Location:                       pulumi.String("westus"),
			ResourceGroupName:              pulumi.String("testRG"),
			ResourceIdentityResolutionType: pulumi.String(healthcareapis.IotIdentityResolutionTypeCreate),
			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.IotConnectorFhirDestination;
import com.pulumi.azurenative.healthcareapis.IotConnectorFhirDestinationArgs;
import com.pulumi.azurenative.healthcareapis.inputs.IotMappingPropertiesArgs;
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 iotConnectorFhirDestination = new IotConnectorFhirDestination("iotConnectorFhirDestination", IotConnectorFhirDestinationArgs.builder()
            .fhirDestinationName("dest1")
            .fhirMapping(IotMappingPropertiesArgs.builder()
                .content(Map.ofEntries(
                    Map.entry("template", Map.ofEntries(
                        Map.entry("template", Map.ofEntries(
                            Map.entry("codes", Map.ofEntries(
                                Map.entry("code", "8867-4"),
                                Map.entry("display", "Heart rate"),
                                Map.entry("system", "http://loinc.org")
                            )),
                            Map.entry("periodInterval", 60),
                            Map.entry("typeName", "heartrate"),
                            Map.entry("value", Map.ofEntries(
                                Map.entry("defaultPeriod", 5000),
                                Map.entry("unit", "count/min"),
                                Map.entry("valueName", "hr"),
                                Map.entry("valueType", "SampledData")
                            ))
                        )),
                        Map.entry("templateType", "CodeValueFhir")
                    )),
                    Map.entry("templateType", "CollectionFhirTemplate")
                ))
                .build())
            .fhirServiceResourceId("subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice")
            .iotConnectorName("blue")
            .location("westus")
            .resourceGroupName("testRG")
            .resourceIdentityResolutionType("Create")
            .workspaceName("workspace1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const iotConnectorFhirDestination = new azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestination", {
    fhirDestinationName: "dest1",
    fhirMapping: {
        content: {
            template: [{
                template: {
                    codes: [{
                        code: "8867-4",
                        display: "Heart rate",
                        system: "http://loinc.org",
                    }],
                    periodInterval: 60,
                    typeName: "heartrate",
                    value: {
                        defaultPeriod: 5000,
                        unit: "count/min",
                        valueName: "hr",
                        valueType: "SampledData",
                    },
                },
                templateType: "CodeValueFhir",
            }],
            templateType: "CollectionFhirTemplate",
        },
    },
    fhirServiceResourceId: "subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice",
    iotConnectorName: "blue",
    location: "westus",
    resourceGroupName: "testRG",
    resourceIdentityResolutionType: azure_native.healthcareapis.IotIdentityResolutionType.Create,
    workspaceName: "workspace1",
});
import pulumi
import pulumi_azure_native as azure_native
iot_connector_fhir_destination = azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestination",
    fhir_destination_name="dest1",
    fhir_mapping={
        "content": {
            "template": [{
                "template": {
                    "codes": [{
                        "code": "8867-4",
                        "display": "Heart rate",
                        "system": "http://loinc.org",
                    }],
                    "periodInterval": 60,
                    "typeName": "heartrate",
                    "value": {
                        "defaultPeriod": 5000,
                        "unit": "count/min",
                        "valueName": "hr",
                        "valueType": "SampledData",
                    },
                },
                "templateType": "CodeValueFhir",
            }],
            "templateType": "CollectionFhirTemplate",
        },
    },
    fhir_service_resource_id="subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice",
    iot_connector_name="blue",
    location="westus",
    resource_group_name="testRG",
    resource_identity_resolution_type=azure_native.healthcareapis.IotIdentityResolutionType.CREATE,
    workspace_name="workspace1")
resources:
  iotConnectorFhirDestination:
    type: azure-native:healthcareapis:IotConnectorFhirDestination
    properties:
      fhirDestinationName: dest1
      fhirMapping:
        content:
          template:
            - template:
                codes:
                  - code: 8867-4
                    display: Heart rate
                    system: http://loinc.org
                periodInterval: 60
                typeName: heartrate
                value:
                  defaultPeriod: 5000
                  unit: count/min
                  valueName: hr
                  valueType: SampledData
              templateType: CodeValueFhir
          templateType: CollectionFhirTemplate
      fhirServiceResourceId: subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice
      iotConnectorName: blue
      location: westus
      resourceGroupName: testRG
      resourceIdentityResolutionType: Create
      workspaceName: workspace1
Create IotConnectorFhirDestination Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IotConnectorFhirDestination(name: string, args: IotConnectorFhirDestinationArgs, opts?: CustomResourceOptions);@overload
def IotConnectorFhirDestination(resource_name: str,
                                args: IotConnectorFhirDestinationArgs,
                                opts: Optional[ResourceOptions] = None)
@overload
def IotConnectorFhirDestination(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                fhir_mapping: Optional[IotMappingPropertiesArgs] = None,
                                fhir_service_resource_id: Optional[str] = None,
                                iot_connector_name: Optional[str] = None,
                                resource_group_name: Optional[str] = None,
                                resource_identity_resolution_type: Optional[Union[str, IotIdentityResolutionType]] = None,
                                workspace_name: Optional[str] = None,
                                fhir_destination_name: Optional[str] = None,
                                location: Optional[str] = None)func NewIotConnectorFhirDestination(ctx *Context, name string, args IotConnectorFhirDestinationArgs, opts ...ResourceOption) (*IotConnectorFhirDestination, error)public IotConnectorFhirDestination(string name, IotConnectorFhirDestinationArgs args, CustomResourceOptions? opts = null)
public IotConnectorFhirDestination(String name, IotConnectorFhirDestinationArgs args)
public IotConnectorFhirDestination(String name, IotConnectorFhirDestinationArgs args, CustomResourceOptions options)
type: azure-native:healthcareapis:IotConnectorFhirDestination
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 IotConnectorFhirDestinationArgs
- 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 IotConnectorFhirDestinationArgs
- 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 IotConnectorFhirDestinationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IotConnectorFhirDestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IotConnectorFhirDestinationArgs
- 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 iotConnectorFhirDestinationResource = new AzureNative.HealthcareApis.IotConnectorFhirDestination("iotConnectorFhirDestinationResource", new()
{
    FhirMapping = new AzureNative.HealthcareApis.Inputs.IotMappingPropertiesArgs
    {
        Content = "any",
    },
    FhirServiceResourceId = "string",
    IotConnectorName = "string",
    ResourceGroupName = "string",
    ResourceIdentityResolutionType = "string",
    WorkspaceName = "string",
    FhirDestinationName = "string",
    Location = "string",
});
example, err := healthcareapis.NewIotConnectorFhirDestination(ctx, "iotConnectorFhirDestinationResource", &healthcareapis.IotConnectorFhirDestinationArgs{
	FhirMapping: &healthcareapis.IotMappingPropertiesArgs{
		Content: pulumi.Any("any"),
	},
	FhirServiceResourceId:          pulumi.String("string"),
	IotConnectorName:               pulumi.String("string"),
	ResourceGroupName:              pulumi.String("string"),
	ResourceIdentityResolutionType: pulumi.String("string"),
	WorkspaceName:                  pulumi.String("string"),
	FhirDestinationName:            pulumi.String("string"),
	Location:                       pulumi.String("string"),
})
var iotConnectorFhirDestinationResource = new IotConnectorFhirDestination("iotConnectorFhirDestinationResource", IotConnectorFhirDestinationArgs.builder()
    .fhirMapping(IotMappingPropertiesArgs.builder()
        .content("any")
        .build())
    .fhirServiceResourceId("string")
    .iotConnectorName("string")
    .resourceGroupName("string")
    .resourceIdentityResolutionType("string")
    .workspaceName("string")
    .fhirDestinationName("string")
    .location("string")
    .build());
iot_connector_fhir_destination_resource = azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestinationResource",
    fhir_mapping={
        "content": "any",
    },
    fhir_service_resource_id="string",
    iot_connector_name="string",
    resource_group_name="string",
    resource_identity_resolution_type="string",
    workspace_name="string",
    fhir_destination_name="string",
    location="string")
const iotConnectorFhirDestinationResource = new azure_native.healthcareapis.IotConnectorFhirDestination("iotConnectorFhirDestinationResource", {
    fhirMapping: {
        content: "any",
    },
    fhirServiceResourceId: "string",
    iotConnectorName: "string",
    resourceGroupName: "string",
    resourceIdentityResolutionType: "string",
    workspaceName: "string",
    fhirDestinationName: "string",
    location: "string",
});
type: azure-native:healthcareapis:IotConnectorFhirDestination
properties:
    fhirDestinationName: string
    fhirMapping:
        content: any
    fhirServiceResourceId: string
    iotConnectorName: string
    location: string
    resourceGroupName: string
    resourceIdentityResolutionType: string
    workspaceName: string
IotConnectorFhirDestination Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IotConnectorFhirDestination resource accepts the following input properties:
- FhirMapping Pulumi.Azure Native. Healthcare Apis. Inputs. Iot Mapping Properties 
- FHIR Mappings
- FhirService stringResource Id 
- Fully qualified resource id of the FHIR service to connect to.
- IotConnector stringName 
- The name of IoT Connector resource.
- ResourceGroup stringName 
- The name of the resource group that contains the service instance.
- ResourceIdentity string | Pulumi.Resolution Type Azure Native. Healthcare Apis. Iot Identity Resolution Type 
- Determines how resource identity is resolved on the destination.
- WorkspaceName string
- The name of workspace resource.
- FhirDestination stringName 
- The name of IoT Connector FHIR destination resource.
- Location string
- The resource location.
- FhirMapping IotMapping Properties Args 
- FHIR Mappings
- FhirService stringResource Id 
- Fully qualified resource id of the FHIR service to connect to.
- IotConnector stringName 
- The name of IoT Connector resource.
- ResourceGroup stringName 
- The name of the resource group that contains the service instance.
- ResourceIdentity string | IotResolution Type Identity Resolution Type 
- Determines how resource identity is resolved on the destination.
- WorkspaceName string
- The name of workspace resource.
- FhirDestination stringName 
- The name of IoT Connector FHIR destination resource.
- Location string
- The resource location.
- fhirMapping IotMapping Properties 
- FHIR Mappings
- fhirService StringResource Id 
- Fully qualified resource id of the FHIR service to connect to.
- iotConnector StringName 
- The name of IoT Connector resource.
- resourceGroup StringName 
- The name of the resource group that contains the service instance.
- resourceIdentity String | IotResolution Type Identity Resolution Type 
- Determines how resource identity is resolved on the destination.
- workspaceName String
- The name of workspace resource.
- fhirDestination StringName 
- The name of IoT Connector FHIR destination resource.
- location String
- The resource location.
- fhirMapping IotMapping Properties 
- FHIR Mappings
- fhirService stringResource Id 
- Fully qualified resource id of the FHIR service to connect to.
- iotConnector stringName 
- The name of IoT Connector resource.
- resourceGroup stringName 
- The name of the resource group that contains the service instance.
- resourceIdentity string | IotResolution Type Identity Resolution Type 
- Determines how resource identity is resolved on the destination.
- workspaceName string
- The name of workspace resource.
- fhirDestination stringName 
- The name of IoT Connector FHIR destination resource.
- location string
- The resource location.
- fhir_mapping IotMapping Properties Args 
- FHIR Mappings
- fhir_service_ strresource_ id 
- Fully qualified resource id of the FHIR service to connect to.
- iot_connector_ strname 
- The name of IoT Connector resource.
- resource_group_ strname 
- The name of the resource group that contains the service instance.
- resource_identity_ str | Iotresolution_ type Identity Resolution Type 
- Determines how resource identity is resolved on the destination.
- workspace_name str
- The name of workspace resource.
- fhir_destination_ strname 
- The name of IoT Connector FHIR destination resource.
- location str
- The resource location.
- fhirMapping Property Map
- FHIR Mappings
- fhirService StringResource Id 
- Fully qualified resource id of the FHIR service to connect to.
- iotConnector StringName 
- The name of IoT Connector resource.
- resourceGroup StringName 
- The name of the resource group that contains the service instance.
- resourceIdentity String | "Create" | "Lookup"Resolution Type 
- Determines how resource identity is resolved on the destination.
- workspaceName String
- The name of workspace resource.
- fhirDestination StringName 
- The name of IoT Connector FHIR destination resource.
- location String
- The resource location.
Outputs
All input properties are implicitly available as output properties. Additionally, the IotConnectorFhirDestination resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name.
- SystemData Pulumi.Azure Native. Healthcare Apis. Outputs. System Data Response 
- Metadata pertaining to creation and last modification of the resource.
- Type string
- The resource type.
- Etag string
- An etag associated with the resource, used for optimistic concurrency when editing it.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name.
- SystemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- Type string
- The resource type.
- Etag string
- An etag associated with the resource, used for optimistic concurrency when editing it.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name.
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type String
- The resource type.
- etag String
- An etag associated with the resource, used for optimistic concurrency when editing it.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name.
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type string
- The resource type.
- etag string
- An etag associated with the resource, used for optimistic concurrency when editing it.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name.
- system_data SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type str
- The resource type.
- etag str
- An etag associated with the resource, used for optimistic concurrency when editing it.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name.
- systemData Property Map
- Metadata pertaining to creation and last modification of the resource.
- type String
- The resource type.
- etag String
- An etag associated with the resource, used for optimistic concurrency when editing it.
Supporting Types
IotIdentityResolutionType, IotIdentityResolutionTypeArgs        
- Create
- Create
- Lookup
- Lookup
- IotIdentity Resolution Type Create 
- Create
- IotIdentity Resolution Type Lookup 
- Lookup
- Create
- Create
- Lookup
- Lookup
- Create
- Create
- Lookup
- Lookup
- CREATE
- Create
- LOOKUP
- Lookup
- "Create"
- Create
- "Lookup"
- Lookup
IotMappingProperties, IotMappingPropertiesArgs      
- Content object
- The mapping.
- Content interface{}
- The mapping.
- content Object
- The mapping.
- content any
- The mapping.
- content Any
- The mapping.
- content Any
- The mapping.
IotMappingPropertiesResponse, IotMappingPropertiesResponseArgs        
- Content object
- The mapping.
- Content interface{}
- The mapping.
- content Object
- The mapping.
- content any
- The mapping.
- content Any
- The mapping.
- content Any
- The mapping.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:healthcareapis:IotConnectorFhirDestination dest1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0